|
Blender V4.3
|
Contains defines and structs used throughout the imbuf module. More...
Go to the source code of this file.
Classes | |
| struct | ImbFormatOptions |
| struct | DDSData |
| struct | ImBufByteBuffer |
| struct | ImBufFloatBuffer |
| struct | ImBufGPU |
| struct | ImBuf |
Macros | |
| #define | IMB_MIPMAP_LEVELS 20 |
| #define | IMB_FILEPATH_SIZE 1024 |
| #define | OPENEXR_HALF (1 << 8) |
| #define | OPENEXR_COMPRESS (15) |
| #define | PNG_16BIT (1 << 10) |
| #define | RAWTGA 1 |
| #define | TIF_16BIT (1 << 8) |
| #define | TIF_COMPRESS_NONE (1 << 7) |
| #define | TIF_COMPRESS_DEFLATE (1 << 6) |
| #define | TIF_COMPRESS_LZW (1 << 5) |
| #define | TIF_COMPRESS_PACKBITS (1 << 4) |
| #define | DDS_MAKEFOURCC(ch0, ch1, ch2, ch3) |
| #define | FOURCC_DDS (DDS_MAKEFOURCC('D', 'D', 'S', ' ')) |
| #define | FOURCC_DX10 (DDS_MAKEFOURCC('D', 'X', '1', '0')) |
| #define | FOURCC_DXT1 (DDS_MAKEFOURCC('D', 'X', 'T', '1')) |
| #define | FOURCC_DXT2 (DDS_MAKEFOURCC('D', 'X', 'T', '2')) |
| #define | FOURCC_DXT3 (DDS_MAKEFOURCC('D', 'X', 'T', '3')) |
| #define | FOURCC_DXT4 (DDS_MAKEFOURCC('D', 'X', 'T', '4')) |
| #define | FOURCC_DXT5 (DDS_MAKEFOURCC('D', 'X', 'T', '5')) |
ImBuf Preset Profile Tags | |
Some predefined color space profiles that 8 bit imbufs can represent. | |
| #define | IB_PROFILE_NONE 0 |
| #define | IB_PROFILE_LINEAR_RGB 1 |
| #define | IB_PROFILE_SRGB 2 |
| #define | IB_PROFILE_CUSTOM 3 |
Enumerations | |
ImBuf Component flags | |
These flags determine the components of an ImBuf struct. | |
| enum | eImBufFlags { IB_rect = 1 << 0 , IB_test = 1 << 1 , IB_mem = 1 << 4 , IB_rectfloat = 1 << 5 , IB_multilayer = 1 << 7 , IB_metadata = 1 << 8 , IB_animdeinterlace = 1 << 9 , IB_uninitialized_pixels = 1 << 10 , IB_alphamode_premul = 1 << 12 , IB_alphamode_detect = 1 << 13 , IB_alphamode_channel_packed = 1 << 14 , IB_alphamode_ignore = 1 << 15 , IB_thumbnail = 1 << 16 , IB_multiview = 1 << 17 , IB_halffloat = 1 << 18 } |
ImBuf buffer storage | |
| enum | ImBufOwnership { IB_DO_NOT_TAKE_OWNERSHIP = 0 , IB_TAKE_OWNERSHIP = 1 } |
Image Buffer | |
| enum | { IB_BITMAPDIRTY = (1 << 1) , IB_MIPMAP_INVALID = (1 << 2) , IB_RECT_INVALID = (1 << 3) , IB_DISPLAY_BUFFER_INVALID = (1 << 4) , IB_PERSISTENT = (1 << 5) } |
| userflags: Flags used internally by blender for image-buffers. More... | |
ImBuf Color Management Flag | |
Used with ImBuf.colormanage_flag | |
| enum | { IMB_COLORMANAGE_IS_DATA = (1 << 0) } |
Variables | |
| const char * | imb_ext_image [] |
| const char * | imb_ext_movie [] |
| const char * | imb_ext_audio [] |
Contains defines and structs used throughout the imbuf module.
Types needed for using the image buffer.
ImBuf is external code, slightly adapted to live in the Blender context. It requires an external JPEG module, and the AVI-module (also external code) in order to function correctly.
This file contains types and some constants that go with them. Most are self-explanatory (e.g. IS_amiga tests whether the buffer contains an Amiga-format file).
Definition in file IMB_imbuf_types.hh.
| #define DDS_MAKEFOURCC | ( | ch0, | |
| ch1, | |||
| ch2, | |||
| ch3 ) |
Definition at line 311 of file IMB_imbuf_types.hh.
| #define FOURCC_DDS (DDS_MAKEFOURCC('D', 'D', 'S', ' ')) |
Definition at line 320 of file IMB_imbuf_types.hh.
Referenced by LoadDXTCImage().
| #define FOURCC_DX10 (DDS_MAKEFOURCC('D', 'X', '1', '0')) |
Definition at line 321 of file IMB_imbuf_types.hh.
Referenced by LoadDXTCImage().
| #define FOURCC_DXT1 (DDS_MAKEFOURCC('D', 'X', 'T', '1')) |
Definition at line 322 of file IMB_imbuf_types.hh.
Referenced by FlipDXTCImage(), and IMB_gpu_get_compressed_format().
| #define FOURCC_DXT2 (DDS_MAKEFOURCC('D', 'X', 'T', '2')) |
Definition at line 323 of file IMB_imbuf_types.hh.
| #define FOURCC_DXT3 (DDS_MAKEFOURCC('D', 'X', 'T', '3')) |
Definition at line 324 of file IMB_imbuf_types.hh.
Referenced by FlipDXTCImage(), and IMB_gpu_get_compressed_format().
| #define FOURCC_DXT4 (DDS_MAKEFOURCC('D', 'X', 'T', '4')) |
Definition at line 325 of file IMB_imbuf_types.hh.
| #define FOURCC_DXT5 (DDS_MAKEFOURCC('D', 'X', 'T', '5')) |
Definition at line 326 of file IMB_imbuf_types.hh.
Referenced by FlipDXTCImage(), and IMB_gpu_get_compressed_format().
| #define IB_PROFILE_CUSTOM 3 |
Definition at line 305 of file IMB_imbuf_types.hh.
| #define IB_PROFILE_LINEAR_RGB 1 |
Definition at line 303 of file IMB_imbuf_types.hh.
Referenced by BKE_image_buf_fill_checker_color(), IMB_buffer_byte_from_byte(), IMB_buffer_byte_from_float(), IMB_buffer_float_from_byte(), IMB_buffer_float_from_float(), imb_stereo3d_squeeze_rectf(), studiolight_multilayer_convert_pass(), blender::ed::object::write_external_bake_pixels(), and blender::ed::object::write_internal_bake_pixels().
| #define IB_PROFILE_NONE 0 |
Definition at line 302 of file IMB_imbuf_types.hh.
Referenced by IMB_buffer_byte_from_byte(), IMB_buffer_byte_from_float(), IMB_buffer_float_from_byte(), and IMB_buffer_float_from_float().
| #define IB_PROFILE_SRGB 2 |
Definition at line 304 of file IMB_imbuf_types.hh.
Referenced by BKE_image_buf_fill_checker_color(), do_display_buffer_apply_no_processor(), do_display_buffer_apply_thread(), do_glow_effect_byte(), do_processor_transform_thread(), IMB_buffer_byte_from_byte(), IMB_buffer_byte_from_float(), IMB_buffer_float_from_byte(), IMB_buffer_float_from_float(), IMB_colormanagement_transform_from_byte(), IMB_display_buffer_transform_apply(), IMB_float_from_rect_ex(), IMB_rect_from_float(), imb_stereo3d_squeeze_rect(), partial_buffer_update_rect(), blender::ed::object::write_external_bake_pixels(), and blender::ed::object::write_internal_bake_pixels().
| #define IMB_FILEPATH_SIZE 1024 |
Definition at line 35 of file IMB_imbuf_types.hh.
| #define IMB_MIPMAP_LEVELS 20 |
Definition at line 34 of file IMB_imbuf_types.hh.
Referenced by image_mem_size(), imagewraposa_aniso(), IMB_dupImBuf(), imb_freemipmapImBuf(), IMB_makemipmap(), and IMB_remakemipmap().
| #define OPENEXR_COMPRESS (15) |
Definition at line 50 of file IMB_imbuf_types.hh.
Referenced by BKE_image_format_from_imbuf(), BKE_image_format_to_imbuf(), dynamicPaint_outputSurfaceImage(), imb_save_openexr_float(), and imb_save_openexr_half().
| #define PNG_16BIT (1 << 10) |
Definition at line 69 of file IMB_imbuf_types.hh.
Referenced by BKE_image_format_from_imbuf(), BKE_image_format_to_imbuf(), imb_load_png(), and imb_save_png().
| #define RAWTGA 1 |
Definition at line 71 of file IMB_imbuf_types.hh.
Referenced by BKE_ftype_to_imtype(), BKE_image_format_from_imbuf(), BKE_image_format_to_imbuf(), BKE_imtype_to_ftype(), and imb_save_tga().
| #define TIF_16BIT (1 << 8) |
Definition at line 73 of file IMB_imbuf_types.hh.
Referenced by BKE_image_format_from_imbuf(), BKE_image_format_to_imbuf(), and imb_save_tiff().
| #define TIF_COMPRESS_DEFLATE (1 << 6) |
Definition at line 75 of file IMB_imbuf_types.hh.
Referenced by BKE_image_format_from_imbuf(), BKE_image_format_to_imbuf(), and imb_save_tiff().
| #define TIF_COMPRESS_LZW (1 << 5) |
Definition at line 76 of file IMB_imbuf_types.hh.
Referenced by BKE_image_format_from_imbuf(), BKE_image_format_to_imbuf(), and imb_save_tiff().
| #define TIF_COMPRESS_NONE (1 << 7) |
Definition at line 74 of file IMB_imbuf_types.hh.
Referenced by BKE_image_format_from_imbuf(), BKE_image_format_to_imbuf(), and imb_save_tiff().
| #define TIF_COMPRESS_PACKBITS (1 << 4) |
Definition at line 77 of file IMB_imbuf_types.hh.
Referenced by BKE_image_format_from_imbuf(), BKE_image_format_to_imbuf(), and imb_save_tiff().
| anonymous enum |
userflags: Flags used internally by blender for image-buffers.
Definition at line 281 of file IMB_imbuf_types.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| IMB_COLORMANAGE_IS_DATA | |
Definition at line 338 of file IMB_imbuf_types.hh.
| enum eImBufFlags |
| Enumerator | |
|---|---|
| IB_rect | |
| IB_test | |
| IB_mem | |
| IB_rectfloat | |
| IB_multilayer | |
| IB_metadata | |
| IB_animdeinterlace | |
| IB_uninitialized_pixels | Do not clear image pixel buffer to zero. Without this flag, allocating a new ImBuf does clear the pixel data to zero (transparent black). If whole pixel data is overwritten after allocation, then this flag can be faster since it avoids a memory clear. |
| IB_alphamode_premul | indicates whether image on disk have premul alpha |
| IB_alphamode_detect | if this flag is set, alpha mode would be guessed from file |
| IB_alphamode_channel_packed | |
| IB_alphamode_ignore | ignore alpha on load and substitute it with 1.0f |
| IB_thumbnail | |
| IB_multiview | |
| IB_halffloat | |
Definition at line 90 of file IMB_imbuf_types.hh.
| enum ImBufOwnership |
| Enumerator | |
|---|---|
| IB_DO_NOT_TAKE_OWNERSHIP | |
| IB_TAKE_OWNERSHIP | |
Definition at line 125 of file IMB_imbuf_types.hh.
|
extern |
Sort of wrong having audio extensions in imbuf.
Definition at line 74 of file source/blender/imbuf/intern/util.cc.
Referenced by ED_path_extension_type().
|
extern |
Definition at line 47 of file source/blender/imbuf/intern/util.cc.
Referenced by do_ensure_image_extension(), ED_path_extension_type(), and studiolight_add_file().
|
extern |
Definition at line 66 of file source/blender/imbuf/intern/util.cc.
Referenced by BKE_image_load_in_lib(), ED_path_extension_type(), and image_replace_exec().