Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
history.c File Reference
#include "common/history.h"
#include "common/collection.h"
#include "common/darktable.h"
#include "common/debug.h"
#include "common/dtpthread.h"
#include "common/history_snapshot.h"
#include "common/image_cache.h"
#include "common/imageio.h"
#include "common/mipmap_cache.h"
#include "common/tags.h"
#include "common/undo.h"
#include "common/utility.h"
#include "control/control.h"
#include "develop/blend.h"
#include "develop/dev_history.h"
#include "develop/develop.h"
#include "develop/masks.h"
+ Include dependency graph for common/history.c:

Macros

#define DT_IOP_ORDER_INFO   (darktable.unmuted & DT_DEBUG_IOPORDER)
 

Functions

static void _history_stmt_mutex_ensure (void)
 
void dt_history_item_free (gpointer data)
 
static void _remove_preset_flag (const int32_t imgid)
 
void dt_history_delete_on_image_ext (int32_t imgid, gboolean undo)
 
void dt_history_delete_on_image (int32_t imgid)
 
char * dt_history_item_as_string (const char *name, gboolean enabled)
 
GList * dt_history_get_items (const int32_t imgid, gboolean enabled)
 
char * dt_history_get_items_as_string (const int32_t imgid)
 
gboolean dt_history_check_module_exists (int32_t imgid, const char *operation, gboolean enabled)
 
void dt_history_cleanup (void)
 
int32_t dt_history_get_end (const int32_t imgid)
 
gboolean dt_history_set_end (const int32_t imgid, const int32_t history_end)
 
int32_t dt_history_db_get_next_history_num (const int32_t imgid)
 
gboolean dt_history_db_delete_history (const int32_t imgid)
 
gboolean dt_history_db_delete_masks_history (const int32_t imgid)
 
gboolean dt_history_db_shift_history_nums (const int32_t imgid, const int delta)
 
gboolean dt_history_db_delete_dev_history (const int32_t imgid)
 
gboolean dt_history_db_write_history_item (const int32_t imgid, const int num, const char *operation, const void *op_params, const int op_params_size, const int module_version, const gboolean enabled, const void *blendop_params, const int blendop_params_size, const int blendop_version, const int multi_priority, const char *multi_name)
 
void dt_history_db_foreach_history_row (const int32_t imgid, dt_history_db_row_cb cb, void *user_data)
 
void dt_history_db_foreach_auto_preset_row (const int32_t imgid, const dt_image_t *image, const char *workflow_preset, const int iformat, const int excluded, dt_history_db_row_cb cb, void *user_data)
 
gboolean dt_history_db_get_autoapply_ioporder_params (const int32_t imgid, const dt_image_t *image, const int iformat, const int excluded, void **params, int32_t *params_len)
 
void dt_history_hash_set_mipmap (const int32_t imgid, const uint64_t history_hash, const dt_image_cache_write_mode_t mode)
 

Variables

static sqlite3_stmt * _history_check_module_exists_stmt = NULL
 
static sqlite3_stmt * _history_hash_set_mipmap_stmt = NULL
 
static sqlite3_stmt * _history_get_end_stmt = NULL
 
static sqlite3_stmt * _history_set_end_stmt = NULL
 
static sqlite3_stmt * _history_get_next_num_stmt = NULL
 
static sqlite3_stmt * _history_delete_history_stmt = NULL
 
static sqlite3_stmt * _history_delete_masks_stmt = NULL
 
static sqlite3_stmt * _history_shift_history_nums_stmt = NULL
 
static sqlite3_stmt * _history_select_history_stmt = NULL
 
static sqlite3_stmt * _history_select_num_stmt = NULL
 
static sqlite3_stmt * _history_insert_num_stmt = NULL
 
static sqlite3_stmt * _history_update_item_stmt = NULL
 
static sqlite3_stmt * _history_auto_presets_stmt = NULL
 
static sqlite3_stmt * _history_auto_presets_legacy_stmt = NULL
 
static sqlite3_stmt * _history_auto_ioporder_stmt = NULL
 
static dt_pthread_mutex_t _history_stmt_mutex
 
static gsize _history_stmt_mutex_inited = 0
 

Macro Definition Documentation

◆ DT_IOP_ORDER_INFO

#define DT_IOP_ORDER_INFO   (darktable.unmuted & DT_DEBUG_IOPORDER)

Function Documentation

◆ _history_stmt_mutex_ensure()

◆ _remove_preset_flag()

static void _remove_preset_flag ( const int32_t  imgid)
static

◆ dt_history_check_module_exists()

◆ dt_history_cleanup()

◆ dt_history_db_delete_dev_history()

gboolean dt_history_db_delete_dev_history ( const int32_t  imgid)

◆ dt_history_db_delete_history()

◆ dt_history_db_delete_masks_history()

◆ dt_history_db_foreach_auto_preset_row()

◆ dt_history_db_foreach_history_row()

◆ dt_history_db_get_autoapply_ioporder_params()

◆ dt_history_db_get_next_history_num()

◆ dt_history_db_shift_history_nums()

◆ dt_history_db_write_history_item()

gboolean dt_history_db_write_history_item ( const int32_t  imgid,
const int  num,
const char *  operation,
const void op_params,
const int  op_params_size,
const int  module_version,
const gboolean  enabled,
const void blendop_params,
const int  blendop_params_size,
const int  blendop_version,
const int  multi_priority,
const char *  multi_name 
)

◆ dt_history_delete_on_image()

void dt_history_delete_on_image ( int32_t  imgid)

◆ dt_history_delete_on_image_ext()

◆ dt_history_get_end()

int32_t dt_history_get_end ( const int32_t  imgid)

◆ dt_history_get_items()

◆ dt_history_get_items_as_string()

char * dt_history_get_items_as_string ( int32_t  imgid)

◆ dt_history_hash_set_mipmap()

void dt_history_hash_set_mipmap ( const int32_t  imgid,
const uint64_t  history_hash,
const dt_image_cache_write_mode_t  mode 
)

◆ dt_history_item_as_string()

char * dt_history_item_as_string ( const char *  name,
gboolean  enabled 
)

get a single history item as string with enabled status

References name.

Referenced by dt_history_get_items_as_string().

◆ dt_history_item_free()

void dt_history_item_free ( gpointer  data)

helper function to free a GList of dt_history_item_t

References dt_free, dt_history_item_t::name, and dt_history_item_t::op.

Referenced by _gui_styles_dialog_run(), and dt_gui_hist_dialog_new().

◆ dt_history_set_end()

gboolean dt_history_set_end ( const int32_t  imgid,
const int32_t  history_end 
)

Variable Documentation

◆ _history_auto_ioporder_stmt

sqlite3_stmt* _history_auto_ioporder_stmt = NULL
static

◆ _history_auto_presets_legacy_stmt

sqlite3_stmt* _history_auto_presets_legacy_stmt = NULL
static

◆ _history_auto_presets_stmt

sqlite3_stmt* _history_auto_presets_stmt = NULL
static

◆ _history_check_module_exists_stmt

sqlite3_stmt* _history_check_module_exists_stmt = NULL
static

◆ _history_delete_history_stmt

sqlite3_stmt* _history_delete_history_stmt = NULL
static

◆ _history_delete_masks_stmt

sqlite3_stmt* _history_delete_masks_stmt = NULL
static

◆ _history_get_end_stmt

sqlite3_stmt* _history_get_end_stmt = NULL
static

◆ _history_get_next_num_stmt

sqlite3_stmt* _history_get_next_num_stmt = NULL
static

◆ _history_hash_set_mipmap_stmt

sqlite3_stmt* _history_hash_set_mipmap_stmt = NULL
static

Referenced by dt_history_cleanup().

◆ _history_insert_num_stmt

sqlite3_stmt* _history_insert_num_stmt = NULL
static

◆ _history_select_history_stmt

sqlite3_stmt* _history_select_history_stmt = NULL
static

◆ _history_select_num_stmt

sqlite3_stmt* _history_select_num_stmt = NULL
static

◆ _history_set_end_stmt

sqlite3_stmt* _history_set_end_stmt = NULL
static

◆ _history_shift_history_nums_stmt

sqlite3_stmt* _history_shift_history_nums_stmt = NULL
static

◆ _history_stmt_mutex

◆ _history_stmt_mutex_inited

gsize _history_stmt_mutex_inited = 0
static

◆ _history_update_item_stmt

sqlite3_stmt* _history_update_item_stmt = NULL
static