55#ifdef WITH_IMAGE_OPENJPEG
64#ifdef WITH_IMAGE_CINEON
84 ".avi",
".flc",
".mov",
".movie",
".mp4",
".m4v",
".m2v",
".m2t",
".m2ts",
".mts",
85 ".ts",
".mv",
".avs",
".wmv",
".ogv",
".ogg",
".r3d",
".dv",
".mpeg",
".mpg",
86 ".mpg2",
".vob",
".mkv",
".flv",
".divx",
".xvid",
".mxf",
".webm",
".gif",
nullptr,
111#define HEADER_SIZE 2048
123 if (
BLI_stat(filepath, &st) == -1) {
126 if (((st.st_mode) & S_IFMT) != S_IFREG) {
143 if (type->is_a !=
nullptr) {
144 if (type->is_a(buf, buf_size)) {
145 return type->filetype;
172 if (type !=
nullptr) {
176 if (type->
is_a !=
nullptr) {
177 return type->
is_a(buf,
size_t(buf_size));
File and directory operations.
Compatibility-like things for windows.
#define CLOG_TRACE(clg_ref,...)
bool IMB_test_image_type_matches(const char *filepath, eImbFileType filetype)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
const ImFileType * IMB_file_type_from_ftype(eImbFileType ftype)
int64_t BLI_read(int fd, void *buf, size_t nbytes)
const char * imb_ext_image[]
int BLI_open(const char *filepath, int oflag, int pmode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
const char * imb_ext_audio[]
const char * imb_ext_movie[]
int BLI_stat(const char *path, BLI_stat_t *buffer) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
static int64_t imb_test_image_read_header_from_filepath(const char *filepath, uchar buf[HEADER_SIZE])
const ImFileType IMB_FILE_TYPES[]
eImbFileType IMB_test_image_type(const char *filepath)
eImbFileType IMB_test_image_type_from_memory(const unsigned char *buf, size_t buf_size)
bool BLI_path_is_rel(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
bool IMB_test_image(const char *filepath)
const ImFileType * IMB_FILE_TYPES_LAST
bool(*) is_a(const unsigned char *buf, size_t size)