Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_BokehImageOperation.cc
| Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | void BokehImageOperation::deinitExecution() | ||||
| if (this->m_deleteData) { | if (this->m_deleteData) { | ||||
| if (this->m_data) { | if (this->m_data) { | ||||
| delete this->m_data; | delete this->m_data; | ||||
| this->m_data = nullptr; | this->m_data = nullptr; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| void BokehImageOperation::determineResolution(unsigned int resolution[2], | void BokehImageOperation::determine_canvas(const rcti &preferred_area, rcti &r_area) | ||||
| unsigned int /*preferredResolution*/[2]) | |||||
| { | { | ||||
| resolution[0] = COM_BLUR_BOKEH_PIXELS; | BLI_rcti_init(&r_area, | ||||
| resolution[1] = COM_BLUR_BOKEH_PIXELS; | preferred_area.xmin, | ||||
| preferred_area.xmin + COM_BLUR_BOKEH_PIXELS, | |||||
| preferred_area.ymin, | |||||
| preferred_area.ymin + COM_BLUR_BOKEH_PIXELS); | |||||
| } | } | ||||
| } // namespace blender::compositor | } // namespace blender::compositor | ||||