Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
slideshow.c File Reference
#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>
+ Include dependency graph for slideshow.c:

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_tprocess_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 Documentation

◆ dt_slideshow_buf_t

◆ dt_slideshow_event_t

◆ dt_slideshow_format_t

◆ dt_slideshow_slot_t

◆ dt_slideshow_t

Enumeration Type Documentation

◆ dt_slideshow_event_t

Enumerator
S_REQUEST_STEP 
S_REQUEST_STEP_BACK 

◆ dt_slideshow_slot_t

Enumerator
S_LEFT 
S_CURRENT 
S_RIGHT 
S_SLOT_LAST 

Function Documentation

◆ _hide_mouse()

static gboolean _hide_mouse ( gpointer  user_data)
static

◆ _is_idle()

◆ _refresh_display()

◆ _step_state()

◆ auto_advance()

static gboolean auto_advance ( gpointer  user_data)
static

◆ bpp()

static int bpp ( dt_imageio_module_data_t data)
static

◆ button_pressed()

int button_pressed ( dt_view_t self,
double  x,
double  y,
double  pressure,
int  which,
int  type,
uint32_t  state 
)

◆ button_released()

int button_released ( dt_view_t self,
double  x,
double  y,
int  which,
uint32_t  state 
)

◆ cleanup()

◆ enter()

◆ expose()

◆ gui_init()

void gui_init ( dt_view_t self)

◆ init()

◆ leave()

◆ levels()

static int levels ( dt_imageio_module_data_t data)
static

References IMAGEIO_INT8, and IMAGEIO_RGB.

Referenced by process_image().

◆ mime()

static const char * mime ( dt_imageio_module_data_t data)
static

Referenced by process_image().

◆ mouse_moved()

void mouse_moved ( dt_view_t self,
double  x,
double  y,
double  pressure,
int  which 
)

◆ name()

const char * name ( const dt_view_t self)

◆ process_image()

◆ process_job_create()

static dt_job_t * process_job_create ( dt_slideshow_t d)
static

◆ process_job_run()

◆ requeue_job()

◆ shift_left()

◆ shift_right()

◆ try_enter()

◆ view()

uint32_t view ( const dt_view_t self)

References DT_VIEW_SLIDESHOW.

◆ write_image()

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