Blender  V3.3
Public Attributes | List of all members
ImFileType Struct Reference

#include <IMB_filetype.h>

Public Attributes

void(* init )(void)
 
void(* exit )(void)
 
bool(* is_a )(const unsigned char *buf, size_t size)
 
struct ImBuf *(* load )(const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE])
 
struct ImBuf *(* load_filepath )(const char *filepath, int flags, char colorspace[IM_MAX_SPACE])
 
struct 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 )(struct ImBuf *ibuf, const char *filepath, int flags)
 
void(* load_tile )(struct ImBuf *ibuf, const unsigned char *mem, size_t size, int tx, int ty, unsigned int *rect)
 
int flag
 
int filetype
 
int default_save_role
 

Detailed Description

Definition at line 19 of file IMB_filetype.h.

Member Data Documentation

◆ default_save_role

int ImFileType::default_save_role

Definition at line 64 of file IMB_filetype.h.

◆ exit

void(* ImFileType::exit) (void)

Optional, called once when exiting.

Definition at line 23 of file IMB_filetype.h.

◆ filetype

int ImFileType::filetype

eImbFileType

Definition at line 62 of file IMB_filetype.h.

◆ flag

int ImFileType::flag

Definition at line 59 of file IMB_filetype.h.

◆ init

void(* ImFileType::init) (void)

Optional, called once when initializing.

Definition at line 21 of file IMB_filetype.h.

◆ is_a

bool(* ImFileType::is_a) (const unsigned char *buf, size_t size)

Check if the data matches this file types 'magic',

Note
that this may only read in a small part of the files header, see: IMB_ispic_type for details.

Definition at line 30 of file IMB_filetype.h.

◆ load

struct 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 30 of file IMB_filetype.h.

◆ load_filepath

struct ImBuf*(* ImFileType::load_filepath) (const char *filepath, int flags, char colorspace[IM_MAX_SPACE])

Load an image from a file.

Definition at line 30 of file IMB_filetype.h.

◆ load_filepath_thumbnail

struct 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 30 of file IMB_filetype.h.

◆ load_tile

void(* ImFileType::load_tile) (struct ImBuf *ibuf, const unsigned char *mem, size_t size, int tx, int ty, unsigned int *rect)

Definition at line 52 of file IMB_filetype.h.

◆ save

bool(* ImFileType::save) (struct ImBuf *ibuf, const char *filepath, int flags)

Save to a file (or memory if IB_mem is set in flags and the format supports it).

Definition at line 51 of file IMB_filetype.h.


The documentation for this struct was generated from the following file: