Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
import_jobs.h File Reference
#include "common/image.h"
#include "control/control.h"
#include "common/variables.h"
+ Include dependency graph for import_jobs.h:
+ This graph shows which files directly or indirectly include this file:

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 Documentation

◆ dt_control_import_t

Function Documentation

◆ dt_build_filename_from_pattern()

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.

Parameters
filenameFull path of the original file
indexIncremental number in a sequence
imgdt_image_t object. Needs to be inited with EXIF fields prior to calling this function, otherwise EXIF variables are expanded to defaults/fallback.
dataImport options
Returns
gchar* The full path after variables expansion

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().

◆ dt_control_import()

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.

Parameters
dataimport 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().

◆ dt_control_import_data_free()