|
Blender V5.0
|
#include <cstdlib>#include "BLI_fileops.h"#include "BLI_path_utils.hh"#include "IMB_filetype.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "imbuf.hh"#include "CLG_log.h"Go to the source code of this file.
Macros | |
| #define | HEADER_SIZE 2048 |
Functions | |
| static int64_t | imb_test_image_read_header_from_filepath (const char *filepath, uchar buf[HEADER_SIZE]) |
| int | IMB_test_image_type_from_memory (const uchar *buf, const size_t buf_size) |
| int | IMB_test_image_type (const char *filepath) |
| bool | IMB_test_image_type_matches (const char *filepath, int filetype) |
| bool | IMB_test_image (const char *filepath) |
Variables | |
| static CLG_LogRef | LOG = {"image.read"} |
| const char * | imb_ext_image [] |
| const char * | imb_ext_movie [] |
| const char * | imb_ext_audio [] |
| #define HEADER_SIZE 2048 |
Definition at line 109 of file source/blender/imbuf/intern/util.cc.
| bool IMB_test_image | ( | const char * | filepath | ) |
Definition at line 183 of file source/blender/imbuf/intern/util.cc.
References IMB_FTYPE_NONE, and IMB_test_image_type().
Referenced by build_pict_list_from_image_sequence(), GHOST_SystemWayland::hasClipboardImage(), and wm_main_playanim_intern().
|
static |
Definition at line 111 of file source/blender/imbuf/intern/util.cc.
References BLI_assert, BLI_open(), BLI_path_is_rel(), BLI_read(), BLI_stat(), CLOG_TRACE, HEADER_SIZE, LOG, O_BINARY, and size().
Referenced by IMB_test_image_type(), and IMB_test_image_type_matches().
| int IMB_test_image_type | ( | const char * | filepath | ) |
Definition at line 151 of file source/blender/imbuf/intern/util.cc.
References HEADER_SIZE, IMB_FTYPE_NONE, imb_test_image_read_header_from_filepath(), and IMB_test_image_type_from_memory().
Referenced by IMB_test_image(), and IMB_thumb_load_image().
| int IMB_test_image_type_from_memory | ( | const uchar * | buf, |
| const size_t | buf_size ) |
Definition at line 138 of file source/blender/imbuf/intern/util.cc.
References IMB_FILE_TYPES, IMB_FILE_TYPES_LAST, and IMB_FTYPE_NONE.
Referenced by blender::io::usd::export_packed_texture(), IMB_test_image_type(), and unpack_generate_paths().
| bool IMB_test_image_type_matches | ( | const char * | filepath, |
| int | filetype ) |
Definition at line 161 of file source/blender/imbuf/intern/util.cc.
References BLI_assert, HEADER_SIZE, IMB_file_type_from_ftype(), imb_test_image_read_header_from_filepath(), and ImFileType::is_a.
| const char* imb_ext_audio[] |
Sort of wrong having audio extensions in imbuf.
Definition at line 89 of file source/blender/imbuf/intern/util.cc.
Referenced by BPyInit__bpy_path(), and ED_path_extension_type().
| const char* imb_ext_image[] |
Known image extensions, in most cases these match values for images which Blender creates, there are some exceptions to this.
See BKE_image_path_ext_from_imformat which also stores known extensions.
Definition at line 30 of file source/blender/imbuf/intern/util.cc.
Referenced by BPyInit__bpy_path(), do_ensure_image_extension(), ED_path_extension_type(), and studiolight_add_file().
| const char* imb_ext_movie[] |
Definition at line 81 of file source/blender/imbuf/intern/util.cc.
Referenced by BKE_image_load_in_lib(), BPyInit__bpy_path(), ED_path_extension_type(), and image_replace_exec().
|
static |
Definition at line 28 of file source/blender/imbuf/intern/util.cc.