Blender V5.3
BKE_image_format.hh File Reference
#include <cstddef>
#include "BKE_path_templates.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define BKE_IMAGE_PATH_EXT_MAX   3
#define IMA_CHAN_FLAG_BW   1
#define IMA_CHAN_FLAG_RGB   2
#define IMA_CHAN_FLAG_RGBA   4

Functions

void blender::BKE_image_format_init (ImageFormatData *imf)
void blender::BKE_image_format_copy (ImageFormatData *imf_dst, const ImageFormatData *imf_src)
void blender::BKE_image_format_free (ImageFormatData *imf)
void blender::BKE_image_format_update_color_space_for_type (ImageFormatData *format)
void blender::BKE_image_format_blend_read_data (BlendDataReader *reader, ImageFormatData *imf)
void blender::BKE_image_format_blend_write (BlendWriter *writer, ImageFormatData *imf)
void blender::BKE_image_format_media_type_set (ImageFormatData *format, ID *owner_id, const MediaType media_type)
void blender::BKE_image_format_set (ImageFormatData *imf, ID *owner_id, const char imtype)
Vector< bke::path_templates::Error > blender::BKE_image_path_from_imformat (char *filepath, const char *base, const char *relbase, const bke::path_templates::VariableMap *template_variables, int frame, const ImageFormatData *im_format, bool use_ext, bool use_frames, const char *suffix)
Vector< bke::path_templates::Error > blender::BKE_image_path_from_imtype (char *filepath, const char *base, const char *relbase, const bke::path_templates::VariableMap *template_variables, int frame, char imtype, bool use_ext, bool use_frames, const char *suffix)
int blender::BKE_image_path_ext_from_imformat (const ImageFormatData *im_format, const char *r_ext[BKE_IMAGE_PATH_EXT_MAX])
int blender::BKE_image_path_ext_from_imtype (const char imtype, const char *r_ext[BKE_IMAGE_PATH_EXT_MAX])
int blender::BKE_image_path_ext_from_imformat_ensure (char *filepath, size_t filepath_maxncpy, const ImageFormatData *im_format)
int blender::BKE_image_path_ext_from_imtype_ensure (char *filepath, size_t filepath_maxncpy, char imtype)
char blender::BKE_ftype_to_imtype (eImbFileType ftype, const ImbFormatOptions *options)
eImbFileType blender::BKE_imtype_to_ftype (char imtype, ImbFormatOptions *r_options)
bool blender::BKE_imtype_is_image (char imtype)
bool blender::BKE_imtype_is_multi_layer_image (char imtype)
bool blender::BKE_imtype_is_movie (char imtype)
bool blender::BKE_imtype_supports_compress (char imtype)
bool blender::BKE_imtype_supports_quality (char imtype)
bool blender::BKE_imtype_requires_linear_float (char imtype)
char blender::BKE_imtype_valid_channels (char imtype)
eImageFormatDepth blender::BKE_imtype_valid_depths (char imtype)
eImageFormatDepth blender::BKE_imtype_valid_depths_with_video (char imtype, const ID *owner_id)
eImageFormatDepth blender::BKE_imtype_first_valid_depth (eImageFormatDepth valid_depths)
char blender::BKE_imtype_from_arg (const char *imtype_arg)
void blender::BKE_image_format_from_imbuf (ImageFormatData *im_format, const ImBuf *imbuf)
void blender::BKE_image_format_to_imbuf (ImBuf *ibuf, const ImageFormatData *imf)
bool blender::BKE_image_format_is_byte (const ImageFormatData *imf)
void blender::BKE_image_format_color_management_copy (ImageFormatData *imf, const ImageFormatData *imf_src)
void blender::BKE_image_format_color_management_copy_from_scene (ImageFormatData *imf, const Scene *scene)
void blender::BKE_image_format_init_for_write (ImageFormatData *imf, const Scene *scene_src, const ImageFormatData *imf_src, const bool allow_video=false)

Macro Definition Documentation

◆ BKE_IMAGE_PATH_EXT_MAX

#define BKE_IMAGE_PATH_EXT_MAX   3

The number of extensions an image may have (.jpg, .jpeg for example). Add 1 as the array is nil terminated.

Definition at line 82 of file BKE_image_format.hh.

Referenced by blender::BKE_image_path_ext_from_imformat(), blender::BKE_image_path_ext_from_imtype(), blender::io::hydra::cache_image_file(), blender::do_ensure_image_extension(), and blender::image_path_ext_from_imformat_impl().

◆ IMA_CHAN_FLAG_BW

#define IMA_CHAN_FLAG_BW   1

◆ IMA_CHAN_FLAG_RGB

#define IMA_CHAN_FLAG_RGB   2

Definition at line 102 of file BKE_image_format.hh.

Referenced by blender::BKE_imtype_valid_channels().

◆ IMA_CHAN_FLAG_RGBA

#define IMA_CHAN_FLAG_RGBA   4