Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/pipeline.c
| Context not available. | |||||
| #include <stddef.h> | #include <stddef.h> | ||||
| #include <errno.h> | #include <errno.h> | ||||
| #include "CLG_log.h" | |||||
| #include "DNA_anim_types.h" | #include "DNA_anim_types.h" | ||||
| #include "DNA_collection_types.h" | #include "DNA_collection_types.h" | ||||
| #include "DNA_image_types.h" | #include "DNA_image_types.h" | ||||
| Context not available. | |||||
| /* ********* globals ******** */ | /* ********* globals ******** */ | ||||
| static CLG_LogRef LOG = { "render.pipeline" }; | |||||
| /* here we store all renders */ | /* here we store all renders */ | ||||
| static struct { | static struct { | ||||
| ListBase renderlist; | ListBase renderlist; | ||||
| Context not available. | |||||
| { | { | ||||
| if (ok) { | if (ok) { | ||||
| /* no need to report, just some helpful console info */ | /* no need to report, just some helpful console info */ | ||||
| printf("Saved: '%s'\n", name); | CLOG_INFO(&LOG, 1, "Saved: '%s'", name); | ||||
| } | } | ||||
| else { | else { | ||||
| /* report on error since users will want to know what failed */ | /* report on error since users will want to know what failed */ | ||||
| Context not available. | |||||
| if (write_still && !G.is_break) { | if (write_still && !G.is_break) { | ||||
| if (BKE_imtype_is_movie(scene->r.im_format.imtype)) { | if (BKE_imtype_is_movie(scene->r.im_format.imtype)) { | ||||
| /* operator checks this but in case its called from elsewhere */ | /* operator checks this but in case its called from elsewhere */ | ||||
| printf("Error: cant write single images with a movie format!\n"); | CLOG_ERROR(&LOG, "can't write single images with a movie format!"); | ||||
| } | } | ||||
| else { | else { | ||||
| char name[FILE_MAX]; | char name[FILE_MAX]; | ||||
| Context not available. | |||||
| BLI_assert(scene->r.im_format.views_format == R_IMF_VIEWS_STEREO_3D); | BLI_assert(scene->r.im_format.views_format == R_IMF_VIEWS_STEREO_3D); | ||||
| if (rd->im_format.imtype == R_IMF_IMTYPE_MULTILAYER) { | if (rd->im_format.imtype == R_IMF_IMTYPE_MULTILAYER) { | ||||
| printf("Stereo 3D not supported for MultiLayer image: %s\n", name); | CLOG_ERROR(&LOG, "Stereo 3D not supported for MultiLayer image: %s", name); | ||||
| } | } | ||||
| else { | else { | ||||
| ImBuf *ibuf_arr[3] = {NULL}; | ImBuf *ibuf_arr[3] = {NULL}; | ||||
| Context not available. | |||||
| /* imbuf knows which rects are not part of ibuf */ | /* imbuf knows which rects are not part of ibuf */ | ||||
| IMB_freeImBuf(ibuf); | IMB_freeImBuf(ibuf); | ||||
| } | } | ||||
| printf("Append frame %d\n", scene->r.cfra); | CLOG_INFO(&LOG, 1, "Append frame %d", scene->r.cfra); | ||||
| } | } | ||||
| else { /* R_IMF_VIEWS_STEREO_3D */ | else { /* R_IMF_VIEWS_STEREO_3D */ | ||||
| const char *names[2] = {STEREO_LEFT_NAME, STEREO_RIGHT_NAME}; | const char *names[2] = {STEREO_LEFT_NAME, STEREO_RIGHT_NAME}; | ||||
| Context not available. | |||||
| if (scene->r.mode & R_NO_OVERWRITE) { | if (scene->r.mode & R_NO_OVERWRITE) { | ||||
| if (!is_multiview_name) { | if (!is_multiview_name) { | ||||
| if (BLI_exists(name)) { | if (BLI_exists(name)) { | ||||
| printf("skipping existing frame \"%s\"\n", name); | CLOG_INFO(&LOG, 1, "skipping existing frame \"%s\"", name); | ||||
| totskipped++; | totskipped++; | ||||
| continue; | continue; | ||||
| } | } | ||||
| Context not available. | |||||
| if (BLI_exists(filepath)) { | if (BLI_exists(filepath)) { | ||||
| is_skip = true; | is_skip = true; | ||||
| printf("skipping existing frame \"%s\" for view \"%s\"\n", filepath, srv->name); | CLOG_INFO(&LOG, 1, "skipping existing frame \"%s\" for view \"%s\"", filepath, srv->name); | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||