Blender  V3.3
Macros | Functions
BKE_image_format.h File Reference

Go to the source code of this file.

Macros

#define IMA_CHAN_FLAG_BW   1
 
#define IMA_CHAN_FLAG_RGB   2
 
#define IMA_CHAN_FLAG_ALPHA   4
 

Functions

void BKE_image_format_init (struct ImageFormatData *imf, const bool render)
 
void BKE_image_format_copy (struct ImageFormatData *imf_dst, const struct ImageFormatData *imf_src)
 
void BKE_image_format_free (struct ImageFormatData *imf)
 
void BKE_image_format_blend_read_data (struct BlendDataReader *reader, struct ImageFormatData *imf)
 
void BKE_image_format_blend_write (struct BlendWriter *writer, struct ImageFormatData *imf)
 
void BKE_image_path_from_imformat (char *string, const char *base, const char *relbase, int frame, const struct ImageFormatData *im_format, bool use_ext, bool use_frames, const char *suffix)
 
void BKE_image_path_from_imtype (char *string, const char *base, const char *relbase, int frame, char imtype, bool use_ext, bool use_frames, const char *suffix)
 
int BKE_image_path_ensure_ext_from_imformat (char *string, const struct ImageFormatData *im_format)
 
int BKE_image_path_ensure_ext_from_imtype (char *string, char imtype)
 
char BKE_ftype_to_imtype (int ftype, const struct ImbFormatOptions *options)
 
int BKE_imtype_to_ftype (char imtype, struct ImbFormatOptions *r_options)
 
bool BKE_imtype_is_movie (char imtype)
 
bool BKE_imtype_supports_zbuf (char imtype)
 
bool BKE_imtype_supports_compress (char imtype)
 
bool BKE_imtype_supports_quality (char imtype)
 
bool BKE_imtype_requires_linear_float (char imtype)
 
char BKE_imtype_valid_channels (char imtype, bool write_file)
 
char BKE_imtype_valid_depths (char imtype)
 
char BKE_imtype_from_arg (const char *arg)
 
void BKE_image_format_from_imbuf (struct ImageFormatData *im_format, const struct ImBuf *imbuf)
 
void BKE_image_format_to_imbuf (struct ImBuf *ibuf, const struct ImageFormatData *imf)
 
bool BKE_image_format_is_byte (const struct ImageFormatData *imf)
 
void BKE_image_format_color_management_copy (struct ImageFormatData *imf, const struct ImageFormatData *imf_src)
 
void BKE_image_format_color_management_copy_from_scene (struct ImageFormatData *imf, const struct Scene *scene)
 
void BKE_image_format_init_for_write (struct ImageFormatData *imf, const struct Scene *scene_src, const struct ImageFormatData *imf_src)
 

Macro Definition Documentation

◆ IMA_CHAN_FLAG_ALPHA

#define IMA_CHAN_FLAG_ALPHA   4

Definition at line 55 of file BKE_image_format.h.

◆ IMA_CHAN_FLAG_BW

#define IMA_CHAN_FLAG_BW   1

Definition at line 53 of file BKE_image_format.h.

◆ IMA_CHAN_FLAG_RGB

#define IMA_CHAN_FLAG_RGB   2

Definition at line 54 of file BKE_image_format.h.

Function Documentation

◆ BKE_ftype_to_imtype()

char BKE_ftype_to_imtype ( int  ftype,
const struct ImbFormatOptions options 
)

Referenced by unpack_generate_paths().

◆ BKE_image_format_blend_read_data()

void BKE_image_format_blend_read_data ( struct BlendDataReader reader,
struct ImageFormatData imf 
)

◆ BKE_image_format_blend_write()

void BKE_image_format_blend_write ( struct BlendWriter writer,
struct ImageFormatData imf 
)

◆ BKE_image_format_color_management_copy()

void BKE_image_format_color_management_copy ( struct ImageFormatData imf,
const struct ImageFormatData imf_src 
)

◆ BKE_image_format_color_management_copy_from_scene()

void BKE_image_format_color_management_copy_from_scene ( struct ImageFormatData imf,
const struct Scene scene 
)

◆ BKE_image_format_copy()

void BKE_image_format_copy ( struct ImageFormatData imf_dst,
const struct ImageFormatData imf_src 
)

◆ BKE_image_format_free()

void BKE_image_format_free ( struct ImageFormatData imf)

◆ BKE_image_format_from_imbuf()

void BKE_image_format_from_imbuf ( struct ImageFormatData im_format,
const struct ImBuf imbuf 
)

◆ BKE_image_format_init()

void BKE_image_format_init ( struct ImageFormatData imf,
const bool  render 
)

◆ BKE_image_format_init_for_write()

void BKE_image_format_init_for_write ( struct ImageFormatData imf,
const struct Scene scene_src,
const struct ImageFormatData imf_src 
)

◆ BKE_image_format_is_byte()

bool BKE_image_format_is_byte ( const struct ImageFormatData imf)

◆ BKE_image_format_to_imbuf()

void BKE_image_format_to_imbuf ( struct ImBuf ibuf,
const struct ImageFormatData imf 
)

◆ BKE_image_path_ensure_ext_from_imformat()

int BKE_image_path_ensure_ext_from_imformat ( char *  string,
const struct ImageFormatData im_format 
)

◆ BKE_image_path_ensure_ext_from_imtype()

int BKE_image_path_ensure_ext_from_imtype ( char *  string,
char  imtype 
)

Definition at line 546 of file image_format.cc.

References do_add_image_extension().

Referenced by dynamicPaint_outputSurfaceImage(), and unpack_generate_paths().

◆ BKE_image_path_from_imformat()

void BKE_image_path_from_imformat ( char *  string,
const char *  base,
const char *  relbase,
int  frame,
const struct ImageFormatData im_format,
bool  use_ext,
bool  use_frames,
const char *  suffix 
)

◆ BKE_image_path_from_imtype()

void BKE_image_path_from_imtype ( char *  string,
const char *  base,
const char *  relbase,
int  frame,
char  imtype,
bool  use_ext,
bool  use_frames,
const char *  suffix 
)

◆ BKE_imtype_from_arg()

char BKE_imtype_from_arg ( const char *  arg)

◆ BKE_imtype_is_movie()

bool BKE_imtype_is_movie ( char  imtype)

◆ BKE_imtype_requires_linear_float()

bool BKE_imtype_requires_linear_float ( char  imtype)

◆ BKE_imtype_supports_compress()

bool BKE_imtype_supports_compress ( char  imtype)

Definition at line 219 of file image_format.cc.

References R_IMF_IMTYPE_PNG.

Referenced by uiTemplateImageSettings().

◆ BKE_imtype_supports_quality()

bool BKE_imtype_supports_quality ( char  imtype)

◆ BKE_imtype_supports_zbuf()

bool BKE_imtype_supports_zbuf ( char  imtype)

Definition at line 209 of file image_format.cc.

References R_IMF_IMTYPE_IRIZ, and R_IMF_IMTYPE_OPENEXR.

Referenced by uiTemplateImageSettings().

◆ BKE_imtype_to_ftype()

int BKE_imtype_to_ftype ( char  imtype,
struct ImbFormatOptions r_options 
)

◆ BKE_imtype_valid_channels()

char BKE_imtype_valid_channels ( char  imtype,
bool  write_file 
)

◆ BKE_imtype_valid_depths()

char BKE_imtype_valid_depths ( char  imtype)