|
Blender V4.3
|
#include <cstdlib>#include "BLI_fileops.h"#include "BLI_path_utils.hh"#include "BLI_utildefines.h"#include "IMB_filetype.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "imbuf.hh"#include "IMB_anim.hh"Go to the source code of this file.
Macros | |
| #define | UTIL_DEBUG 0 |
| #define | HEADER_SIZE 2048 |
Functions | |
| static int64_t | imb_ispic_read_header_from_filepath (const char *filepath, uchar buf[HEADER_SIZE]) |
| int | IMB_ispic_type_from_memory (const uchar *buf, const size_t buf_size) |
| int | IMB_ispic_type (const char *filepath) |
| bool | IMB_ispic_type_matches (const char *filepath, int filetype) |
| bool | IMB_ispic (const char *filepath) |
| bool | IMB_isanim (const char *filepath) |
Variables | |
| const char * | imb_ext_image [] |
| const char * | imb_ext_movie [] |
| const char * | imb_ext_audio [] |
| #define HEADER_SIZE 2048 |
Definition at line 94 of file source/blender/imbuf/intern/util.cc.
Referenced by imb_ispic_read_header_from_filepath(), IMB_ispic_type(), and IMB_ispic_type_matches().
| #define UTIL_DEBUG 0 |
Definition at line 45 of file source/blender/imbuf/intern/util.cc.
Referenced by IMB_isanim(), and imb_ispic_read_header_from_filepath().
| bool IMB_isanim | ( | const char * | filepath | ) |
Test if the file is a video file (known format, has a video stream and supported video codec).
Definition at line 302 of file source/blender/imbuf/intern/util.cc.
References BLI_assert, BLI_path_is_rel(), printf, and UTIL_DEBUG.
Referenced by build_pict_list(), ED_path_extension_type(), and wm_main_playanim_intern().
| bool IMB_ispic | ( | const char * | filepath | ) |
Definition at line 169 of file source/blender/imbuf/intern/util.cc.
References IMB_FTYPE_NONE, and IMB_ispic_type().
Referenced by build_pict_list_from_image_sequence(), and wm_main_playanim_intern().
|
static |
Definition at line 96 of file source/blender/imbuf/intern/util.cc.
References BLI_assert, BLI_open(), BLI_path_is_rel(), BLI_read(), BLI_stat(), HEADER_SIZE, O_BINARY, printf, size(), and UTIL_DEBUG.
Referenced by IMB_ispic_type(), and IMB_ispic_type_matches().
| int IMB_ispic_type | ( | const char * | filepath | ) |
Definition at line 137 of file source/blender/imbuf/intern/util.cc.
References HEADER_SIZE, IMB_FTYPE_NONE, imb_ispic_read_header_from_filepath(), and IMB_ispic_type_from_memory().
Referenced by IMB_ispic(), and IMB_thumb_load_image().
Definition at line 124 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_ispic_type(), and unpack_generate_paths().
| bool IMB_ispic_type_matches | ( | const char * | filepath, |
| int | filetype ) |
Definition at line 147 of file source/blender/imbuf/intern/util.cc.
References BLI_assert, HEADER_SIZE, IMB_file_type_from_ftype(), and imb_ispic_read_header_from_filepath().
| const char* imb_ext_audio[] |
Sort of wrong having audio extensions in imbuf.
Definition at line 74 of file source/blender/imbuf/intern/util.cc.
Referenced by BPyInit__bpy_path(), and ED_path_extension_type().
| const char* imb_ext_image[] |
Definition at line 47 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 66 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().