Blender Git Loki
Git Commits -> Revision 939f26b
Revision 939f26b by Manuel Castilla (temp-compositor-patches) September 28, 2021, 18:29 (GMT) |
Compositor: Add support for canvas compositing This patch adds functionality for operations that require pixel translation or resizing on "Full Frame" mode, allowing to adjust their canvas. It fixes most cropping issues in translate, scale, rotate and transform nodes by adjusting their canvas to the result, instead of the input canvas. Operations output buffer is still always on (0,0) position for easier image algorithm implementation, even when the canvas is not. Current limitations (will be addressed on bcon2): - Displayed translation in Viewer node is limited to 6000px. - When scaling up the canvas size is limited to the scene resolution size x 1.5 . From that point it crops. If none of these limitations are hit, the Viewer node displays the full input with any translation. Differential Revision: https://developer.blender.org/D12466 |
Commit Details:
Full Hash: 939f26bf158d61e61644fe939d1fefdc737c2592
Parent Commit: 1686211
Lines Changed: +1062, -364
44 Modified Paths:
/source/blender/compositor/COM_defines.h (+3, -0) (Diff)
/source/blender/compositor/intern/COM_CompositorContext.cc (+6, -0) (Diff)
/source/blender/compositor/intern/COM_CompositorContext.h (+2, -0) (Diff)
/source/blender/compositor/intern/COM_Converter.cc (+65, -53) (Diff)
/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc (+46, -18) (Diff)
/source/blender/compositor/intern/COM_FullFrameExecutionModel.h (+4, -2) (Diff)
/source/blender/compositor/intern/COM_MemoryBuffer.cc (+2, -0) (Diff)
/source/blender/compositor/intern/COM_MemoryBuffer.h (+42, -16) (Diff)
/source/blender/compositor/intern/COM_NodeOperation.cc (+40, -0) (Diff)
/source/blender/compositor/intern/COM_NodeOperation.h (+16, -16) (Diff)
/source/blender/compositor/intern/COM_NodeOperationBuilder.cc (+14, -3) (Diff)
/source/blender/compositor/intern/COM_SharedOperationBuffers.cc (+10, -2) (Diff)
/source/blender/compositor/intern/COM_SharedOperationBuffers.h (+1, -1) (Diff)
/source/blender/compositor/nodes/COM_BoxMaskNode.cc (+1, -1) (Diff)
/source/blender/compositor/nodes/COM_EllipseMaskNode.cc (+1, -1) (Diff)
/source/blender/compositor/nodes/COM_ScaleNode.cc (+5, -1) (Diff)
/source/blender/compositor/nodes/COM_Stabilize2dNode.cc (+48, -11) (Diff)
/source/blender/compositor/nodes/COM_TransformNode.cc (+27, -10) (Diff)
/source/blender/compositor/nodes/COM_TranslateNode.cc (+3, -1) (Diff)
/source/blender/compositor/operations/COM_BokehBlurOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_CalculateMeanOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_CropOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_MapUVOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_MovieClipAttributeOperation.cc (+12, -2) (Diff)
/source/blender/compositor/operations/COM_MovieClipAttributeOperation.h (+9, -0) (Diff)
/source/blender/compositor/operations/COM_PlaneDistortCommonOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_PreviewOperation.cc (+2, -2) (Diff)
/source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.cc (+17, -0) (Diff)
/source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h (+1, -0) (Diff)
/source/blender/compositor/operations/COM_RotateOperation.cc (+110, -23) (Diff)
/source/blender/compositor/operations/COM_RotateOperation.h (+25, -0) (Diff)
/source/blender/compositor/operations/COM_ScaleOperation.cc (+206, -57) (Diff)
/source/blender/compositor/operations/COM_ScaleOperation.h (+55, -17) (Diff)
/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cc (+17, -0) (Diff)
/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.h (+1, -0) (Diff)
/source/blender/compositor/operations/COM_TextureOperation.cc (+12, -20) (Diff)
/source/blender/compositor/operations/COM_TonemapOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_TransformOperation.cc (+142, -63) (Diff)
/source/blender/compositor/operations/COM_TransformOperation.h (+11, -9) (Diff)
/source/blender/compositor/operations/COM_TranslateOperation.cc (+31, -4) (Diff)
/source/blender/compositor/operations/COM_TranslateOperation.h (+16, -11) (Diff)
/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cc (+3, -3) (Diff)
/source/blender/compositor/operations/COM_ViewerOperation.cc (+47, -11) (Diff)
/source/blender/compositor/operations/COM_ViewerOperation.h (+3, -0) (Diff)
/source/blender/compositor/intern/COM_CompositorContext.cc (+6, -0) (Diff)
/source/blender/compositor/intern/COM_CompositorContext.h (+2, -0) (Diff)
/source/blender/compositor/intern/COM_Converter.cc (+65, -53) (Diff)
/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc (+46, -18) (Diff)
/source/blender/compositor/intern/COM_FullFrameExecutionModel.h (+4, -2) (Diff)
/source/blender/compositor/intern/COM_MemoryBuffer.cc (+2, -0) (Diff)
/source/blender/compositor/intern/COM_MemoryBuffer.h (+42, -16) (Diff)
/source/blender/compositor/intern/COM_NodeOperation.cc (+40, -0) (Diff)
/source/blender/compositor/intern/COM_NodeOperation.h (+16, -16) (Diff)
/source/blender/compositor/intern/COM_NodeOperationBuilder.cc (+14, -3) (Diff)
/source/blender/compositor/intern/COM_SharedOperationBuffers.cc (+10, -2) (Diff)
/source/blender/compositor/intern/COM_SharedOperationBuffers.h (+1, -1) (Diff)
/source/blender/compositor/nodes/COM_BoxMaskNode.cc (+1, -1) (Diff)
/source/blender/compositor/nodes/COM_EllipseMaskNode.cc (+1, -1) (Diff)
/source/blender/compositor/nodes/COM_ScaleNode.cc (+5, -1) (Diff)
/source/blender/compositor/nodes/COM_Stabilize2dNode.cc (+48, -11) (Diff)
/source/blender/compositor/nodes/COM_TransformNode.cc (+27, -10) (Diff)
/source/blender/compositor/nodes/COM_TranslateNode.cc (+3, -1) (Diff)
/source/blender/compositor/operations/COM_BokehBlurOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_CalculateMeanOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_CropOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_MapUVOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_MovieClipAttributeOperation.cc (+12, -2) (Diff)
/source/blender/compositor/operations/COM_MovieClipAttributeOperation.h (+9, -0) (Diff)
/source/blender/compositor/operations/COM_PlaneDistortCommonOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_PreviewOperation.cc (+2, -2) (Diff)
/source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.cc (+17, -0) (Diff)
/source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h (+1, -0) (Diff)
/source/blender/compositor/operations/COM_RotateOperation.cc (+110, -23) (Diff)
/source/blender/compositor/operations/COM_RotateOperation.h (+25, -0) (Diff)
/source/blender/compositor/operations/COM_ScaleOperation.cc (+206, -57) (Diff)
/source/blender/compositor/operations/COM_ScaleOperation.h (+55, -17) (Diff)
/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cc (+17, -0) (Diff)
/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.h (+1, -0) (Diff)
/source/blender/compositor/operations/COM_TextureOperation.cc (+12, -20) (Diff)
/source/blender/compositor/operations/COM_TonemapOperation.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_TransformOperation.cc (+142, -63) (Diff)
/source/blender/compositor/operations/COM_TransformOperation.h (+11, -9) (Diff)
/source/blender/compositor/operations/COM_TranslateOperation.cc (+31, -4) (Diff)
/source/blender/compositor/operations/COM_TranslateOperation.h (+16, -11) (Diff)
/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cc (+3, -3) (Diff)
/source/blender/compositor/operations/COM_ViewerOperation.cc (+47, -11) (Diff)
/source/blender/compositor/operations/COM_ViewerOperation.h (+3, -0) (Diff)