Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/image.c
| Context not available. | |||||
| #include <time.h> | #include <time.h> | ||||
| #include "CLG_log.h" | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "IMB_colormanagement.h" | #include "IMB_colormanagement.h" | ||||
| Context not available. | |||||
| #include "DNA_screen_types.h" | #include "DNA_screen_types.h" | ||||
| #include "DNA_view3d_types.h" | #include "DNA_view3d_types.h" | ||||
| static CLG_LogRef LOG = { "bke.image" }; | |||||
| static SpinLock image_spin; | static SpinLock image_spin; | ||||
| /* prototypes */ | /* prototypes */ | ||||
| Context not available. | |||||
| IMB_saveiff(ibuf, iv->filepath, IB_rect | IB_mem); | IMB_saveiff(ibuf, iv->filepath, IB_rect | IB_mem); | ||||
| if (ibuf->encodedbuffer == NULL) { | if (ibuf->encodedbuffer == NULL) { | ||||
| printf("memory save for pack error\n"); | CLOG_STR_ERROR(&LOG, "memory save for pack error"); | ||||
| IMB_freeImBuf(ibuf); | IMB_freeImBuf(ibuf); | ||||
| image_free_packedfiles(ima); | image_free_packedfiles(ima); | ||||
| return; | return; | ||||
| Context not available. | |||||
| IMB_saveiff(ibuf, ibuf->name, IB_rect | IB_mem); | IMB_saveiff(ibuf, ibuf->name, IB_rect | IB_mem); | ||||
| if (ibuf->encodedbuffer == NULL) { | if (ibuf->encodedbuffer == NULL) { | ||||
| printf("memory save for pack error\n"); | CLOG_STR_ERROR(&LOG, "memory save for pack error"); | ||||
| } | } | ||||
| else { | else { | ||||
| ImagePackedFile *imapf; | ImagePackedFile *imapf; | ||||
| Context not available. | |||||