![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Include dependency graph for imageio_tiff.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| dt_imageio_retval_t | dt_imageio_open_tiff (dt_image_t *img, const char *filename, dt_mipmap_buffer_t *buf) |
| int | dt_imageio_tiff_read_profile (const char *filename, uint8_t **out) |
| gboolean | dt_imageio_tiff_decode_blob (const uint8_t *blob, size_t bufsize, uint8_t **out, int32_t *width, int32_t *height) |
| Decode a TIFF held in memory into 8-bit RGBx, for the previews raw files embed. | |
| dt_imageio_retval_t dt_imageio_open_tiff | ( | dt_image_t * | img, |
| const char * | filename, | ||
| dt_mipmap_buffer_t * | buf | ||
| ) |
Definition at line 354 of file imageio_tiff.c.
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(), DT_DEBUG_IMAGEIO, dt_exif_read(), dt_free, 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, tiff_t::image, IOP_CS_LAB, IOP_CS_RGB, IS_NULL_PTR, LOADER_TIFF, t, TYPE_FLOAT, and void().
Referenced by dt_imageio_open_raster().
| gboolean dt_imageio_tiff_decode_blob | ( | const uint8_t * | blob, |
| size_t | bufsize, | ||
| uint8_t ** | out, | ||
| int32_t * | width, | ||
| int32_t * | height | ||
| ) |
Decode a TIFF held in memory into 8-bit RGBx, for the previews raw files embed.
Raws that do not embed a JPEG preview embed a TIFF one – every DNG written by Adobe's converter does, as do Phase One IIQ, Hasselblad 3FR and film scanners. This is the only decoder those previews need; libtiff reads a blob through TIFFClientOpen just as well as a file.
| blob | Encoded TIFF bytes. Not retained. |
| bufsize | Length of blob. |
| out | On success, receives a freshly allocated buffer of 4 bytes per pixel, laid out R, G, B, unused – the layout the JPEG preview path also produces. The caller owns it and must release it with dt_pixelpipe_cache_free_align(). Untouched on failure. |
| width | Receives the decoded width. Untouched on failure. |
| height | Receives the decoded height. Untouched on failure. |
Definition at line 651 of file imageio_tiff.c.
References _blob_close(), _blob_map(), _blob_read(), _blob_seek(), _blob_size(), _blob_unmap(), _blob_write(), _error_handler(), _warning_handler(), _tiff_blob_t::data, DT_DEBUG_IMAGEIO, dt_pixelpipe_cache_alloc_align_cache, dt_pixelpipe_cache_free_align, dt_print(), FALSE, height, i, IS_NULL_PTR, out, TRUE, and width.
Referenced by dt_imageio_large_thumbnail().
| int dt_imageio_tiff_read_profile | ( | const char * | filename, |
| uint8_t ** | out | ||
| ) |
Definition at line 517 of file imageio_tiff.c.
References dt_colorspaces_get_profile(), dt_free, DT_PROFILE_ROLE_MONITOR, DT_PROFILE_ROLE_OUTPUT, IS_NULL_PTR, LAB_CONVERSION_PROFILE, out, and dt_colorspaces_color_profile_t::profile.
Referenced by dt_image_find_best_color_profile().