Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_MovieClipOperation.cc
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (this->m_movieClipBuffer) { | if (this->m_movieClipBuffer) { | ||||
| IMB_freeImBuf(this->m_movieClipBuffer); | IMB_freeImBuf(this->m_movieClipBuffer); | ||||
| this->m_movieClipBuffer = nullptr; | this->m_movieClipBuffer = nullptr; | ||||
| } | } | ||||
| } | } | ||||
| void MovieClipBaseOperation::determineResolution(unsigned int resolution[2], | void MovieClipBaseOperation::determine_canvas(const rcti &UNUSED(preferred_area), rcti &r_area) | ||||
| unsigned int /*preferredResolution*/[2]) | |||||
| { | { | ||||
| resolution[0] = 0; | r_area = COM_AREA_NONE; | ||||
| resolution[1] = 0; | |||||
| if (this->m_movieClip) { | if (this->m_movieClip) { | ||||
| int width, height; | int width, height; | ||||
| BKE_movieclip_get_size(this->m_movieClip, this->m_movieClipUser, &width, &height); | BKE_movieclip_get_size(this->m_movieClip, this->m_movieClipUser, &width, &height); | ||||
| BLI_rcti_init(&r_area, 0, width, 0, height); | |||||
| resolution[0] = width; | |||||
| resolution[1] = height; | |||||
| } | } | ||||
| } | } | ||||
| void MovieClipBaseOperation::executePixelSampled(float output[4], | void MovieClipBaseOperation::executePixelSampled(float output[4], | ||||
| float x, | float x, | ||||
| float y, | float y, | ||||
| PixelSampler sampler) | PixelSampler sampler) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines | |||||