Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/imbuf/intern/IMB_filetype.h')
-rw-r--r--source/blender/imbuf/intern/IMB_filetype.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/IMB_filetype.h b/source/blender/imbuf/intern/IMB_filetype.h
index cf0d0990d33..3a7725ae706 100644
--- a/source/blender/imbuf/intern/IMB_filetype.h
+++ b/source/blender/imbuf/intern/IMB_filetype.h
@@ -46,6 +46,9 @@ typedef struct ImFileType {
int (*save)(struct ImBuf *ibuf, const char *name, int flags);
void (*load_tile)(struct ImBuf *ibuf, unsigned char *mem, size_t size, int tx, int ty, unsigned int *rect);
+ int (*is_a_filepath)(const char *filepath);
+ struct ImBuf *(*load_filepath)(const char *filepath, int flags);
+
int flag;
int filetype;
} ImFileType;
@@ -121,5 +124,20 @@ void imb_loadtiletiff(struct ImBuf *ibuf, unsigned char *mem, size_t size,
int imb_savetiff(struct ImBuf *ibuf, const char *name, int flags);
void *libtiff_findsymbol(char *name);
+/* openimageio */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int imb_is_a_openimageio(unsigned char *buf);
+int imb_is_a_filepath_openimageio(const char *filepath);
+int imb_ftype_openimageio(struct ImFileType *type, struct ImBuf *ibuf);
+struct ImBuf *imb_load_openimageio(const char *filepath, int flags);
+int imb_save_openimageio(struct ImBuf *ibuf, const char *filepath, int flags);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* IMB_FILETYPE_H */