51#ifdef WITH_IMAGE_OPENJPEG
60#ifdef WITH_IMAGE_CINEON
66#ifdef WITH_IMAGE_OPENEXR
82 ".avi",
".flc",
".mov",
".movie",
".mp4",
".m4v",
".m2v",
".m2t",
".m2ts",
".mts",
83 ".ts",
".mv",
".avs",
".wmv",
".ogv",
".ogg",
".r3d",
".dv",
".mpeg",
".mpg",
84 ".mpg2",
".vob",
".mkv",
".flv",
".divx",
".xvid",
".mxf",
".webm",
".gif",
nullptr,
109#define HEADER_SIZE 2048
121 if (
BLI_stat(filepath, &st) == -1) {
124 if (((st.st_mode) & S_IFMT) != S_IFREG) {
141 if (type->is_a !=
nullptr) {
142 if (type->is_a(buf, buf_size)) {
143 return type->filetype;
170 if (type !=
nullptr) {
174 if (type->
is_a !=
nullptr) {
175 return type->
is_a(buf,
size_t(buf_size));
File and directory operations.
int BLI_stat(const char *path, BLI_stat_t *buffer) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
int BLI_open(const char *filepath, int oflag, int pmode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
int64_t BLI_read(int fd, void *buf, size_t nbytes)
bool BLI_path_is_rel(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
Compatibility-like things for windows.
#define CLOG_TRACE(clg_ref,...)
const char * imb_ext_movie[]
const char * imb_ext_audio[]
const char * imb_ext_image[]
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
const ImFileType * IMB_file_type_from_ftype(int ftype)
const ImFileType IMB_FILE_TYPES[]
const ImFileType * IMB_FILE_TYPES_LAST
int IMB_test_image_type(const char *filepath)
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)
bool IMB_test_image_type_matches(const char *filepath, int filetype)
bool IMB_test_image(const char *filepath)
bool(* is_a)(const unsigned char *buf, size_t size)