Blender
V3.3
|
#include <stdlib.h>
#include "BLI_fileops.h"
#include "BLI_path_util.h"
#include "BLI_utildefines.h"
#include "IMB_filetype.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "imbuf.h"
#include "IMB_anim.h"
Go to the source code of this file.
Macros | |
#define | UTIL_DEBUG 0 |
#define | HEADER_SIZE 64 |
Functions | |
static ssize_t | imb_ispic_read_header_from_filepath (const char *filepath, unsigned char buf[HEADER_SIZE]) |
int | IMB_ispic_type_from_memory (const unsigned char *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) |
static bool | isavi (const char *filepath) |
int | imb_get_anim_type (const char *filepath) |
bool | IMB_isanim (const char *filepath) |
Variables | |
const char * | imb_ext_image [] |
const char * | imb_ext_image_filepath_only [] |
const char * | imb_ext_movie [] |
const char * | imb_ext_audio [] |
int imb_get_anim_type | ( | const char * | filepath | ) |
Definition at line 324 of file util.c.
References ANIM_AVI, ANIM_FFMPEG, ANIM_MOVIE, ANIM_NONE, ANIM_SEQUENCE, BLI_assert, BLI_path_is_rel(), BLI_stat(), IMB_ispic(), isavi(), ismovie(), usdtokens::st(), and UTIL_DEBUG.
Referenced by anim_getnew(), and IMB_isanim().
bool IMB_isanim | ( | const char * | filepath | ) |
Definition at line 385 of file util.c.
References ANIM_SEQUENCE, imb_get_anim_type(), and type.
Referenced by build_pict_list_ex(), ED_path_extension_type(), and wm_main_playanim_intern().
bool IMB_ispic | ( | const char * | filepath | ) |
Definition at line 183 of file util.c.
References IMB_FTYPE_NONE, and IMB_ispic_type().
Referenced by build_pict_list_ex(), imb_get_anim_type(), and wm_main_playanim_intern().
|
static |
Definition at line 109 of file util.c.
References BLI_assert, BLI_open(), BLI_path_is_rel(), BLI_stat(), HEADER_SIZE, O_BINARY, size(), usdtokens::st(), and UTIL_DEBUG.
Referenced by IMB_ispic_type(), and IMB_ispic_type_matches().
int IMB_ispic_type | ( | const char * | filepath | ) |
Definition at line 151 of file util.c.
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().
int IMB_ispic_type_from_memory | ( | const unsigned char * | buf, |
const size_t | buf_size | ||
) |
Definition at line 138 of file util.c.
References IMB_FILE_TYPES, IMB_FILE_TYPES_LAST, IMB_FTYPE_NONE, NULL, and type.
Referenced by IMB_ispic_type(), and unpack_generate_paths().
bool IMB_ispic_type_matches | ( | const char * | filepath, |
int | filetype | ||
) |
Definition at line 161 of file util.c.
References BLI_assert, HEADER_SIZE, IMB_file_type_from_ftype(), imb_ispic_read_header_from_filepath(), NULL, and type.
Referenced by imb_load_photoshop().
|
static |
Definition at line 188 of file util.c.
References AVI_is_avi(), and void.
Referenced by imb_get_anim_type().
const char* imb_ext_audio[] |
Sort of wrong having audio extensions in imbuf.
Definition at line 88 of file util.c.
Referenced by BPyInit__bpy_path(), and ED_path_extension_type().
const char* imb_ext_image[] |
Definition at line 43 of file util.c.
Referenced by BPyInit__bpy_path(), do_add_image_extension(), ED_path_extension_type(), and studiolight_add_file().
const char* imb_ext_image_filepath_only[] |
Image formats that can only be loaded via filepath.
Definition at line 72 of file util.c.
Referenced by imb_is_filepath_format().
const char* imb_ext_movie[] |
Definition at line 81 of file util.c.
Referenced by BKE_image_load(), BPyInit__bpy_path(), ED_path_extension_type(), and image_replace_exec().