![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Go to the source code of this file.
Data Structures | |
struct | dt_control_import_t |
Typedefs | |
typedef struct dt_control_import_t | dt_control_import_t |
Functions | |
void | dt_control_import_data_free (dt_control_import_t *data) |
gchar * | dt_build_filename_from_pattern (const char *const filename, const int index, dt_image_t *img, dt_control_import_t *data) |
Build a full path for a given image file, given a pattern. | |
void | dt_control_import (dt_control_import_t data) |
Process a list of images to import with or without copying the files on an arbitrary hard-drive. | |
typedef struct dt_control_import_t dt_control_import_t |
gchar * dt_build_filename_from_pattern | ( | const char *const | filename, |
const int | index, | ||
dt_image_t * | img, | ||
dt_control_import_t * | data | ||
) |
Build a full path for a given image file, given a pattern.
filename | Full path of the original file |
index | Incremental number in a sequence |
img | dt_image_t object. Needs to be inited with EXIF fields prior to calling this function, otherwise EXIF variables are expanded to defaults/fallback. |
data | Import options |
References _path_cleanup(), dt_control_import_t::base_folder, dt_control_import_t::datetime, DT_DEBUG_PRINT, dt_print(), dt_util_normalize_path(), dt_variables_expand(), dt_variables_params_destroy(), dt_variables_params_init(), dt_variables_set_datetime(), FALSE, dt_control_import_t::jobcode, dt_control_import_t::target_dir, dt_control_import_t::target_file_pattern, dt_control_import_t::target_subfolder_pattern, and UNKNOWN_IMAGE.
Referenced by _import_copy_file(), and _set_test_path().
void dt_control_import | ( | dt_control_import_t | data | ) |
Process a list of images to import with or without copying the files on an arbitrary hard-drive.
data | import informations to transmit through the functions |
References _control_import_job_create(), darktable_t::control, darktable, dt_control_add_job(), and DT_JOB_QUEUE_USER_FG.
Referenced by _process_file_list(), and _thumbtable_dnd_import().
void dt_control_import_data_free | ( | dt_control_import_t * | data | ) |
References dt_control_import_t::base_folder, dt_control_import_t::datetime, dt_control_import_t::discarded, dt_control_import_t::imgs, dt_control_import_t::jobcode, dt_control_import_t::target_dir, dt_control_import_t::target_file_pattern, and dt_control_import_t::target_subfolder_pattern.
Referenced by _control_import_job_cleanup(), _discarded_files_popup(), and _set_test_path().