![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/module_versioning.h"#include "common/module.h"#include "imageio/imageio_module.h"#include "system/macros.h"#include "system/mem_alloc.h"#include "common/paths.h"#include "gui/application.h"#include "common/file_location.h"#include "imageio/imageio_core.h"#include "common/conf.h"#include "control/signal.h"#include <stdlib.h>#include "widgets/widget_settings.h"#include "imageio/format/imageio_format_api.h"#include "imageio/storage/imageio_storage_api.h"
Include dependency graph for imageio_module.c:Go to the source code of this file.
Macros | |
| #define | INCLUDE_API_FROM_MODULE_LOAD "imageio_load_module_format" |
| #define | INCLUDE_API_FROM_MODULE_LOAD "imageio_load_module_storage" |
| #define INCLUDE_API_FROM_MODULE_LOAD "imageio_load_module_format" |
| #define INCLUDE_API_FROM_MODULE_LOAD "imageio_load_module_storage" |
|
static |
Default implementation of dimension module function, used if format module does not implement dimension()
Definition at line 66 of file imageio_module.c.
|
static |
Default implementation of flags, used if format module does not implement flags()
Definition at line 75 of file imageio_module.c.
|
static |
Default implementation of gui_init function (a NOP), used when no gui is existing. this is easier than checking for that case all over the place
Definition at line 86 of file imageio_module.c.
|
static |
Default implementation of levels, used if format module does not implement levels()
Definition at line 80 of file imageio_module.c.
References IMAGEIO_INT8, and IMAGEIO_RGB.
|
static |
Default implementation of dimension module function, used if storage modules does not implements dimension()
Definition at line 167 of file imageio_module.c.
|
static |
a NOP for when a default should do nothing
Definition at line 173 of file imageio_module.c.
|
static |
Default implementation of supported function, used if storage modules not implements supported()
Definition at line 160 of file imageio_module.c.
References TRUE.
| void dt_imageio_cleanup | ( | dt_imageio_t * | iio | ) |
Definition at line 242 of file imageio_module.c.
References dt_free, dt_imageio_t::plugins_format, and dt_imageio_t::plugins_storage.
Referenced by dt_cleanup().
| dt_imageio_module_format_t * dt_imageio_get_format | ( | ) |
Definition at line 265 of file imageio_module.c.
References dt_conf_get_string_const(), dt_imageio_get_format_by_name(), dt_imageio_get_global(), IS_NULL_PTR, and dt_imageio_t::plugins_format.
Referenced by _update_preview(), get_params(), and gui_reset().
| dt_imageio_module_format_t * dt_imageio_get_format_by_index | ( | int | index | ) |
Definition at line 313 of file imageio_module.c.
References dt_imageio_get_global(), IS_NULL_PTR, and dt_imageio_t::plugins_format.
Referenced by dt_control_export_job_run().
| dt_imageio_module_format_t * dt_imageio_get_format_by_name | ( | const char * | name | ) |
Definition at line 289 of file imageio_module.c.
References dt_imageio_get_global(), IS_NULL_PTR, name, and dt_imageio_t::plugins_format.
Referenced by _export_button_clicked(), _export_pre_module_fullres_to_tiff(), _get_max_output_dimension(), _update(), dt_imageio_get_format(), gui_init(), init_presets(), legacy_params(), main(), set_params(), and set_storage_by_name().
| int dt_imageio_get_index_of_format | ( | dt_imageio_module_format_t * | format | ) |
Definition at line 329 of file imageio_module.c.
References dt_imageio_get_global(), and dt_imageio_t::plugins_format.
Referenced by _export_button_clicked(), _update(), and gui_init().
| int dt_imageio_get_index_of_storage | ( | dt_imageio_module_storage_t * | storage | ) |
Definition at line 334 of file imageio_module.c.
References dt_imageio_get_global(), and dt_imageio_t::plugins_storage.
Referenced by _export_button_clicked(), _on_storage_list_changed(), _update(), gui_init(), and gui_reset().
| dt_imageio_module_storage_t * dt_imageio_get_storage | ( | ) |
Definition at line 277 of file imageio_module.c.
References dt_conf_get_string_const(), dt_imageio_get_global(), dt_imageio_get_storage_by_name(), IS_NULL_PTR, and dt_imageio_t::plugins_storage.
Referenced by _export_button_clicked(), _on_storage_list_changed(), get_params(), and gui_reset().
| dt_imageio_module_storage_t * dt_imageio_get_storage_by_index | ( | int | index | ) |
Definition at line 321 of file imageio_module.c.
References dt_imageio_get_global(), IS_NULL_PTR, and dt_imageio_t::plugins_storage.
Referenced by dt_control_export(), dt_control_export_cleanup(), and dt_control_export_job_run().
| dt_imageio_module_storage_t * dt_imageio_get_storage_by_name | ( | const char * | name | ) |
Definition at line 301 of file imageio_module.c.
References dt_imageio_get_global(), IS_NULL_PTR, name, and dt_imageio_t::plugins_storage.
Referenced by _export_button_clicked(), _get_max_output_dimension(), _update(), _update_formats_combobox(), dt_imageio_get_storage(), gui_init(), gui_reset(), init_presets(), legacy_params(), main(), and set_params().
| void dt_imageio_init | ( | dt_imageio_t * | iio | ) |
Definition at line 233 of file imageio_module.c.
References dt_imageio_load_modules_format(), dt_imageio_load_modules_storage(), dt_imageio_t::plugins_format, and dt_imageio_t::plugins_storage.
Referenced by dt_init().
| void dt_imageio_insert_storage | ( | dt_imageio_module_storage_t * | storage | ) |
Definition at line 340 of file imageio_module.c.
References dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_imageio_get_global(), dt_imageio_sort_modules_storage(), DT_SIGNAL_IMAGEIO_STORAGE_CHANGE, and dt_imageio_t::plugins_storage.
Referenced by dt_imageio_load_modules_storage().
|
static |
Definition at line 90 of file imageio_module.c.
References dt_gui_get_global(), IS_NULL_PTR, dt_imageio_module_format_t::plugin_name, and dt_imageio_module_format_t::ready.
Referenced by dt_imageio_load_modules_format().
|
static |
Definition at line 177 of file imageio_module.c.
References dt_gui_get_global(), IS_NULL_PTR, and dt_imageio_module_storage_t::plugin_name.
Referenced by dt_imageio_load_modules_storage().
|
static |
Definition at line 124 of file imageio_module.c.
References dt_free, dt_gui_freeze_begin, dt_gui_freeze_end, dt_gui_get_global(), dt_imageio_load_module_format(), dt_imageio_sort_modules_format(), dt_module_read_manifest(), DT_PATH_MAX, IS_NULL_PTR, name, dt_imageio_t::plugins_format, and res.
Referenced by dt_imageio_init().
|
static |
Definition at line 202 of file imageio_module.c.
References dt_free, dt_imageio_insert_storage(), dt_imageio_load_module_storage(), dt_module_read_manifest(), DT_PATH_MAX, IS_NULL_PTR, name, and dt_imageio_t::plugins_storage.
Referenced by dt_imageio_init().
| void dt_imageio_remove_storage | ( | dt_imageio_module_storage_t * | storage | ) |
Definition at line 347 of file imageio_module.c.
References dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_imageio_get_global(), DT_SIGNAL_IMAGEIO_STORAGE_CHANGE, and dt_imageio_t::plugins_storage.
Definition at line 353 of file imageio_module.c.
References dt_conf_get_string(), dt_conf_set_string(), i, and IS_NULL_PTR.
Referenced by _get_export_size(), and _scale_optim().
|
static |
Definition at line 57 of file imageio_module.c.
Referenced by dt_imageio_load_modules_format().
|
static |
Definition at line 50 of file imageio_module.c.
Referenced by dt_imageio_insert_storage().