From 91d0ef0a7eaa74df92f1e30299ba0e1720658eb6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 14 Jun 2012 18:55:35 +0000 Subject: scale node for new compositor now supports framing option. --- source/blender/compositor/operations/COM_ScaleOperation.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/compositor/operations/COM_ScaleOperation.h') diff --git a/source/blender/compositor/operations/COM_ScaleOperation.h b/source/blender/compositor/operations/COM_ScaleOperation.h index cf2f878e8bc..3964a5e2f71 100644 --- a/source/blender/compositor/operations/COM_ScaleOperation.h +++ b/source/blender/compositor/operations/COM_ScaleOperation.h @@ -63,6 +63,12 @@ class ScaleFixedSizeOperation : public NodeOperation { int newHeight; float relX; float relY; + + /* center is only used for aspect correction */ + float offsetX; + float offsetY; + bool is_aspect; + bool is_crop; public: ScaleFixedSizeOperation(); bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output); @@ -73,6 +79,8 @@ public: void deinitExecution(); void setNewWidth(int width) { this->newWidth = width; } void setNewHeight(int height) { this->newHeight = height; } + void setIsAspect(int is_aspect) { this->is_aspect = is_aspect; } + void setIsCrop(int is_crop) { this->is_crop = is_crop; } }; #endif -- cgit v1.2.3