Blender
V3.3
|
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 |
#define IMA_CHAN_FLAG_ALPHA 4 |
Definition at line 55 of file BKE_image_format.h.
#define IMA_CHAN_FLAG_BW 1 |
Definition at line 53 of file BKE_image_format.h.
#define IMA_CHAN_FLAG_RGB 2 |
Definition at line 54 of file BKE_image_format.h.
char BKE_ftype_to_imtype | ( | int | ftype, |
const struct ImbFormatOptions * | options | ||
) |
Referenced by unpack_generate_paths().
void BKE_image_format_blend_read_data | ( | struct BlendDataReader * | reader, |
struct ImageFormatData * | imf | ||
) |
Definition at line 57 of file image_format.cc.
References BKE_color_managed_view_settings_blend_read_data(), and ImageFormatData::view_settings.
Referenced by ntreeBlendReadData(), and scene_blend_read_data().
void BKE_image_format_blend_write | ( | struct BlendWriter * | writer, |
struct ImageFormatData * | imf | ||
) |
Definition at line 62 of file image_format.cc.
References BKE_color_managed_view_settings_blend_write(), and ImageFormatData::view_settings.
Referenced by ntreeBlendWrite(), and scene_blend_write().
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 | ||
) |
Referenced by BKE_image_save_options_init(), and BKE_image_save_options_update().
void BKE_image_format_copy | ( | struct ImageFormatData * | imf_dst, |
const struct ImageFormatData * | imf_src | ||
) |
void BKE_image_format_free | ( | struct ImageFormatData * | imf | ) |
Definition at line 52 of file image_format.cc.
References BKE_color_managed_view_settings_free(), and ImageFormatData::view_settings.
Referenced by BKE_image_render_write(), BKE_image_save_options_free(), blender::nodes::node_composite_output_file_cc::free_output_file(), RE_WriteRenderViewsMovie(), scene_free_data(), and blender::compositor::OutputSingleLayerOperation::~OutputSingleLayerOperation().
void BKE_image_format_from_imbuf | ( | struct ImageFormatData * | im_format, |
const struct ImBuf * | imbuf | ||
) |
void BKE_image_format_init | ( | struct ImageFormatData * | imf, |
const bool | render | ||
) |
Definition at line 26 of file image_format.cc.
References BKE_color_managed_colorspace_settings_init(), BKE_color_managed_display_settings_init(), BKE_color_managed_view_settings_init_default(), BKE_color_managed_view_settings_init_render(), ImageFormatData::display_settings, DNA_struct_default_get, ImageFormatData::linear_colorspace_settings, and ImageFormatData::view_settings.
Referenced by BKE_image_format_from_imbuf(), BKE_image_save_options_init(), blender::nodes::node_composite_output_file_cc::init_output_file(), ntreeCompositOutputFileAddSocket(), scene_init_data(), and screenshot_data_create().
void BKE_image_format_init_for_write | ( | struct ImageFormatData * | imf, |
const struct Scene * | scene_src, | ||
const struct ImageFormatData * | imf_src | ||
) |
bool BKE_image_format_is_byte | ( | const struct ImageFormatData * | imf | ) |
Referenced by IMB_colormanagement_imbuf_for_write().
void BKE_image_format_to_imbuf | ( | struct ImBuf * | ibuf, |
const struct ImageFormatData * | imf | ||
) |
Referenced by BKE_imbuf_write(), and image_save_single().
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 | ||
) |
Definition at line 546 of file image_format.cc.
References do_add_image_extension().
Referenced by dynamicPaint_outputSurfaceImage(), and unpack_generate_paths().
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 | ||
) |
Definition at line 593 of file image_format.cc.
References do_makepicstring().
Referenced by bake_targets_output_external(), blender::compositor::OutputOpenExrSingleLayerMultiViewOperation::deinit_execution(), blender::compositor::OutputOpenExrMultiLayerMultiViewOperation::deinit_execution(), and blender::compositor::OutputOpenExrMultiLayerOperation::deinit_execution().
char BKE_imtype_from_arg | ( | const char * | arg | ) |
String is from command line --render-format
argument, keep in sync with creator_args.c
help info.
Definition at line 321 of file image_format.cc.
References R_IMF_IMTYPE_AVIJPEG, R_IMF_IMTYPE_AVIRAW, R_IMF_IMTYPE_BMP, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DDS, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_FFMPEG, R_IMF_IMTYPE_INVALID, R_IMF_IMTYPE_IRIS, R_IMF_IMTYPE_IRIZ, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_JPEG90, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_RADHDR, R_IMF_IMTYPE_RAWTGA, R_IMF_IMTYPE_TARGA, R_IMF_IMTYPE_TIFF, R_IMF_IMTYPE_WEBP, and STREQ.
Referenced by arg_handle_image_type_set().
bool BKE_imtype_is_movie | ( | char | imtype | ) |
Definition at line 195 of file image_format.cc.
References R_IMF_IMTYPE_AVIJPEG, R_IMF_IMTYPE_AVIRAW, R_IMF_IMTYPE_FFMPEG, R_IMF_IMTYPE_H264, R_IMF_IMTYPE_THEORA, and R_IMF_IMTYPE_XVID.
Referenced by BKE_scene_multiview_num_videos_get(), do_write_image_or_movie(), blender::nodes::node_composite_output_file_cc::init_output_file(), ntreeCompositOutputFileAddSocket(), RE_InitState(), RE_RenderAnim(), RE_RenderFrame(), screen_opengl_render_anim_init(), screen_opengl_render_anim_step(), screen_opengl_render_end(), screen_opengl_render_init(), screen_render_exec(), screen_render_invoke(), and write_result().
bool BKE_imtype_requires_linear_float | ( | char | imtype | ) |
Definition at line 240 of file image_format.cc.
References R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, and R_IMF_IMTYPE_RADHDR.
Referenced by BKE_image_save_options_update(), image_save_post(), IMB_colormanagement_imbuf_for_write(), and uiTemplateImageSettings().
bool BKE_imtype_supports_compress | ( | char | imtype | ) |
Definition at line 219 of file image_format.cc.
References R_IMF_IMTYPE_PNG.
Referenced by uiTemplateImageSettings().
bool BKE_imtype_supports_quality | ( | char | imtype | ) |
Definition at line 228 of file image_format.cc.
References R_IMF_IMTYPE_AVIJPEG, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_JPEG90, and R_IMF_IMTYPE_WEBP.
Referenced by uiTemplateImageSettings().
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().
int BKE_imtype_to_ftype | ( | char | imtype, |
struct ImbFormatOptions * | r_options | ||
) |
Definition at line 69 of file image_format.cc.
References ELEM, ImbFormatOptions::flag, IMB_FTYPE_BMP, IMB_FTYPE_IMAGIC, IMB_FTYPE_JPG, IMB_FTYPE_OPENEXR, IMB_FTYPE_PNG, IMB_FTYPE_TGA, ImbFormatOptions::quality, R_IMF_IMTYPE_BMP, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DDS, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_IRIS, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_RADHDR, R_IMF_IMTYPE_RAWTGA, R_IMF_IMTYPE_TARGA, R_IMF_IMTYPE_TIFF, R_IMF_IMTYPE_WEBP, and RAWTGA.
Referenced by BKE_image_buffer_format_writable().
char BKE_imtype_valid_channels | ( | char | imtype, |
bool | write_file | ||
) |
Definition at line 253 of file image_format.cc.
References ATTR_FALLTHROUGH, IMA_CHAN_FLAG_ALPHA, IMA_CHAN_FLAG_BW, IMA_CHAN_FLAG_RGB, R_IMF_IMTYPE_BMP, R_IMF_IMTYPE_DDS, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_IRIS, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_JPEG90, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_RAWTGA, R_IMF_IMTYPE_TARGA, R_IMF_IMTYPE_TIFF, and R_IMF_IMTYPE_WEBP.
char BKE_imtype_valid_depths | ( | char | imtype | ) |
Definition at line 295 of file image_format.cc.
References R_IMF_CHAN_DEPTH_10, R_IMF_CHAN_DEPTH_12, R_IMF_CHAN_DEPTH_16, R_IMF_CHAN_DEPTH_32, R_IMF_CHAN_DEPTH_8, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_PNG, R_IMF_IMTYPE_RADHDR, and R_IMF_IMTYPE_TIFF.
Referenced by BKE_image_format_is_byte(), imtype_best_depth(), RE_render_result_rect_to_ibuf(), and uiTemplateImageSettings().