![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/collection.h"
#include "common/selection.h"
#include "common/colorspaces.h"
#include "common/debug.h"
#include "common/dtpthread.h"
#include "common/imageio.h"
#include "common/imageio_module.h"
#include "control/conf.h"
#include "control/control.h"
#include "dtgtk/thumbtable.h"
#include "gui/gtk.h"
#include "views/view.h"
#include "views/view_api.h"
#include <gdk/gdkkeysyms.h>
#include <stdint.h>
Data Structures | |
struct | _slideshow_buf_t |
struct | dt_slideshow_t |
struct | dt_slideshow_format_t |
Typedefs | |
typedef enum dt_slideshow_event_t | dt_slideshow_event_t |
typedef enum dt_slideshow_slot_t | dt_slideshow_slot_t |
typedef struct _slideshow_buf_t | dt_slideshow_buf_t |
typedef struct dt_slideshow_t | dt_slideshow_t |
typedef struct dt_slideshow_format_t | dt_slideshow_format_t |
Enumerations | |
enum | dt_slideshow_event_t { S_REQUEST_STEP , S_REQUEST_STEP_BACK } |
enum | dt_slideshow_slot_t { S_LEFT = 0 , S_CURRENT = 1 , S_RIGHT = 2 , S_SLOT_LAST = 3 } |
Functions | |
static void | _step_state (dt_slideshow_t *d, dt_slideshow_event_t event) |
static dt_job_t * | process_job_create (dt_slideshow_t *d) |
static int | bpp (dt_imageio_module_data_t *data) |
static int | levels (dt_imageio_module_data_t *data) |
static const char * | mime (dt_imageio_module_data_t *data) |
static int | write_image (dt_imageio_module_data_t *datai, const char *filename, const void *in, dt_colorspaces_color_profile_type_t over_type, const char *over_filename, void *exif, int exif_len, int32_t imgid, int num, int total, dt_dev_pixelpipe_t *pipe, const gboolean export_masks) |
static void | shift_left (dt_slideshow_t *d) |
static void | shift_right (dt_slideshow_t *d) |
static void | requeue_job (dt_slideshow_t *d) |
static int | process_image (dt_slideshow_t *d, dt_slideshow_slot_t slot) |
static gboolean | _is_idle (dt_slideshow_t *d) |
static gboolean | auto_advance (gpointer user_data) |
static int32_t | process_job_run (dt_job_t *job) |
static void | _refresh_display (dt_slideshow_t *d) |
const char * | name (const dt_view_t *self) |
uint32_t | view (const dt_view_t *self) |
void | init (dt_view_t *self) |
void | cleanup (dt_view_t *self) |
int | try_enter (dt_view_t *self) |
void | enter (dt_view_t *self) |
void | leave (dt_view_t *self) |
void | expose (dt_view_t *self, cairo_t *cr, int32_t width, int32_t height, int32_t pointerx, int32_t pointery) |
static gboolean | _hide_mouse (gpointer user_data) |
void | mouse_moved (dt_view_t *self, double x, double y, double pressure, int which) |
int | button_released (dt_view_t *self, double x, double y, int which, uint32_t state) |
int | button_pressed (dt_view_t *self, double x, double y, double pressure, int which, int type, uint32_t state) |
void | gui_init (dt_view_t *self) |
typedef struct _slideshow_buf_t dt_slideshow_buf_t |
typedef enum dt_slideshow_event_t dt_slideshow_event_t |
typedef struct dt_slideshow_format_t dt_slideshow_format_t |
typedef enum dt_slideshow_slot_t dt_slideshow_slot_t |
typedef struct dt_slideshow_t dt_slideshow_t |
enum dt_slideshow_event_t |
enum dt_slideshow_slot_t |
|
static |
References dt_view_t::data, dt_control_change_cursor(), FALSE, and dt_slideshow_t::mouse_timeout.
Referenced by mouse_moved().
|
static |
References dt_slideshow_t::buf, dt_slideshow_t::col_count, _slideshow_buf_t::invalidated, _slideshow_buf_t::rank, S_CURRENT, S_LEFT, and S_RIGHT.
Referenced by auto_advance(), and process_job_run().
|
static |
References dt_slideshow_t::buf, dt_control_queue_redraw_center(), _slideshow_buf_t::invalidated, _slideshow_buf_t::rank, and S_CURRENT.
Referenced by _step_state().
|
static |
References _refresh_display(), dt_slideshow_t::auto_advance, auto_advance(), dt_slideshow_t::buf, dt_slideshow_t::col_count, dt_slideshow_t::delay, dt_control_log(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, _slideshow_buf_t::invalidated, dt_slideshow_t::lock, _slideshow_buf_t::rank, requeue_job(), S_CURRENT, S_LEFT, S_REQUEST_STEP, S_REQUEST_STEP_BACK, S_RIGHT, shift_left(), and shift_right().
Referenced by auto_advance(), and button_pressed().
|
static |
References _is_idle(), _step_state(), dt_slideshow_t::auto_advance, FALSE, S_REQUEST_STEP, and TRUE.
Referenced by _step_state().
|
static |
int button_pressed | ( | dt_view_t * | self, |
double | x, | ||
double | y, | ||
double | pressure, | ||
int | which, | ||
int | type, | ||
uint32_t | state | ||
) |
References _step_state(), dt_view_t::data, S_REQUEST_STEP, and S_REQUEST_STEP_BACK.
References dt_view_t::data, dt_pthread_mutex_destroy(), and dt_slideshow_t::lock.
References dt_slideshow_t::auto_advance, _slideshow_buf_t::buf, dt_slideshow_t::buf, dt_slideshow_t::col_count, darktable_t::collection, darktable_t::control, darktable, dt_view_t::data, darktable_t::db, dt_slideshow_t::delay, dt_alloc_align, dt_collection_get_count(), dt_conf_get_int(), dt_control_add_job(), dt_control_change_cursor(), dt_control_log(), dt_control_queue_redraw(), dt_database_get(), DT_DEBUG_SQLITE3_PREPARE_V2, dt_gui_refocus_center(), DT_JOB_QUEUE_USER_BG, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_selection_get_first_id(), dt_ui_main_window(), DT_UI_PANEL_BOTTOM, DT_UI_PANEL_LEFT, DT_UI_PANEL_RIGHT, dt_ui_panel_show(), DT_UI_PANEL_TOP, dt_slideshow_t::exporting, FALSE, darktable_t::gui, _slideshow_buf_t::height, dt_slideshow_t::height, _slideshow_buf_t::invalidated, dt_slideshow_t::lock, mon, dt_slideshow_t::mouse_timeout, dt_gui_gtk_t::ppd, process_job_create(), _slideshow_buf_t::rank, S_CURRENT, S_LEFT, S_RIGHT, S_SLOT_LAST, darktable_t::selection, TRUE, dt_gui_gtk_t::ui, rect::width, _slideshow_buf_t::width, and dt_slideshow_t::width.
void expose | ( | dt_view_t * | self, |
cairo_t * | cr, | ||
int32_t | width, | ||
int32_t | height, | ||
int32_t | pointerx, | ||
int32_t | pointery | ||
) |
References _slideshow_buf_t::buf, dt_slideshow_t::buf, darktable, dt_view_t::data, dt_cairo_image_surface_create_for_data(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_gui_gtk_t::filter_image, darktable_t::gui, height, _slideshow_buf_t::height, dt_slideshow_t::height, _slideshow_buf_t::invalidated, dt_slideshow_t::lock, dt_gui_gtk_t::ppd, _slideshow_buf_t::rank, S_CURRENT, width, _slideshow_buf_t::width, and dt_slideshow_t::width.
References dt_view_t::data, dt_pthread_mutex_init(), and dt_slideshow_t::lock.
References dt_slideshow_t::auto_advance, _slideshow_buf_t::buf, dt_slideshow_t::buf, dt_view_t::data, dt_control_change_cursor(), dt_free_align, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_slideshow_t::exporting, FALSE, dt_slideshow_t::lock, dt_slideshow_t::mouse_timeout, S_LEFT, S_SLOT_LAST, and sleep.
|
static |
References IMAGEIO_INT8, and IMAGEIO_RGB.
Referenced by process_image().
|
static |
Referenced by process_image().
References _hide_mouse(), dt_view_t::data, dt_control_change_cursor(), and dt_slideshow_t::mouse_timeout.
const char * name | ( | const dt_view_t * | self | ) |
|
static |
References bpp, _slideshow_buf_t::buf, dt_slideshow_t::buf, dt_slideshow_format_t::buf, dt_slideshow_t::col_count, darktable_t::collection, darktable, darktable_t::db, dt_alloc_align, dt_collection_get_query(), DT_COLORSPACE_DISPLAY, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_free_align, dt_imageio_export_with_flags(), DT_INTENT_LAST, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), error(), dt_slideshow_t::exporting, FALSE, dt_slideshow_format_t::head, dt_imageio_module_data_t::height, _slideshow_buf_t::height, dt_slideshow_t::height, _slideshow_buf_t::invalidated, levels(), dt_slideshow_t::lock, dt_imageio_module_data_t::max_height, dt_imageio_module_data_t::max_width, mime(), _slideshow_buf_t::rank, dt_slideshow_format_t::rank, dt_imageio_module_data_t::style, TRUE, dt_imageio_module_data_t::width, _slideshow_buf_t::width, dt_slideshow_t::width, and write_image().
Referenced by process_job_run().
|
static |
References dt_control_job_create(), dt_control_job_set_params(), and process_job_run().
Referenced by enter(), and requeue_job().
|
static |
|
static |
References darktable_t::control, darktable, dt_control_add_job(), DT_JOB_QUEUE_USER_BG, and process_job_create().
Referenced by _step_state(), and process_job_run().
|
static |
References _slideshow_buf_t::buf, dt_slideshow_t::buf, _slideshow_buf_t::height, _slideshow_buf_t::invalidated, _slideshow_buf_t::rank, S_CURRENT, S_LEFT, S_RIGHT, TRUE, and _slideshow_buf_t::width.
Referenced by _step_state().
|
static |
References _slideshow_buf_t::buf, dt_slideshow_t::buf, _slideshow_buf_t::height, _slideshow_buf_t::invalidated, _slideshow_buf_t::rank, S_CURRENT, S_LEFT, S_RIGHT, TRUE, and _slideshow_buf_t::width.
Referenced by _step_state().
int try_enter | ( | dt_view_t * | self | ) |
References darktable_t::collection, darktable, dt_collection_get_count(), and dt_control_log().
uint32_t view | ( | const dt_view_t * | self | ) |
References DT_VIEW_SLIDESHOW.
|
static |