Differential D7046 Diff 22541 source/blender/compositor/operations/COM_OutputFileMultiViewOperation.cpp
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_OutputFileMultiViewOperation.cpp
| Show First 20 Lines • Show All 333 Lines • ▼ Show 20 Lines | if (BKE_scene_multiview_is_render_view_last(this->m_rd, this->m_viewName)) { | ||||
| ImBuf *ibuf[3] = {NULL}; | ImBuf *ibuf[3] = {NULL}; | ||||
| const char *names[2] = {STEREO_LEFT_NAME, STEREO_RIGHT_NAME}; | const char *names[2] = {STEREO_LEFT_NAME, STEREO_RIGHT_NAME}; | ||||
| char filename[FILE_MAX]; | char filename[FILE_MAX]; | ||||
| int i; | int i; | ||||
| /* get rectf from EXR */ | /* get rectf from EXR */ | ||||
| for (i = 0; i < 2; i++) { | for (i = 0; i < 2; i++) { | ||||
| float *rectf = IMB_exr_channel_rect(exrhandle, NULL, this->m_name, names[i]); | float *rectf = IMB_exr_channel_rect(exrhandle, NULL, this->m_name, names[i]); | ||||
| ibuf[i] = IMB_allocImBuf(width, height, this->m_format->planes, 0); | ibuf[i] = IMB_allocImBuf( | ||||
| width, height, this->m_format->planes, static_cast<eImBufFlags>(0)); | |||||
| ibuf[i]->channels = this->m_channels; | ibuf[i]->channels = this->m_channels; | ||||
| ibuf[i]->rect_float = rectf; | ibuf[i]->rect_float = rectf; | ||||
| ibuf[i]->mall |= IB_rectfloat; | ibuf[i]->mall |= IB_rectfloat; | ||||
| ibuf[i]->dither = this->m_rd->dither_intensity; | ibuf[i]->dither = this->m_rd->dither_intensity; | ||||
| /* do colormanagement in the individual views, so it doesn't need to do in the stereo */ | /* do colormanagement in the individual views, so it doesn't need to do in the stereo */ | ||||
| IMB_colormanagement_imbuf_for_write( | IMB_colormanagement_imbuf_for_write( | ||||
| Show All 27 Lines | |||||