![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "imageio_tiff.h"
#include "common/colorspaces.h"
#include "common/darktable.h"
#include "common/exif.h"
#include "control/conf.h"
#include "develop/develop.h"
#include "imageio.h"
#include <inttypes.h>
#include <memory.h>
#include <stdio.h>
#include <strings.h>
#include <tiffio.h>
Data Structures | |
struct | tiff_t |
union | fp32_t |
Macros | |
#define | LAB_CONVERSION_PROFILE DT_COLORSPACE_LIN_REC2020 |
Typedefs | |
typedef struct tiff_t | tiff_t |
typedef union fp32_t | fp32_t |
Functions | |
static float | _half_to_float (uint16_t h) |
static int | _read_chunky_8 (tiff_t *t) |
static int | _read_chunky_16 (tiff_t *t) |
static int | _read_chunky_h (tiff_t *t) |
static int | _read_chunky_f (tiff_t *t) |
static int | _read_chunky_8_Lab (tiff_t *t, uint16_t photometric) |
static int | _read_chunky_16_Lab (tiff_t *t, uint16_t photometric) |
static void | _warning_error_handler (const char *type, const char *module, const char *fmt, va_list ap) |
static void | _warning_handler (const char *module, const char *fmt, va_list ap) |
static void | _error_handler (const char *module, const char *fmt, va_list ap) |
dt_imageio_retval_t | dt_imageio_open_tiff (dt_image_t *img, const char *filename, dt_mipmap_buffer_t *mbuf) |
int | dt_imageio_tiff_read_profile (const char *filename, uint8_t **out) |
#define LAB_CONVERSION_PROFILE DT_COLORSPACE_LIN_REC2020 |
|
static |
References _warning_error_handler().
Referenced by dt_imageio_open_tiff().
|
inlinestatic |
References fp32_t::f, and fp32_t::u.
Referenced by _read_chunky_h().
|
inlinestatic |
References tiff_t::buf, tiff_t::height, tiff_t::mipbuf, tiff_t::spp, tiff_t::tiff, and tiff_t::width.
Referenced by dt_imageio_open_tiff().
|
inlinestatic |
References tiff_t::buf, DT_COLORSPACE_LAB, dt_colorspaces_get_profile(), DT_PROFILE_DIRECTION_ANY, DT_PROFILE_DIRECTION_DISPLAY, DT_PROFILE_DIRECTION_OUT, tiff_t::height, Lab(), LAB_CONVERSION_PROFILE, tiff_t::mipbuf, dt_colorspaces_color_profile_t::profile, tiff_t::spp, tiff_t::tiff, and tiff_t::width.
Referenced by dt_imageio_open_tiff().
|
inlinestatic |
References tiff_t::buf, tiff_t::height, tiff_t::mipbuf, tiff_t::spp, tiff_t::tiff, and tiff_t::width.
Referenced by dt_imageio_open_tiff().
|
inlinestatic |
References tiff_t::buf, DT_COLORSPACE_LAB, dt_colorspaces_get_profile(), DT_PROFILE_DIRECTION_ANY, DT_PROFILE_DIRECTION_DISPLAY, DT_PROFILE_DIRECTION_OUT, tiff_t::height, Lab(), LAB_CONVERSION_PROFILE, tiff_t::mipbuf, dt_colorspaces_color_profile_t::profile, tiff_t::spp, tiff_t::tiff, and tiff_t::width.
Referenced by dt_imageio_open_tiff().
|
inlinestatic |
References tiff_t::buf, tiff_t::height, tiff_t::mipbuf, tiff_t::spp, tiff_t::tiff, and tiff_t::width.
Referenced by dt_imageio_open_tiff().
|
inlinestatic |
References _half_to_float(), tiff_t::buf, tiff_t::height, tiff_t::mipbuf, tiff_t::spp, tiff_t::tiff, and tiff_t::width.
Referenced by dt_imageio_open_tiff().
|
static |
References type.
Referenced by _error_handler(), and _warning_handler().
|
static |
References _warning_error_handler(), darktable, DT_DEBUG_IMAGEIO, and darktable_t::unmuted.
Referenced by dt_imageio_open_tiff().
dt_imageio_retval_t dt_imageio_open_tiff | ( | dt_image_t * | img, |
const char * | filename, | ||
dt_mipmap_buffer_t * | mbuf | ||
) |
References _error_handler(), _read_chunky_16(), _read_chunky_16_Lab(), _read_chunky_8(), _read_chunky_8_Lab(), _read_chunky_f(), _read_chunky_h(), _warning_handler(), tiff_t::bpp, tiff_t::buf, dt_image_t::buf_dsc, dt_iop_buffer_dsc_t::channels, dt_iop_buffer_dsc_t::cst, dt_iop_buffer_dsc_t::datatype, DT_DEBUG_IMAGEIO, dt_exif_read(), DT_IMAGE_HDR, DT_IMAGE_LDR, DT_IMAGEIO_CACHE_FULL, DT_IMAGEIO_FILE_CORRUPTED, DT_IMAGEIO_OK, dt_mipmap_cache_alloc(), dt_print(), dt_image_t::exif_inited, dt_image_t::filename, dt_iop_buffer_dsc_t::filters, dt_image_t::flags, dt_image_t::height, tiff_t::height, tiff_t::image, IOP_CS_LAB, IOP_CS_RGB, dt_image_t::loader, LOADER_TIFF, tiff_t::mipbuf, tiff_t::sampleformat, tiff_t::scanlinesize, tiff_t::spp, tiff_t::tiff, TYPE_FLOAT, void(), dt_image_t::width, and tiff_t::width.
Referenced by dt_imageio_open_raster().
int dt_imageio_tiff_read_profile | ( | const char * | filename, |
uint8_t ** | out | ||
) |