Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_ChromaMatteOperation.cpp
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | void ChromaMatteOperation::executePixelSampled(float output[4], | ||||
| float x_angle, z_angle, alpha; | float x_angle, z_angle, alpha; | ||||
| float theta, beta; | float theta, beta; | ||||
| float kfg; | float kfg; | ||||
| this->m_inputKeyProgram->readSampled(inKey, x, y, sampler); | this->m_inputKeyProgram->readSampled(inKey, x, y, sampler); | ||||
| this->m_inputImageProgram->readSampled(inImage, x, y, sampler); | this->m_inputImageProgram->readSampled(inImage, x, y, sampler); | ||||
| /* store matte(alpha) value in [0] to go with | /* store matte(alpha) value in [0] to go with | ||||
| * COM_SetAlphaOperation and the Value output | * COM_SetAlphaMultiplyOperation and the Value output | ||||
EAW: Same | |||||
| */ | */ | ||||
| /* Algorithm from book "Video Demistified," does not include the spill reduction part */ | /* Algorithm from book "Video Demistified," does not include the spill reduction part */ | ||||
| /* find theta, the angle that the color space should be rotated based on key */ | /* find theta, the angle that the color space should be rotated based on key */ | ||||
| /* rescale to -1.0..1.0 */ | /* rescale to -1.0..1.0 */ | ||||
| // inImage[0] = (inImage[0] * 2.0f) - 1.0f; // UNUSED | // inImage[0] = (inImage[0] * 2.0f) - 1.0f; // UNUSED | ||||
| inImage[1] = (inImage[1] * 2.0f) - 1.0f; | inImage[1] = (inImage[1] * 2.0f) - 1.0f; | ||||
| Show All 38 Lines | |||||
Same