![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <inttypes.h>#include <png.h>#include <stdio.h>#include <stdlib.h>#include <zlib.h>#include "bauhaus/bauhaus.h"#include "common/colorspaces.h"#include "common/darktable.h"#include "common/imageio.h"#include "common/imageio_module.h"#include "control/conf.h"#include "imageio/format/imageio_format_api.h"
Include dependency graph for png.c:Data Structures | |
| struct | dt_imageio_png_t |
| struct | dt_imageio_png_gui_t |
Macros | |
| #define | NUM_BYTES_CHECK (8) |
Typedefs | |
| typedef struct dt_imageio_png_t | dt_imageio_png_t |
| typedef struct dt_imageio_png_gui_t | dt_imageio_png_gui_t |
Functions | |
| static void | PNGwriteRawProfile (png_struct *ping, png_info *ping_info, char *profile_type, guint8 *profile_data, png_uint_32 length) |
| int | write_image (dt_imageio_module_data_t *p_tmp, const char *filename, const void *ivoid, 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) |
| static int | __attribute__ ((__unused__)) |
| int | read_image (dt_imageio_module_data_t *p_tmp, uint8_t *out) |
| size_t | params_size (dt_imageio_module_format_t *self) |
| void * | legacy_params (dt_imageio_module_format_t *self, const void *const old_params, const size_t old_params_size, const int old_version, const int new_version, size_t *new_size) |
| void * | get_params (dt_imageio_module_format_t *self) |
| void | free_params (dt_imageio_module_format_t *self, dt_imageio_module_data_t *params) |
| int | set_params (dt_imageio_module_format_t *self, const void *params, const int size) |
| int | bpp (dt_imageio_module_data_t *p) |
| int | levels (dt_imageio_module_data_t *p) |
| const char * | mime (dt_imageio_module_data_t *data) |
| const char * | extension (dt_imageio_module_data_t *data) |
| const char * | name () |
| static void | bit_depth_changed (GtkWidget *widget, gpointer user_data) |
| static void | compression_level_changed (GtkWidget *slider, gpointer user_data) |
| void | init (dt_imageio_module_format_t *self) |
| void | cleanup (dt_imageio_module_format_t *self) |
| void | gui_init (dt_imageio_module_format_t *self) |
| void | gui_cleanup (dt_imageio_module_format_t *self) |
| void | gui_reset (dt_imageio_module_format_t *self) |
| int | flags (dt_imageio_module_data_t *data) |
| #define NUM_BYTES_CHECK (8) |
| typedef struct dt_imageio_png_gui_t dt_imageio_png_gui_t |
| typedef struct dt_imageio_png_t dt_imageio_png_t |
|
static |
|
static |
References bpp, dt_bauhaus_combobox_get(), and dt_conf_set_int().
Referenced by gui_init().
| int bpp | ( | dt_imageio_module_data_t * | p | ) |
| void cleanup | ( | dt_imageio_module_format_t * | self | ) |
|
static |
References dt_bauhaus_slider_get(), and dt_conf_set_int().
Referenced by gui_init().
| const char * extension | ( | dt_imageio_module_data_t * | data | ) |
| int flags | ( | dt_imageio_module_data_t * | data | ) |
References FORMAT_FLAGS_SUPPORT_XMP.
| 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 darktable_t::bauhaus, dt_imageio_png_gui_t::bit_depth, bit_depth_changed(), bpp, dt_imageio_png_gui_t::compression, compression_level_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_widget_set_label(), dt_conf_get_int(), dt_conf_get_string_const(), dt_conf_key_exists(), dt_confgen_get_int(), DT_DEFAULT, DT_GUI_MODULE, DT_MAX, DT_MIN, dt_imageio_module_format_t::gui_data, TRUE, and dt_imageio_module_format_t::widget.
| void gui_reset | ( | dt_imageio_module_format_t * | self | ) |
| void init | ( | dt_imageio_module_format_t * | self | ) |
References bpp, darktable, dt_lua_register_module_member, and darktable_t::lua_state.
| void * legacy_params | ( | dt_imageio_module_format_t * | self, |
| const void *const | old_params, | ||
| const size_t | old_params_size, | ||
| const int | old_version, | ||
| const int | new_version, | ||
| size_t * | new_size | ||
| ) |
References dt_imageio_png_t::bpp, bpp, dt_imageio_png_t::compression, dt_imageio_png_t::f, f(), dt_imageio_png_t::global, height, dt_imageio_module_data_t::height, dt_imageio_png_t::info_ptr, dt_imageio_module_data_t::max_height, dt_imageio_module_data_t::max_width, dt_imageio_png_t::png_ptr, dt_imageio_module_data_t::style, width, and dt_imageio_module_data_t::width.
| int levels | ( | dt_imageio_module_data_t * | p | ) |
References IMAGEIO_INT16, IMAGEIO_INT8, and IMAGEIO_RGB.
| const char * mime | ( | dt_imageio_module_data_t * | data | ) |
| const char * name | ( | ) |
Referenced by write_image().
| size_t params_size | ( | dt_imageio_module_format_t * | self | ) |
|
static |
References key.
Referenced by write_image().
| int read_image | ( | dt_imageio_module_data_t * | p_tmp, |
| uint8_t * | out | ||
| ) |
| int set_params | ( | dt_imageio_module_format_t * | self, |
| const void * | params, | ||
| const int | size | ||
| ) |
| int write_image | ( | dt_imageio_module_data_t * | p_tmp, |
| const char * | filename, | ||
| const void * | ivoid, | ||
| 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 | ||
| ) |