![]() |
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 "widgets/bauhaus.h"#include "colorprofiles/colorspaces.h"#include "system/macros.h"#include "system/mem_alloc.h"#include "common/module_versioning.h"#include <glib/gstdio.h>#include "caches/pixelpipe_cache_alloc.h"#include "imageio/imageio_core.h"#include "imageio/imageio_module.h"#include "common/conf.h"#include "imageio/format/imageio_format_api.h"#include "imageio/imageio_profile.h"
Include dependency graph for png.c:Go to the source code of this file.
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 |
| #define NUM_BYTES_CHECK (8) |
|
static |
Definition at line 266 of file png.c.
References bit_depth, dt_imageio_png_t::f, IS_NULL_PTR, L, and NUM_BYTES_CHECK.
Definition at line 522 of file png.c.
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 | ) |
Definition at line 528 of file png.c.
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 | ) |
Definition at line 595 of file png.c.
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 | ) |
Definition at line 457 of file png.c.
References bpp, d, dt_conf_get_int(), dt_conf_get_string_const(), dt_conf_key_exists(), and L.
| void gui_cleanup | ( | dt_imageio_module_format_t * | self | ) |
Definition at line 583 of file png.c.
References dt_free, and dt_imageio_module_format_t::gui_data.
| void gui_init | ( | dt_imageio_module_format_t * | self | ) |
Definition at line 542 of file png.c.
References dt_imageio_png_gui_t::bit_depth, bit_depth_changed(), bpp, dt_imageio_png_gui_t::compression, compression_level_changed(), dt_bauhaus_combobox_add(), dt_bauhaus_combobox_new(), dt_bauhaus_combobox_set(), dt_bauhaus_get_global(), 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_BOX_SPACING, DT_GUI_MODULE, DT_MAX, DT_MIN, dt_imageio_module_format_t::gui_data, L, TRUE, and dt_imageio_module_format_t::widget.
| void gui_reset | ( | dt_imageio_module_format_t * | self | ) |
Definition at line 588 of file png.c.
References dt_imageio_png_gui_t::bit_depth, dt_imageio_png_gui_t::compression, dt_bauhaus_combobox_set(), dt_bauhaus_slider_set(), dt_confgen_get_int(), DT_DEFAULT, and dt_imageio_module_format_t::gui_data.
| void init | ( | 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 | ||
| ) |
Definition at line 392 of file png.c.
References bpp, f, dt_imageio_png_t::global, height, L, dt_imageio_module_data_t::max_width, n, and width.
| int levels | ( | dt_imageio_module_data_t * | p | ) |
Definition at line 502 of file png.c.
References IMAGEIO_INT16, IMAGEIO_INT8, IMAGEIO_RGB, and p.
| const char * mime | ( | dt_imageio_module_data_t * | data | ) |
| const char * name | ( | ) |
| size_t params_size | ( | dt_imageio_module_format_t * | self | ) |
|
static |
| 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 | ||
| ) |
Definition at line 482 of file png.c.
References d, dt_bauhaus_combobox_set(), dt_bauhaus_slider_set(), dt_conf_set_int(), g, dt_imageio_module_format_t::gui_data, params, and 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 | ||
| ) |
Definition at line 147 of file png.c.
References dt_colorspaces_get_output_profile(), dt_colorspaces_get_profile_name(), dt_free, dt_pixelpipe_cache_alloc_align_cache, dt_pixelpipe_cache_free_align, f, dt_imageio_png_t::global, height, i, IS_NULL_PTR, L, name(), p, PNGwriteRawProfile(), dt_colorspaces_color_profile_t::profile, width, and dt_imageio_module_data_t::width.