diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-14 22:55:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-14 22:55:35 +0400 |
commit | 91d0ef0a7eaa74df92f1e30299ba0e1720658eb6 (patch) | |
tree | e02f148bc019478af26f71a759fd818b3d56604c /source/blender/compositor/operations/COM_ScaleOperation.h | |
parent | 2cc9ecad553f1154a72efce9f73f9cac80797dfd (diff) |
scale node for new compositor now supports framing option.
Diffstat (limited to 'source/blender/compositor/operations/COM_ScaleOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_ScaleOperation.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |