Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_OutputFileOperation.cpp
| Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Lines | write_buffer_rect(rect, | ||||
| this->m_datatype); | this->m_datatype); | ||||
| } | } | ||||
| void OutputSingleLayerOperation::deinitExecution() | void OutputSingleLayerOperation::deinitExecution() | ||||
| { | { | ||||
| if (this->getWidth() * this->getHeight() != 0) { | if (this->getWidth() * this->getHeight() != 0) { | ||||
| int size = get_datatype_size(this->m_datatype); | int size = get_datatype_size(this->m_datatype); | ||||
| ImBuf *ibuf = IMB_allocImBuf(this->getWidth(), this->getHeight(), this->m_format->planes, 0); | ImBuf *ibuf = IMB_allocImBuf( | ||||
| this->getWidth(), this->getHeight(), this->m_format->planes, static_cast<eImBufFlags>(0)); | |||||
| char filename[FILE_MAX]; | char filename[FILE_MAX]; | ||||
| const char *suffix; | const char *suffix; | ||||
| ibuf->channels = size; | ibuf->channels = size; | ||||
| ibuf->rect_float = this->m_outputBuffer; | ibuf->rect_float = this->m_outputBuffer; | ||||
| ibuf->mall |= IB_rectfloat; | ibuf->mall |= IB_rectfloat; | ||||
| ibuf->dither = this->m_rd->dither_intensity; | ibuf->dither = this->m_rd->dither_intensity; | ||||
| ▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines | |||||