17 #ifdef WITH_OPENIMAGEIO
35 .load_filepath =
NULL,
48 .load_filepath =
NULL,
49 .load_filepath_thumbnail =
NULL,
61 .load_filepath =
NULL,
62 .load_filepath_thumbnail =
NULL,
74 .load_filepath =
NULL,
75 .load_filepath_thumbnail =
NULL,
87 .load_filepath =
NULL,
88 .load_filepath_thumbnail =
NULL,
101 .load_filepath =
NULL,
102 .load_filepath_thumbnail =
NULL,
106 .filetype = IMB_FTYPE_DPX,
114 .load_filepath =
NULL,
115 .load_filepath_thumbnail =
NULL,
119 .filetype = IMB_FTYPE_CINEON,
129 .load_filepath =
NULL,
130 .load_filepath_thumbnail =
NULL,
134 .filetype = IMB_FTYPE_TIF,
144 .load_filepath =
NULL,
145 .load_filepath_thumbnail =
NULL,
149 .filetype = IMB_FTYPE_RADHDR,
159 .load_filepath =
NULL,
174 .load_filepath =
NULL,
175 .load_filepath_thumbnail =
NULL,
179 .filetype = IMB_FTYPE_JP2,
189 .load_filepath =
NULL,
190 .load_filepath_thumbnail =
NULL,
194 .filetype = IMB_FTYPE_DDS,
198 #ifdef WITH_OPENIMAGEIO
205 .load_filepath_thumbnail =
NULL,
209 .filetype = IMB_FTYPE_PSD,
219 .load_filepath =
NULL,
220 .load_filepath_thumbnail =
NULL,
224 .filetype = IMB_FTYPE_WEBP,
228 {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL, 0, 0, 0},
236 if (ftype ==
type->filetype) {
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
@ COLOR_ROLE_DEFAULT_FLOAT
@ COLOR_ROLE_DEFAULT_BYTE
bool imb_save_jp2(struct ImBuf *ibuf, const char *filepath, int flags)
bool imb_saveiris(struct ImBuf *ibuf, const char *filepath, int flags)
bool imb_is_a_tiff(const unsigned char *buf, size_t size)
struct ImBuf * imb_load_jpeg(const unsigned char *buffer, size_t size, int flags, char colorspace[IM_MAX_SPACE])
bool imb_savepng(struct ImBuf *ibuf, const char *filepath, int flags)
bool imb_savejpeg(struct ImBuf *ibuf, const char *filepath, int flags)
struct ImBuf * imb_loadhdr(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
bool imb_is_a_hdr(const unsigned char *buf, size_t size)
struct ImBuf * imb_loadpng(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
struct ImBuf * imb_load_jp2(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
struct ImBuf * imb_loadwebp(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
struct ImBuf * imb_loadtiff(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
struct ImBuf * imb_loadiris(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
bool imb_savehdr(struct ImBuf *ibuf, const char *filepath, int flags)
bool imb_is_a_jp2(const unsigned char *buf, size_t size)
bool imb_is_a_iris(const unsigned char *mem, size_t size)
bool imb_savetarga(struct ImBuf *ibuf, const char *filepath, int flags)
bool imb_is_a_png(const unsigned char *mem, size_t size)
bool imb_savetiff(struct ImBuf *ibuf, const char *filepath, int flags)
bool imb_is_a_targa(const unsigned char *buf, size_t size)
bool imb_is_a_webp(const unsigned char *buf, size_t size)
struct ImBuf * imb_thumbnail_jpeg(const char *filepath, int flags, size_t max_thumb_size, char colorspace[IM_MAX_SPACE], size_t *r_width, size_t *r_height)
bool imb_savewebp(struct ImBuf *ibuf, const char *name, int flags)
bool imb_is_a_jpeg(const unsigned char *mem, size_t size)
void imb_loadtiletiff(struct ImBuf *ibuf, const unsigned char *mem, size_t size, int tx, int ty, unsigned int *rect)
struct ImBuf * imb_loadtarga(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
Contains defines and structs used throughout the imbuf module.
bool imb_savebmp(ImBuf *ibuf, const char *filepath, int UNUSED(flags))
ImBuf * imb_bmp_decode(const uchar *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
bool imb_is_a_bmp(const uchar *buf, size_t size)
bool imb_save_dpx(struct ImBuf *buf, const char *filepath, int flags)
ImBuf * imb_load_dpx(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
bool imb_is_a_cineon(const unsigned char *buf, size_t size)
bool imb_is_a_dpx(const unsigned char *buf, size_t size)
bool imb_save_cineon(struct ImBuf *buf, const char *filepath, int flags)
ImBuf * imb_load_cineon(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
bool imb_is_a_dds(const unsigned char *mem, const size_t size)
struct ImBuf * imb_load_dds(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
const ImFileType * IMB_file_type_from_ftype(int ftype)
const ImFileType IMB_FILE_TYPES[]
void imb_filetypes_init(void)
const ImFileType * IMB_file_type_from_ibuf(const ImBuf *ibuf)
void imb_filetypes_exit(void)
const ImFileType * IMB_FILE_TYPES_LAST
struct ImBuf * imb_load_openexr(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
void imb_initopenexr(void)
bool imb_is_a_openexr(const unsigned char *mem, const size_t size)
struct ImBuf * imb_load_filepath_thumbnail_openexr(const char *filepath, const int UNUSED(flags), const size_t max_thumb_size, char colorspace[], size_t *r_width, size_t *r_height)
bool imb_save_openexr(struct ImBuf *ibuf, const char *name, int flags)
void imb_exitopenexr(void)
struct ImBuf * imb_load_photoshop(const char *filename, int flags, char colorspace[IM_MAX_SPACE])
bool imb_is_a_photoshop(const unsigned char *mem, size_t size)