![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include "bauhaus/bauhaus.h"
#include "common/colorspaces.h"
#include "common/darktable.h"
#include "common/exif.h"
#include "common/imageio.h"
#include "common/imageio_module.h"
#include "control/conf.h"
#include "control/control.h"
#include "imageio/format/imageio_format_api.h"
#include <avif/avif.h>
Data Structures | |
struct | dt_imageio_avif_t |
struct | dt_imageio_avif_gui_t |
Macros | |
#define | AVIF_MIN_TILE_SIZE 512 |
#define | AVIF_MAX_TILE_SIZE 3072 |
#define | AVIF_DEFAULT_TILE_SIZE AVIF_MIN_TILE_SIZE * 2 |
Typedefs | |
typedef struct dt_imageio_avif_t | dt_imageio_avif_t |
typedef struct dt_imageio_avif_gui_t | dt_imageio_avif_gui_t |
Enumerations | |
enum | avif_compression_type_e { AVIF_COMP_LOSSLESS = 0 , AVIF_COMP_LOSSY = 1 } |
enum | avif_tiling_e { AVIF_TILING_ON = 0 , AVIF_TILING_OFF } |
enum | avif_color_mode_e { AVIF_COLOR_MODE_RGB = 0 , AVIF_COLOR_MODE_GRAYSCALE } |
Variables | ||
struct { | ||
char * name | ||
uint32_t bit_depth | ||
} | avif_bit_depth [] | |
#define AVIF_DEFAULT_TILE_SIZE AVIF_MIN_TILE_SIZE * 2 |
#define AVIF_MAX_TILE_SIZE 3072 |
#define AVIF_MIN_TILE_SIZE 512 |
typedef struct dt_imageio_avif_gui_t dt_imageio_avif_gui_t |
typedef struct dt_imageio_avif_t dt_imageio_avif_t |
enum avif_color_mode_e |
enum avif_tiling_e |
|
static |
References AVIF_COMP_LOSSLESS, and AVIF_COMP_LOSSY.
Referenced by gui_init(), and write_image().
|
static |
References avif_bit_depth, bit_depth, dt_bauhaus_combobox_get(), and dt_conf_set_int().
Referenced by gui_init(), and gui_reset().
int bpp | ( | struct dt_imageio_module_data_t * | data | ) |
void cleanup | ( | dt_imageio_module_format_t * | self | ) |
|
static |
References dt_bauhaus_combobox_get(), and dt_conf_set_int().
Referenced by gui_init().
|
static |
References AVIF_COMP_LOSSLESS, AVIF_COMP_LOSSY, dt_bauhaus_combobox_get(), dt_conf_set_int(), FALSE, and TRUE.
Referenced by gui_init(), and gui_reset().
const char * extension | ( | dt_imageio_module_data_t * | data | ) |
int flags | ( | struct dt_imageio_module_data_t * | data | ) |
|
static |
Referenced by write_image().
void free_params | ( | dt_imageio_module_format_t * | self, |
dt_imageio_module_data_t * | params | ||
) |
void * get_params | ( | dt_imageio_module_format_t * | self | ) |
void gui_cleanup | ( | dt_imageio_module_format_t * | self | ) |
References dt_imageio_module_format_t::gui_data.
void gui_init | ( | dt_imageio_module_format_t * | self | ) |
References avif_bit_depth, AVIF_COMP_LOSSLESS, AVIF_COMP_LOSSY, avif_get_compression_string(), darktable_t::bauhaus, dt_imageio_avif_gui_t::bit_depth, bit_depth, bit_depth_changed(), dt_imageio_avif_gui_t::color_mode, color_mode_changed(), dt_imageio_avif_gui_t::compression_type, compression_type_changed(), darktable, dt_bauhaus_combobox_add(), dt_bauhaus_combobox_new(), dt_bauhaus_combobox_set(), dt_bauhaus_slider_new_with_range(), dt_bauhaus_slider_set(), dt_bauhaus_slider_set_default(), dt_bauhaus_slider_set_format(), dt_bauhaus_widget_set_label(), dt_conf_get_bool(), dt_conf_get_int(), dt_confgen_get_int(), DT_DEFAULT, DT_GUI_MODULE, DT_MAX, DT_MIN, FALSE, dt_imageio_module_format_t::gui_data, name, dt_imageio_avif_gui_t::quality, quality_changed(), dt_imageio_avif_gui_t::tiling, tiling_changed(), TRUE, and dt_imageio_module_format_t::widget.
void gui_reset | ( | dt_imageio_module_format_t * | self | ) |
References dt_imageio_avif_gui_t::bit_depth, bit_depth_changed(), dt_imageio_avif_gui_t::color_mode, dt_imageio_avif_gui_t::compression_type, compression_type_changed(), dt_bauhaus_combobox_set(), dt_bauhaus_slider_set(), dt_confgen_get_bool(), dt_confgen_get_int(), DT_DEFAULT, dt_imageio_module_format_t::gui_data, dt_imageio_avif_gui_t::quality, quality_changed(), and dt_imageio_avif_gui_t::tiling.
Referenced by _lib_masks_recreate_list().
void init | ( | dt_imageio_module_format_t * | self | ) |
References AVIF_COLOR_MODE_GRAYSCALE, AVIF_COLOR_MODE_RGB, AVIF_COMP_LOSSLESS, AVIF_COMP_LOSSY, AVIF_TILING_OFF, AVIF_TILING_ON, bit_depth, darktable, DT_DEBUG_IMAGEIO, dt_lua_register_module_member, dt_print(), FALSE, darktable_t::lua_state, and dt_imageio_module_format_t::ready.
Referenced by _update_shortcut_state(), dt_gui_load_theme(), and HashTablePermutohedral< KD, VD >::Value::Value().
int levels | ( | struct dt_imageio_module_data_t * | data | ) |
References IMAGEIO_FLOAT, and IMAGEIO_RGB.
Referenced by _rgblevels_move_handle(), color_picker_apply(), dt_dev_pixelpipe_init_export(), dt_iop_levels_compute_levels_manual(), dt_iop_levels_move_handle(), get_dither_parameters(), gui_init(), legacy_params(), process(), process_floyd_steinberg(), process_internal(), rt_adjust_levels(), and rt_process_stats().
const char * mime | ( | dt_imageio_module_data_t * | data | ) |
Referenced by supported(), and supported().
size_t params_size | ( | dt_imageio_module_format_t * | self | ) |
|
static |
References dt_bauhaus_slider_get(), and dt_conf_set_int().
Referenced by gui_init(), and gui_reset().
int set_params | ( | dt_imageio_module_format_t * | self, |
const void * | params, | ||
const int | size | ||
) |
|
static |
References dt_bauhaus_combobox_get(), and dt_conf_set_bool().
Referenced by gui_init().
int write_image | ( | struct dt_imageio_module_data_t * | data, |
const char * | filename, | ||
const void * | in, | ||
dt_colorspaces_color_profile_type_t | over_type, | ||
const char * | over_filename, | ||
void * | exif, | ||
int | exif_len, | ||
int32_t | imgid, | ||
int | num, | ||
int | total, | ||
struct dt_dev_pixelpipe_t * | pipe, | ||
const gboolean | export_masks | ||
) |
References AVIF_COLOR_MODE_GRAYSCALE, AVIF_COLOR_MODE_RGB, AVIF_COMP_LOSSLESS, AVIF_COMP_LOSSY, AVIF_DEFAULT_TILE_SIZE, avif_get_compression_string(), AVIF_MAX_TILE_SIZE, AVIF_MIN_TILE_SIZE, AVIF_TILING_OFF, AVIF_TILING_ON, dt_imageio_avif_t::bit_depth, bit_depth, dt_imageio_avif_t::color_mode, dt_imageio_avif_t::compression_type, darktable, DT_COLORSPACE_DISPLAY_P3, DT_COLORSPACE_HLG_P3, DT_COLORSPACE_HLG_REC2020, DT_COLORSPACE_LIN_REC2020, DT_COLORSPACE_LIN_REC709, DT_COLORSPACE_PQ_P3, DT_COLORSPACE_PQ_REC2020, DT_COLORSPACE_REC709, DT_COLORSPACE_SRGB, dt_colorspaces_get_name(), dt_colorspaces_get_output_profile(), dt_control_log(), DT_DEBUG_IMAGEIO, dt_exif_xmp_read_string(), dt_print(), f(), FALSE, floor_log2(), dt_imageio_avif_t::global, height, dt_imageio_module_data_t::height, MIN, darktable_t::num_openmp_threads, dt_colorspaces_color_profile_t::profile, dt_imageio_avif_t::quality, dt_imageio_avif_t::tiling, TRUE, void(), width, and dt_imageio_module_data_t::width.
const struct { ... } avif_bit_depth[] |
Referenced by bit_depth_changed(), and gui_init().
uint32_t bit_depth |
Referenced by __attribute__(), bit_depth_changed(), dt_imageio_open_avif(), gui_init(), init(), and write_image().
char* name |
Referenced by gui_init().