Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
imageio_j2k.h File Reference
#include "common/image.h"
#include "common/mipmap_cache.h"
+ Include dependency graph for imageio_j2k.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_j2k (dt_image_t *img, const char *filename, dt_mipmap_buffer_t *buf)
 
int dt_imageio_j2k_read_profile (const char *filename, uint8_t **out)
 

Function Documentation

◆ dt_imageio_j2k_read_profile()

int dt_imageio_j2k_read_profile ( const char *  filename,
uint8_t **  out 
)

reads the color profile attached to the image

Todo:
: how to do it without fully-decoding the whole image?

References DT_IMAGEIO_FILE_CORRUPTED, get_file_format(), J2K_HEAD, JP2_HEAD, and JP2_MAGIC.

Referenced by dt_image_find_best_color_profile().

◆ dt_imageio_open_j2k()