![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "colorprofiles/profile_types.h"#include "common/image.h"#include "control/jobs.h"#include "common/variables.h"#include <inttypes.h>#include "common/cups_print.h"
Include dependency graph for control_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_image_enumerator_t |
| struct | dt_control_export_request_t |
Typedefs | |
| typedef struct dt_control_image_enumerator_t | dt_control_image_enumerator_t |
| typedef struct dt_control_export_request_t | dt_control_export_request_t |
| typedef struct dt_control_export_request_t dt_control_export_request_t |
What an export is asked to do, resolved by the caller when it dispatches the export. The size: with scale_factor > 0 each image is reduced by that factor (capped at 1), otherwise it fits in max_width x max_height, 0 x 0 meaning full size. The strings are copied, the caller keeps them.
| typedef struct dt_control_image_enumerator_t dt_control_image_enumerator_t |
| 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().
| 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().
| 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.
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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.
| 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().
| 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().
| 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().
| 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.
| void dt_control_save_xmps | ( | const GList * | imgids, |
| const gboolean | check_history | ||
| ) |
Definition at line 1545 of file control_jobs.c.
Referenced by _resync_xmp_duplicates().
| void dt_control_save_xmps_forced | ( | const GList * | imgids | ) |
Definition at line 1567 of file control_jobs.c.
Referenced by dt_control_write_sidecar_files().
| 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().