Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/writeimage.c
| Show All 35 Lines | |||||
| #include "IMB_colormanagement.h" | #include "IMB_colormanagement.h" | ||||
| #include "IMB_colormanagement_intern.h" | #include "IMB_colormanagement_intern.h" | ||||
| static bool prepare_write_imbuf(const ImFileType *type, ImBuf *ibuf) | static bool prepare_write_imbuf(const ImFileType *type, ImBuf *ibuf) | ||||
| { | { | ||||
| return IMB_prepare_write_ImBuf((type->flag & IM_FTYPE_FLOAT), ibuf); | return IMB_prepare_write_ImBuf((type->flag & IM_FTYPE_FLOAT), ibuf); | ||||
| } | } | ||||
| short IMB_saveiff(struct ImBuf *ibuf, const char *name, int flags) | short IMB_saveiff(struct ImBuf *ibuf, const char *name, eImBufFlags flags) | ||||
| { | { | ||||
| const ImFileType *type; | const ImFileType *type; | ||||
| errno = 0; | errno = 0; | ||||
| BLI_assert(!BLI_path_is_rel(name)); | BLI_assert(!BLI_path_is_rel(name)); | ||||
| if (ibuf == NULL) { | if (ibuf == NULL) { | ||||
| Show All 40 Lines | |||||