![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "control/jobs/control_jobs.h"#include "common/paths.h"#include "control/signal.h"#include "database/film_repository.h"#include "database/image_repository.h"#include "common/act_on.h"#include "common/history_actions.h"#include "control/control.h"#include "common/collection.h"#include "common/xmp_sidecar.h"#include "metadata/exif.h"#include "common/film.h"#include "metadata/gpx.h"#include "history/history.h"#include "develop/history_merge.h"#include "common/image.h"#include "caches/image_cache.h"#include "imageio/imageio_core.h"#include "imageio/imageio_dng.h"#include "imageio/imageio_module.h"#include "metadata/tags.h"#include "common/undo.h"#include "common/grouping.h"#include "common/utility.h"#include "common/datetime.h"#include "common/conf.h"#include "develop/imageop_math.h"#include "gui/application.h"#include <gio/gio.h>#include <glib.h>#include <glib/gstdio.h>#include "osx/osx.h"#include "win/dtwin.h"
Include dependency graph for control_jobs.c:Go to the source code of this file.
Data Structures | |
| struct | dt_control_datetime_t |
| struct | dt_control_gpx_apply_t |
| struct | dt_control_export_t |
| struct | dt_control_merge_hdr_t |
| struct | dt_control_merge_hdr_format_t |
| struct | _dt_delete_modal_dialog_t |
Macros | |
| #define | INIT_UPDATE_INTERVAL 2 |
| #define | MAX_UPDATE_INTERVAL 3.0 |
| #define | PROGRESS_UPDATE_INTERVAL 1 |
Typedefs | |
| typedef struct dt_control_datetime_t | dt_control_datetime_t |
| typedef struct dt_control_gpx_apply_t | dt_control_gpx_apply_t |
| typedef struct dt_control_export_t | dt_control_export_t |
| typedef struct dt_control_merge_hdr_t | dt_control_merge_hdr_t |
| typedef struct dt_control_merge_hdr_format_t | dt_control_merge_hdr_format_t |
| typedef struct _dt_delete_modal_dialog_t | _dt_delete_modal_dialog_t |
Enumerations | |
| enum | progress_type_t { PROGRESS_NONE , PROGRESS_SIMPLE , PROGRESS_CANCELLABLE } |
| enum | _dt_delete_status { _DT_DELETE_STATUS_UNKNOWN = 0 , _DT_DELETE_STATUS_OK_TO_REMOVE = 1 , _DT_DELETE_STATUS_SKIP_FILE = 2 , _DT_DELETE_STATUS_STOP_PROCESSING = 3 } |
| enum | _dt_delete_dialog_choice { _DT_DELETE_DIALOG_CHOICE_DELETE = 1 , _DT_DELETE_DIALOG_CHOICE_DELETE_ALL = 2 , _DT_DELETE_DIALOG_CHOICE_REMOVE = 3 , _DT_DELETE_DIALOG_CHOICE_CONTINUE = 4 , _DT_DELETE_DIALOG_CHOICE_STOP = 5 } |
| #define INIT_UPDATE_INTERVAL 2 |
Definition at line 125 of file control_jobs.c.
| #define MAX_UPDATE_INTERVAL 3.0 |
Definition at line 126 of file control_jobs.c.
| #define PROGRESS_UPDATE_INTERVAL 1 |
Definition at line 130 of file control_jobs.c.
| typedef struct _dt_delete_modal_dialog_t _dt_delete_modal_dialog_t |
| typedef struct dt_control_datetime_t dt_control_datetime_t |
| typedef struct dt_control_export_t dt_control_export_t |
| typedef struct dt_control_gpx_apply_t dt_control_gpx_apply_t |
| typedef struct dt_control_merge_hdr_format_t dt_control_merge_hdr_format_t |
| typedef struct dt_control_merge_hdr_t dt_control_merge_hdr_t |
| Enumerator | |
|---|---|
| _DT_DELETE_DIALOG_CHOICE_DELETE | |
| _DT_DELETE_DIALOG_CHOICE_DELETE_ALL | |
| _DT_DELETE_DIALOG_CHOICE_REMOVE | |
| _DT_DELETE_DIALOG_CHOICE_CONTINUE | |
| _DT_DELETE_DIALOG_CHOICE_STOP | |
Definition at line 863 of file control_jobs.c.
| enum _dt_delete_status |
| Enumerator | |
|---|---|
| _DT_DELETE_STATUS_UNKNOWN | |
| _DT_DELETE_STATUS_OK_TO_REMOVE | |
| _DT_DELETE_STATUS_SKIP_FILE | |
| _DT_DELETE_STATUS_STOP_PROCESSING | |
Definition at line 855 of file control_jobs.c.
| enum progress_type_t |
| Enumerator | |
|---|---|
| PROGRESS_NONE | |
| PROGRESS_SIMPLE | |
| PROGRESS_CANCELLABLE | |
Definition at line 240 of file control_jobs.c.
|
static |
Definition at line 1984 of file control_jobs.c.
References dt_datetime_exif_to_gdatetime(), DT_DATETIME_LENGTH, dt_datetime_utc_tz(), dt_free, and IS_NULL_PTR.
Referenced by dt_control_datetime_job_run().
|
static |
Definition at line 1511 of file control_jobs.c.
References dt_act_on_get_images(), dt_control_gpx_apply_alloc(), dt_control_gpx_apply_job_cleanup(), dt_control_gpx_apply_job_run(), dt_control_image_enumerator_job_film_init(), dt_control_job_create(), dt_control_job_dispose(), dt_control_job_set_params(), dt_control_gpx_apply_t::filename, IS_NULL_PTR, params, and dt_control_gpx_apply_t::tz.
Referenced by dt_control_gpx_apply().
|
static |
Definition at line 872 of file control_jobs.c.
References _DT_DELETE_DIALOG_CHOICE_CONTINUE, _DT_DELETE_DIALOG_CHOICE_DELETE, _DT_DELETE_DIALOG_CHOICE_DELETE_ALL, _DT_DELETE_DIALOG_CHOICE_REMOVE, _DT_DELETE_DIALOG_CHOICE_STOP, _dt_delete_modal_dialog_t::cond, _dt_delete_modal_dialog_t::dialog_result, dt_gui_main_window(), dt_osx_disallow_fullscreen(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), _dt_delete_modal_dialog_t::error_message, FALSE, _dt_delete_modal_dialog_t::filename, IS_NULL_PTR, _dt_delete_modal_dialog_t::mutex, and _dt_delete_modal_dialog_t::send_to_trash.
Referenced by _dt_delete_file_display_modal_dialog().
|
static |
Definition at line 917 of file control_jobs.c.
References _dt_delete_dialog_main_thread(), _dt_delete_modal_dialog_t::cond, _dt_delete_modal_dialog_t::dialog_result, dt_pthread_cond_wait(), dt_pthread_mutex_destroy(), dt_pthread_mutex_init(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), _dt_delete_modal_dialog_t::error_message, _dt_delete_modal_dialog_t::filename, _dt_delete_modal_dialog_t::mutex, and _dt_delete_modal_dialog_t::send_to_trash.
Referenced by delete_file_from_disk().
|
static |
Definition at line 1349 of file control_jobs.c.
References dt_control_log(), dt_image_cache_get(), dt_image_cache_read_release(), dt_image_full_path(), DT_PATH_MAX, FALSE, dt_image_t::filename, dt_image_t::id, IS_NULL_PTR, and TRUE.
Referenced by dt_control_export_job_run().
|
static |
Definition at line 169 of file control_jobs.c.
References dt_film_t::dirname, DT_COLLECTION_CHANGE_RELOAD, dt_collection_deserialize(), dt_collection_get_global(), DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_control_alert(), dt_control_job_get_params(), dt_control_job_get_state(), dt_control_job_set_progress(), dt_control_job_set_progress_message(), dt_control_queue_redraw_center(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_film_new(), dt_film_remove_empty(), dt_free, DT_JOB_STATE_CANCELLED, DT_SIGNAL_FILMROLLS_CHANGED, params, t, and TRUE.
Referenced by dt_control_copy_images_job_run(), and dt_control_move_images_job_run().
|
static |
Definition at line 762 of file control_jobs.c.
References dt_control_save_xmps(), dt_free_gpointer(), dt_image_get_id_full_path(), dt_image_get_xmp_mode(), FALSE, IS_NULL_PTR, and UNKNOWN_IMAGE.
Referenced by dt_control_delete_images_job_run(), and dt_control_remove_images_job_run().
|
static |
Definition at line 942 of file control_jobs.c.
References _DT_DELETE_DIALOG_CHOICE_CONTINUE, _DT_DELETE_DIALOG_CHOICE_DELETE, _DT_DELETE_DIALOG_CHOICE_DELETE_ALL, _DT_DELETE_DIALOG_CHOICE_REMOVE, _dt_delete_file_display_modal_dialog(), _DT_DELETE_STATUS_OK_TO_REMOVE, _DT_DELETE_STATUS_SKIP_FILE, _DT_DELETE_STATUS_STOP_PROCESSING, _DT_DELETE_STATUS_UNKNOWN, dt_conf_get_bool(), dt_osx_file_trash(), dt_win_file_trash(), FALSE, IS_NULL_PTR, res, and TRUE.
Referenced by dt_control_delete_images_job_run().
| void dt_control_copy_images | ( | ) |
Definition at line 1824 of file control_jobs.c.
References dt_conf_get_bool(), dt_conf_get_folder_to_file_chooser(), dt_conf_set_folder_from_file_chooser(), dt_control_add_job(), dt_control_copy_images_job_run(), dt_control_generic_images_job_create(), dt_control_get_global(), dt_control_job_dispose(), dt_control_job_get_params(), dt_free, dt_gui_main_window(), DT_JOB_QUEUE_USER_FG, dt_osx_disallow_fullscreen(), FALSE, dt_control_image_enumerator_t::index, IS_NULL_PTR, PROGRESS_CANCELLABLE, and res.
Referenced by append_file().
|
static |
Definition at line 1231 of file control_jobs.c.
References _generic_dt_control_fileop_images_job_run(), and dt_image_copy().
Referenced by dt_control_copy_images().
| void dt_control_datetime | ( | const GTimeSpan | offset, |
| const char * | datetime, | ||
| GList * | imgs | ||
| ) |
Definition at line 2124 of file control_jobs.c.
References dt_control_add_job(), dt_control_datetime_job_create(), dt_control_get_global(), and DT_JOB_QUEUE_USER_FG.
Referenced by _apply_datetime_callback(), _apply_gpx(), and _apply_offset_callback().
|
static |
Definition at line 2072 of file control_jobs.c.
References dt_control_image_enumerator_alloc(), dt_control_image_enumerator_cleanup(), IS_NULL_PTR, and params.
Referenced by dt_control_datetime_job_create().
Definition at line 2087 of file control_jobs.c.
References dt_control_image_enumerator_cleanup(), dt_free, p, and params.
Referenced by dt_control_datetime_job_create().
|
static |
Definition at line 2096 of file control_jobs.c.
References dt_control_datetime_t::datetime, dt_act_on_get_images(), dt_control_datetime_alloc(), dt_control_datetime_job_cleanup(), dt_control_datetime_job_run(), dt_control_job_add_progress(), dt_control_job_create(), dt_control_job_dispose(), dt_control_job_set_params(), FALSE, IS_NULL_PTR, dt_control_datetime_t::offset, and params.
Referenced by dt_control_datetime().
|
static |
Definition at line 2006 of file control_jobs.c.
References _add_datetime_offset(), dt_control_job_get_params(), dt_control_job_set_progress_message(), dt_control_log(), DT_DATETIME_LENGTH, dt_grouping_add_grouped_images(), dt_grouping_get_group_images(), dt_image_get_datetime(), dt_image_set_datetime(), dt_image_set_datetimes(), FALSE, IS_NULL_PTR, params, t, and TRUE.
Referenced by dt_control_datetime_job_create().
| void dt_control_delete_image | ( | int32_t | imgid | ) |
Definition at line 1717 of file control_jobs.c.
References dt_conf_get_bool(), dt_control_add_job(), dt_control_delete_images_job_run(), dt_control_generic_image_job_create(), dt_control_get_global(), dt_control_job_dispose(), dt_control_log(), dt_gui_main_window(), DT_JOB_QUEUE_USER_FG, dt_osx_disallow_fullscreen(), DT_VIEW_LIGHTTABLE, dt_view_manager_get_current_view(), dt_view_manager_get_global(), PROGRESS_SIMPLE, and res.
Referenced by _lib_duplicate_delete().
| void dt_control_delete_images | ( | ) |
Definition at line 1669 of file control_jobs.c.
References dt_conf_get_bool(), dt_control_add_job(), dt_control_delete_images_job_run(), dt_control_generic_images_job_create(), dt_control_get_global(), dt_control_job_dispose(), dt_control_job_get_params(), dt_control_log(), dt_gui_main_window(), DT_JOB_QUEUE_USER_FG, dt_osx_disallow_fullscreen(), DT_VIEW_LIGHTTABLE, dt_view_manager_get_current_view(), dt_view_manager_get_global(), FALSE, dt_control_image_enumerator_t::index, PROGRESS_SIMPLE, and res.
Referenced by append_file().
|
static |
Definition at line 1036 of file control_jobs.c.
References _DT_DELETE_STATUS_OK_TO_REMOVE, _DT_DELETE_STATUS_STOP_PROCESSING, _DT_DELETE_STATUS_UNKNOWN, _resync_xmp_duplicates(), delete_file_from_disk(), DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), DT_COLLECTION_PROP_UNDEF, dt_collection_update(), dt_collection_update_query(), dt_conf_get_bool(), dt_control_job_get_params(), dt_control_job_set_progress(), dt_control_job_set_progress_message(), dt_control_queue_redraw_center(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_film_remove_empty(), dt_free, dt_free_gpointer(), dt_image_find_xmps(), dt_image_full_path(), dt_image_local_copy_reset(), dt_image_path_append_version(), dt_image_remove(), DT_IMAGE_REMOVE, dt_image_repository_get_duplicate_ids(), dt_image_repository_get_full_paths(), dt_image_repository_set_flag_among(), DT_PATH_MAX, DT_SIGNAL_FILMROLLS_CHANGED, FALSE, params, and t.
Referenced by dt_control_delete_image(), and dt_control_delete_images().
| void dt_control_duplicate_images | ( | gboolean | virgin | ) |
Definition at line 1601 of file control_jobs.c.
References dt_control_add_job(), dt_control_duplicate_images_job_run(), dt_control_generic_images_job_create(), dt_control_get_global(), DT_JOB_QUEUE_USER_FG, PROGRESS_SIMPLE, and TRUE.
Referenced by duplicate_callback(), and new_history_callback().
|
static |
Definition at line 648 of file control_jobs.c.
References DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_control_job_get_params(), dt_control_job_set_progress(), dt_control_job_set_progress_message(), dt_control_queue_redraw_center(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_history_copy_and_paste_on_image(), dt_history_delete_on_image(), DT_HISTORY_MERGE_REPLACE, dt_image_duplicate_no_reload(), DT_SIGNAL_FILMROLLS_CHANGED, DT_UNDO_DUPLICATE, dt_undo_end_group(), dt_undo_get_global(), dt_undo_start_group(), FALSE, params, t, TRUE, and UNKNOWN_IMAGE.
Referenced by dt_control_duplicate_images().
| void dt_control_export | ( | GList * | imgid_list, |
| const dt_control_export_request_t * | request | ||
| ) |
Export imgid_list as request says. The job reads none of it from the configuration.
Definition at line 1938 of file control_jobs.c.
References dt_control_add_job(), dt_control_alert(), dt_control_export_alloc(), dt_control_export_cleanup(), dt_control_export_job_run(), dt_control_get_global(), dt_control_job_add_progress(), dt_control_job_create(), dt_control_job_dispose(), dt_control_job_set_params(), dt_imageio_get_storage_by_index(), DT_JOB_QUEUE_USER_EXPORT, dt_control_export_t::export_masks, dt_control_export_request_t::export_masks, dt_control_export_t::format_index, dt_control_export_request_t::format_index, dt_control_export_t::icc_filename, dt_control_export_request_t::icc_filename, dt_control_export_t::icc_intent, dt_control_export_request_t::icc_intent, dt_control_export_t::icc_type, dt_control_export_request_t::icc_type, IS_NULL_PTR, dt_control_export_t::max_height, dt_control_export_request_t::max_height, dt_control_export_t::max_width, dt_control_export_request_t::max_width, dt_control_export_t::metadata_export, dt_control_export_request_t::metadata_export, params, dt_control_export_t::scale_factor, dt_control_export_request_t::scale_factor, dt_control_export_t::sdata, dt_control_export_t::storage_index, dt_control_export_request_t::storage_index, dt_control_export_t::style, dt_control_export_request_t::style, and TRUE.
Referenced by _export_button_clicked().
|
static |
Definition at line 1906 of file control_jobs.c.
References dt_control_image_enumerator_alloc(), dt_control_image_enumerator_cleanup(), IS_NULL_PTR, and params.
Referenced by dt_control_export().
Definition at line 1921 of file control_jobs.c.
References dt_control_image_enumerator_cleanup(), dt_free, dt_imageio_get_storage_by_index(), dt_control_export_t::icc_filename, dt_control_export_t::metadata_export, p, params, dt_control_export_t::sdata, and dt_control_export_t::storage_index.
Referenced by dt_control_export().
|
static |
Definition at line 1367 of file control_jobs.c.
References _export_source_available(), dt_control_job_cancel(), dt_control_job_get_params(), dt_control_job_get_state(), dt_control_job_set_progress(), dt_control_job_set_progress_message(), dt_control_log(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_free_gpointer(), dt_image_cache_set_export_timestamp(), dt_imageio_get_format_by_index(), dt_imageio_get_storage_by_index(), DT_JOB_STATE_CANCELLED, DT_SIGNAL_TAG_CHANGED, dt_tag_attach(), dt_tag_detach(), dt_tag_new(), dt_ui_notify_user(), dt_util_str_to_glist(), dt_control_export_t::export_masks, FALSE, dt_export_metadata_t::flags, dt_control_export_t::format_index, dt_control_export_t::icc_filename, dt_control_export_t::icc_intent, dt_control_export_t::icc_type, dt_export_metadata_t::list, MAX, dt_control_export_t::max_height, dt_imageio_module_data_t::max_height, dt_control_export_t::max_width, dt_imageio_module_data_t::max_width, dt_control_export_t::metadata_export, MIN, params, dt_control_export_t::scale_factor, dt_control_export_t::sdata, dt_control_export_t::storage_index, dt_control_export_t::style, dt_imageio_module_data_t::style, t, and TRUE.
Referenced by dt_control_export().
| void dt_control_flip_images | ( | const dt_image_transform_t | transform | ) |
Apply an orientation change to every image acted on, as a background job.
Definition at line 1608 of file control_jobs.c.
References dt_control_add_job(), dt_control_flip_images_job_run(), dt_control_generic_images_job_create(), dt_control_get_global(), DT_JOB_QUEUE_USER_FG, PROGRESS_SIMPLE, transform(), and TRUE.
Referenced by flip_horizontally_callback(), flip_vertically_callback(), reset_rotation_callback(), rotate_clockwise_callback(), and rotate_counterclockwise_callback().
|
static |
Definition at line 688 of file control_jobs.c.
References dt_control_job_get_params(), dt_control_job_set_progress(), dt_control_job_set_progress_message(), dt_control_queue_redraw_center(), dt_image_flip(), dt_undo_end_group(), dt_undo_get_global(), DT_UNDO_LT_HISTORY, dt_undo_start_group(), params, t, and transform().
Referenced by dt_control_flip_images().
|
static |
Definition at line 265 of file control_jobs.c.
References dt_control_image_enumerator_alloc(), dt_control_image_enumerator_cleanup(), dt_control_job_add_progress(), dt_control_job_create(), dt_control_job_dispose(), dt_control_job_set_params(), flag, IS_NULL_PTR, params, PROGRESS_CANCELLABLE, and PROGRESS_NONE.
Referenced by dt_control_delete_image(), and dt_control_save_xmp().
|
static |
Definition at line 242 of file control_jobs.c.
References dt_act_on_get_images(), dt_control_image_enumerator_alloc(), dt_control_image_enumerator_cleanup(), dt_control_job_add_progress(), dt_control_job_create(), dt_control_job_dispose(), dt_control_job_set_params(), flag, IS_NULL_PTR, params, PROGRESS_CANCELLABLE, and PROGRESS_NONE.
Referenced by dt_control_copy_images(), dt_control_delete_images(), dt_control_duplicate_images(), dt_control_flip_images(), dt_control_merge_hdr(), dt_control_monochrome_images(), dt_control_move_images(), dt_control_refresh_exif(), dt_control_remove_images(), dt_control_reset_local_copy_images(), and dt_control_set_local_copy_images().
| void dt_control_gpx_apply | ( | const gchar * | filename, |
| int32_t | filmid, | ||
| const gchar * | tz, | ||
| GList * | imgs | ||
| ) |
Definition at line 1595 of file control_jobs.c.
References _control_gpx_apply_job_create(), dt_control_add_job(), dt_control_get_global(), and DT_JOB_QUEUE_USER_FG.
Referenced by _apply_filmroll_gpx(), _apply_gpx(), and _choose_gpx_callback().
|
static |
Definition at line 1482 of file control_jobs.c.
References dt_control_image_enumerator_alloc(), dt_control_image_enumerator_cleanup(), IS_NULL_PTR, and params.
Referenced by _control_gpx_apply_job_create().
Definition at line 1497 of file control_jobs.c.
References dt_control_image_enumerator_cleanup(), dt_free, dt_control_gpx_apply_t::filename, p, params, and dt_control_gpx_apply_t::tz.
Referenced by _control_gpx_apply_job_create().
|
static |
Definition at line 1146 of file control_jobs.c.
References d, dt_control_job_get_params(), dt_control_log(), dt_control_signal_get_global(), dt_datetime_img_to_gdatetime(), dt_datetime_utc_tz(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_gpx_destroy(), dt_gpx_get_location(), dt_gpx_new(), dt_grouping_get_group_images(), dt_image_cache_get(), dt_image_cache_read_release(), dt_image_set_images_locations(), DT_SIGNAL_GEOTAG_CHANGED, FALSE, IS_NULL_PTR, params, t, and TRUE.
Referenced by _control_gpx_apply_job_create().
| void * dt_control_image_enumerator_alloc | ( | ) |
Definition at line 219 of file control_jobs.c.
References IS_NULL_PTR, and params.
Referenced by _control_import_alloc(), dt_control_datetime_alloc(), dt_control_export_alloc(), dt_control_generic_image_job_create(), dt_control_generic_images_job_create(), dt_control_gpx_apply_alloc(), dt_control_save_xmps(), and dt_control_save_xmps_forced().
Definition at line 226 of file control_jobs.c.
References dt_free, p, and params.
Referenced by _control_import_alloc(), _control_import_job_cleanup(), _import_discarded_files_popup(), dt_control_datetime_alloc(), dt_control_datetime_job_cleanup(), dt_control_export_alloc(), dt_control_export_cleanup(), dt_control_generic_image_job_create(), dt_control_generic_images_job_create(), dt_control_gpx_apply_alloc(), dt_control_gpx_apply_job_cleanup(), dt_control_save_xmps(), and dt_control_save_xmps_forced().
|
static |
Definition at line 160 of file control_jobs.c.
References dt_film_repository_get_image_ids(), and t.
Referenced by _control_gpx_apply_job_create().
|
static |
Definition at line 1237 of file control_jobs.c.
References DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), DT_COLLECTION_PROP_LOCAL_COPY, dt_collection_update_query(), dt_control_job_get_params(), dt_control_job_get_state(), dt_control_job_set_progress(), dt_control_job_set_progress_message(), dt_control_log(), dt_control_queue_redraw_center(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_image_local_copy_reset(), dt_image_local_copy_set(), DT_JOB_STATE_CANCELLED, DT_SIGNAL_FILMROLLS_CHANGED, DT_SIGNAL_TAG_CHANGED, dt_tag_attach(), dt_tag_detach(), dt_tag_new(), FALSE, params, t, and TRUE.
Referenced by dt_control_reset_local_copy_images(), and dt_control_set_local_copy_images().
| void dt_control_merge_hdr | ( | ) |
Definition at line 1588 of file control_jobs.c.
References dt_control_add_job(), dt_control_generic_images_job_create(), dt_control_get_global(), dt_control_merge_hdr_job_run(), DT_JOB_QUEUE_USER_FG, PROGRESS_CANCELLABLE, and TRUE.
Referenced by append_file().
|
static |
Definition at line 375 of file control_jobs.c.
Referenced by dt_control_merge_hdr_job_run().
|
static |
Definition at line 550 of file control_jobs.c.
References __OMP_PARALLEL_FOR__, d, directory, DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), DT_COLORSPACE_NONE, dt_control_job_get_params(), dt_control_job_set_progress(), dt_control_job_set_progress_message(), dt_control_log(), dt_control_merge_hdr_bpp(), dt_control_merge_hdr_levels(), dt_control_merge_hdr_mime(), dt_control_merge_hdr_process(), dt_control_queue_redraw_center(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_exif_read_blob(), dt_film_new(), dt_free, dt_image_full_path(), dt_image_import(), dt_imageio_export_with_flags(), dt_imageio_write_dng(), DT_INTENT_LAST, DT_PATH_MAX, DT_SIGNAL_FILMROLLS_CHANGED, dt_control_merge_hdr_t::epsw, FALSE, k, params, dt_control_merge_hdr_format_t::parent, safe_strlen(), t, and TRUE.
Referenced by dt_control_merge_hdr().
|
static |
Definition at line 380 of file control_jobs.c.
References IMAGEIO_FLOAT, and IMAGEIO_RGB.
Referenced by dt_control_merge_hdr_job_run().
|
static |
Definition at line 385 of file control_jobs.c.
Referenced by dt_control_merge_hdr_job_run().
|
static |
Definition at line 410 of file control_jobs.c.
References __OMP_PARALLEL_FOR__, dt_image_t::adobe_XYZ_to_CAM, dt_iop_buffer_dsc_t::channels, dt_image_t::crop_x, dt_image_t::crop_y, d, dt_control_merge_hdr_format_t::d, dt_iop_buffer_dsc_t::datatype, dt_image_t::dsc, dt_control_alert(), dt_control_log(), dt_image_cache_get(), dt_image_cache_read_release(), envelope(), dt_image_t::exif_aperture, dt_image_t::exif_exposure, dt_image_t::exif_focal_length, dt_image_t::exif_iso, FCxtrans(), dt_iop_buffer_dsc_t::filters, dt_imageio_module_data_t::height, i, IS_NULL_PTR, k, M, m, M_PI, MAX, MIN, dt_image_t::orientation, TRUE, TYPE_UINT16, dt_image_t::wb_coeffs, weight(), dt_imageio_module_data_t::width, x, dt_iop_roi_t::x, dt_iop_buffer_dsc_t::xtrans, and dt_iop_roi_t::y.
Referenced by dt_control_merge_hdr_job_run().
| void dt_control_monochrome_images | ( | const int32_t | mode | ) |
Definition at line 1615 of file control_jobs.c.
References dt_control_add_job(), dt_control_generic_images_job_create(), dt_control_get_global(), dt_control_monochrome_images_job_run(), DT_JOB_QUEUE_USER_FG, PROGRESS_SIMPLE, and TRUE.
|
static |
Definition at line 714 of file control_jobs.c.
References DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_control_job_get_params(), dt_control_job_set_progress(), dt_control_job_set_progress_message(), dt_control_queue_redraw_center(), dt_image_set_monochrome_flag(), dt_undo_end_group(), DT_UNDO_FLAGS, dt_undo_get_global(), dt_undo_start_group(), params, and t.
Referenced by dt_control_monochrome_images().
| void dt_control_move_images | ( | ) |
Definition at line 1761 of file control_jobs.c.
References dt_conf_get_bool(), dt_conf_get_folder_to_file_chooser(), dt_conf_set_folder_from_file_chooser(), dt_control_add_job(), dt_control_generic_images_job_create(), dt_control_get_global(), dt_control_job_dispose(), dt_control_job_get_params(), dt_control_move_images_job_run(), dt_free, dt_gui_main_window(), DT_JOB_QUEUE_USER_FG, dt_osx_disallow_fullscreen(), FALSE, dt_control_image_enumerator_t::index, IS_NULL_PTR, PROGRESS_CANCELLABLE, and res.
Referenced by append_file().
|
static |
Definition at line 1225 of file control_jobs.c.
References _generic_dt_control_fileop_images_job_run(), and dt_image_move().
Referenced by dt_control_move_images().
| void dt_control_refresh_exif | ( | ) |
Definition at line 1899 of file control_jobs.c.
References dt_control_add_job(), dt_control_generic_images_job_create(), dt_control_get_global(), dt_control_refresh_exif_run(), DT_JOB_QUEUE_USER_FG, FALSE, and PROGRESS_CANCELLABLE.
Referenced by append_image().
|
static |
Definition at line 1291 of file control_jobs.c.
References DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_control_job_get_params(), dt_control_job_set_progress(), dt_control_job_set_progress_message(), dt_control_queue_redraw_center(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_exif_read(), DT_IMAGE_4BAYER, DT_IMAGE_BUFFER_RESOLVED, dt_image_cache_get(), DT_IMAGE_CACHE_SAFE, dt_image_cache_write_release(), dt_image_full_path(), DT_IMAGE_HAS_ADDITIONAL_DNG_TAGS, DT_IMAGE_HDR, DT_IMAGE_LDR, DT_IMAGE_MONOCHROME, DT_IMAGE_MONOCHROME_BAYER, DT_IMAGE_MOSAIC, DT_IMAGE_RAW, DT_IMAGE_S_RAW, DT_PATH_MAX, DT_SIGNAL_DEVELOP_IMAGE_CHANGED, DT_SIGNAL_TAG_CHANGED, dt_image_t::flags, IS_NULL_PTR, params, t, and TRUE.
Referenced by dt_control_refresh_exif().
| gboolean dt_control_remove_images | ( | ) |
Definition at line 1622 of file control_jobs.c.
References dt_conf_get_bool(), dt_control_add_job(), dt_control_generic_images_job_create(), dt_control_get_global(), dt_control_job_dispose(), dt_control_job_get_params(), dt_control_log(), dt_control_remove_images_job_run(), dt_gui_main_window(), DT_JOB_QUEUE_USER_FG, dt_osx_disallow_fullscreen(), DT_VIEW_LIGHTTABLE, dt_view_manager_get_current_view(), dt_view_manager_get_global(), FALSE, dt_control_image_enumerator_t::index, PROGRESS_SIMPLE, res, and TRUE.
Referenced by _act_folders_remove(), append_file(), and dt_thumbtable_key_pressed_grid().
|
static |
Definition at line 778 of file control_jobs.c.
References _resync_xmp_duplicates(), DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), DT_COLLECTION_PROP_UNDEF, dt_collection_update(), dt_collection_update_query(), dt_control_alert(), dt_control_job_get_params(), dt_control_job_set_progress(), dt_control_job_set_progress_message(), dt_control_queue_redraw_center(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_film_remove_empty(), DT_IMAGE_LOCAL_COPY, DT_IMAGE_REMOVE, dt_image_remove_undoable(), dt_image_repository_get_full_paths(), dt_image_repository_get_ids_with_flag_among(), dt_image_repository_set_flag_among(), dt_image_safe_remove(), DT_SIGNAL_FILMROLLS_CHANGED, dt_undo_end_group(), dt_undo_get_global(), DT_UNDO_REMOVE, dt_undo_start_group(), FALSE, params, t, and TRUE.
Referenced by dt_control_remove_images().
| void dt_control_reset_local_copy_images | ( | ) |
Definition at line 1891 of file control_jobs.c.
References dt_control_add_job(), dt_control_generic_images_job_create(), dt_control_get_global(), dt_control_local_copy_images_job_run(), DT_JOB_QUEUE_USER_FG, FALSE, and PROGRESS_CANCELLABLE.
Referenced by append_file().
| void dt_control_save_xmp | ( | const int32_t | imgid | ) |
Definition at line 1537 of file control_jobs.c.
References dt_control_add_job(), dt_control_generic_image_job_create(), dt_control_get_global(), dt_control_save_xmps_job_run(), DT_JOB_QUEUE_USER_FG, and PROGRESS_NONE.
Referenced by _image_import_internal(), _lib_duplicate_caption_out_callback(), dt_image_cache_write_release(), dt_image_local_copy_reset(), and dt_image_set_flip().
| void dt_control_save_xmps | ( | const GList * | imgids, |
| const gboolean | check_history | ||
| ) |
Definition at line 1545 of file control_jobs.c.
References dt_control_add_job(), dt_control_get_global(), dt_control_image_enumerator_alloc(), dt_control_image_enumerator_cleanup(), dt_control_job_create(), dt_control_job_dispose(), dt_control_job_set_params(), dt_control_save_xmps_job_run(), DT_JOB_QUEUE_USER_FG, IS_NULL_PTR, params, and void().
Referenced by _resync_xmp_duplicates(), dt_image_synch_all_xmp(), dt_image_synch_xmp(), and dt_image_synch_xmps().
| void dt_control_save_xmps_forced | ( | const GList * | imgids | ) |
Definition at line 1567 of file control_jobs.c.
References dt_control_add_job(), dt_control_get_global(), dt_control_image_enumerator_alloc(), dt_control_image_enumerator_cleanup(), dt_control_job_create(), dt_control_job_dispose(), dt_control_job_set_params(), dt_control_save_xmps_job_run(), DT_JOB_QUEUE_USER_FG, IS_NULL_PTR, and params.
Referenced by dt_control_write_sidecar_files(), and dt_image_local_copy_synch().
|
static |
Definition at line 290 of file control_jobs.c.
References dt_control_alert(), dt_control_job_get_params(), dt_image_cache_get(), dt_image_cache_read_release(), dt_image_get_xmp_mode(), DT_IMAGE_WRITE_SIDECAR_CACHE_BUSY, DT_IMAGE_WRITE_SIDECAR_DISABLED, dt_image_write_sidecar_file(), dt_image_write_sidecar_file_forced(), DT_IMAGE_WRITE_SIDECAR_IO_ERROR, DT_IMAGE_WRITE_SIDECAR_NO_SOURCE_PATH, DT_IMAGE_WRITE_SIDECAR_OK, DT_PATH_MAX, dt_image_t::fullpath, IS_NULL_PTR, params, res, and t.
Referenced by dt_control_save_xmp(), dt_control_save_xmps(), and dt_control_save_xmps_forced().
| void dt_control_set_local_copy_images | ( | ) |
Definition at line 1883 of file control_jobs.c.
References dt_control_add_job(), dt_control_generic_images_job_create(), dt_control_get_global(), dt_control_local_copy_images_job_run(), DT_JOB_QUEUE_USER_FG, FALSE, and PROGRESS_CANCELLABLE.
Referenced by append_file().
| void dt_control_write_sidecar_files | ( | ) |
Definition at line 338 of file control_jobs.c.
References dt_act_on_get_images(), dt_control_save_xmps_forced(), and IS_NULL_PTR.
Referenced by append_run().
|
static |
Definition at line 390 of file control_jobs.c.
Referenced by _polygon_radius(), dt_control_merge_hdr_process(), and process().