|
Blender V4.3
|
#include <IMB_filetype.hh>
Public Attributes | |
| void(* | init )() |
| void(* | exit )() |
| bool(* | is_a )(const unsigned char *buf, size_t size) |
| ImBuf *(* | load )(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE]) |
| ImBuf *(* | load_filepath )(const char *filepath, int flags, char colorspace[IM_MAX_SPACE]) |
| ImBuf *(* | load_filepath_thumbnail )(const char *filepath, int flags, size_t max_thumb_size, char colorspace[IM_MAX_SPACE], size_t *r_width, size_t *r_height) |
| bool(* | save )(ImBuf *ibuf, const char *filepath, int flags) |
| int | flag |
| int | filetype |
| int | default_save_role |
Definition at line 21 of file IMB_filetype.hh.
| int ImFileType::default_save_role |
Definition at line 57 of file IMB_filetype.hh.
| void(* ImFileType::exit) () |
Optional, called once when exiting.
Definition at line 25 of file IMB_filetype.hh.
Referenced by imb_filetypes_exit().
| int ImFileType::filetype |
Definition at line 55 of file IMB_filetype.hh.
| int ImFileType::flag |
Definition at line 52 of file IMB_filetype.hh.
| void(* ImFileType::init) () |
Optional, called once when initializing.
Definition at line 23 of file IMB_filetype.hh.
| bool(* ImFileType::is_a) (const unsigned char *buf, size_t size) |
Check if the data matches this file types 'magic',
Definition at line 32 of file IMB_filetype.hh.
| ImBuf *(* ImFileType::load) (const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE]) |
Load an image from memory.
Definition at line 35 of file IMB_filetype.hh.
| ImBuf *(* ImFileType::load_filepath) (const char *filepath, int flags, char colorspace[IM_MAX_SPACE]) |
Load an image from a file.
Definition at line 37 of file IMB_filetype.hh.
| ImBuf *(* ImFileType::load_filepath_thumbnail) (const char *filepath, int flags, size_t max_thumb_size, char colorspace[IM_MAX_SPACE], size_t *r_width, size_t *r_height) |
Load/Create a thumbnail image from a filepath. max_thumb_size is maximum size of either dimension, so can return less on either or both. Should, if possible and performant, return dimensions of the full-size image in r_width & r_height.
Definition at line 43 of file IMB_filetype.hh.
Save to a file (or memory if IB_mem is set in flags and the format supports it).
Definition at line 50 of file IMB_filetype.hh.