|
Blender V4.3
|
#include "BLI_fileops.h"#include "BLI_mmap.h"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLI_utildefines.h"#include <cstdlib>#include "IMB_allocimbuf.hh"#include "IMB_filetype.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "IMB_metadata.hh"#include "IMB_thumbs.hh"#include "imbuf.hh"#include "IMB_colormanagement.hh"#include "IMB_colormanagement_intern.hh"Go to the source code of this file.
Functions | |
| static void | imb_handle_alpha (ImBuf *ibuf, int flags, char colorspace[IM_MAX_SPACE], const char effective_colorspace[IM_MAX_SPACE]) |
| ImBuf * | IMB_ibImageFromMemory (const uchar *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE], const char *descr) |
| ImBuf * | IMB_loadifffile (int file, int flags, char colorspace[IM_MAX_SPACE], const char *descr) |
| ImBuf * | IMB_loadiffname (const char *filepath, int flags, char colorspace[IM_MAX_SPACE]) |
| ImBuf * | IMB_thumb_load_image (const char *filepath, size_t max_thumb_size, char colorspace[IM_MAX_SPACE], IMBThumbLoadFlags load_flags) |
| ImBuf * | IMB_testiffname (const char *filepath, int flags) |
|
static |
Definition at line 33 of file readimage.cc.
References BLI_strncpy(), ImBuf::byte_buffer, colormanage_colorspace_get_named(), colormanage_imbuf_make_linear(), ImBufByteBuffer::colorspace, ImBufByteBuffer::data, ImBufFloatBuffer::data, ImBuf::flags, ImBuf::float_buffer, IB_alphamode_channel_packed, IB_alphamode_detect, IB_alphamode_ignore, IB_alphamode_premul, IM_MAX_SPACE, IMB_colormanagement_space_name_is_data(), IMB_premultiply_alpha(), IMB_rectfill_alpha(), and IMB_unpremultiply_alpha().
Referenced by IMB_ibImageFromMemory(), and IMB_thumb_load_image().
| ImBuf * IMB_ibImageFromMemory | ( | const uchar * | mem, |
| size_t | size, | ||
| int | flags, | ||
| char | colorspace[IM_MAX_SPACE], | ||
| const char * | descr ) |
Definition at line 85 of file readimage.cc.
References IB_test, IM_MAX_SPACE, IMB_FILE_TYPES, IMB_FILE_TYPES_LAST, imb_handle_alpha(), and STRNCPY.
Referenced by IMB_loadifffile().
Definition at line 118 of file readimage.cc.
References BLI_mmap_free(), BLI_mmap_get_length(), BLI_mmap_get_pointer(), BLI_mmap_open(), IMB_ibImageFromMemory(), imb_mmap_lock(), and imb_mmap_unlock().
Referenced by IMB_loadiffname(), IMB_testiffname(), and imbuf_load_impl().
Definition at line 146 of file readimage.cc.
References BLI_assert, BLI_open(), BLI_path_is_rel(), file, ImBuf::filepath, IMB_loadifffile(), O_BINARY, and STRNCPY.
Referenced by ibuf_from_picture(), icon_preview_imbuf_from_brush(), image_init_color_management(), IMB_thumb_load_image(), IMB_thumb_manage(), IMB_thumb_read(), load_image_single(), Freestyle::Canvas::loadMap(), movieclip_load_sequence_file(), RE_layer_load_from_file(), SEQ_add_image_init_alpha_mode(), SEQ_add_image_strip(), seq_proxy_fetch(), seq_render_image_strip_view(), studiolight_load_equirect_image(), wm_block_splash_image(), and wm_main_playanim_intern().
Definition at line 227 of file readimage.cc.
References BLI_assert, BLI_open(), BLI_path_is_rel(), file, ImBuf::filepath, IB_multilayer, IB_test, IM_MAX_SPACE, IMB_loadifffile(), O_BINARY, and STRNCPY.
Referenced by detect_clip_source().
| ImBuf * IMB_thumb_load_image | ( | const char * | filepath, |
| size_t | max_thumb_size, | ||
| char | colorspace[IM_MAX_SPACE], | ||
| IMBThumbLoadFlags | load_flags ) |
Definition at line 169 of file readimage.cc.
References BLI_file_size(), IB_metadata, IB_rect, IM_MAX_SPACE, IMB_file_type_from_ftype(), imb_handle_alpha(), IMB_ispic_type(), IMB_loadiffname(), IMB_metadata_ensure(), IMB_metadata_set_field(), LoadLargeFiles, ImBuf::metadata, SNPRINTF, STRNCPY, THUMB_SIZE_MAX, ImBuf::x, ImBuf::y, and Zero.
Referenced by blender::seq::make_thumb_for_image(), and thumb_create_ex().