Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/compositor/operations/COM_PlaneDistortCommonOperation.h
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/compositor/operations/COM_PlaneDistortCommonOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_PlaneDistortCommonOperation.h121
1 files changed, 61 insertions, 60 deletions
diff --git a/source/blender/compositor/operations/COM_PlaneDistortCommonOperation.h b/source/blender/compositor/operations/COM_PlaneDistortCommonOperation.h
index 216f4ed969d..35e7745cb5d 100644
--- a/source/blender/compositor/operations/COM_PlaneDistortCommonOperation.h
+++ b/source/blender/compositor/operations/COM_PlaneDistortCommonOperation.h
@@ -32,69 +32,70 @@
#define PLANE_DISTORT_MAX_SAMPLES 64
class PlaneDistortWarpImageOperation : public NodeOperation {
-protected:
- struct MotionSample {
- float frameSpaceCorners[4][2]; /* Corners coordinates in pixel space. */
- float perspectiveMatrix[3][3];
- };
- SocketReader *m_pixelReader;
- MotionSample m_samples[PLANE_DISTORT_MAX_SAMPLES];
- int m_motion_blur_samples;
- float m_motion_blur_shutter;
-
-public:
- PlaneDistortWarpImageOperation();
-
- void calculateCorners(const float corners[4][2],
- bool normalized,
- int sample);
-
- void initExecution();
- void deinitExecution();
-
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
-
- bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
-
- void setMotionBlurSamples(int samples) {
- BLI_assert(samples <= PLANE_DISTORT_MAX_SAMPLES);
- this->m_motion_blur_samples = samples;
- }
- void setMotionBlurShutter(float shutter) {
- this->m_motion_blur_shutter = shutter;
- }
+ protected:
+ struct MotionSample {
+ float frameSpaceCorners[4][2]; /* Corners coordinates in pixel space. */
+ float perspectiveMatrix[3][3];
+ };
+ SocketReader *m_pixelReader;
+ MotionSample m_samples[PLANE_DISTORT_MAX_SAMPLES];
+ int m_motion_blur_samples;
+ float m_motion_blur_shutter;
+
+ public:
+ PlaneDistortWarpImageOperation();
+
+ void calculateCorners(const float corners[4][2], bool normalized, int sample);
+
+ void initExecution();
+ void deinitExecution();
+
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+
+ bool determineDependingAreaOfInterest(rcti *input,
+ ReadBufferOperation *readOperation,
+ rcti *output);
+
+ void setMotionBlurSamples(int samples)
+ {
+ BLI_assert(samples <= PLANE_DISTORT_MAX_SAMPLES);
+ this->m_motion_blur_samples = samples;
+ }
+ void setMotionBlurShutter(float shutter)
+ {
+ this->m_motion_blur_shutter = shutter;
+ }
};
-
class PlaneDistortMaskOperation : public NodeOperation {
-protected:
- struct MotionSample {
- float frameSpaceCorners[4][2]; /* Corners coordinates in pixel space. */
- };
- int m_osa;
- MotionSample m_samples[PLANE_DISTORT_MAX_SAMPLES];
- float m_jitter[32][2];
- int m_motion_blur_samples;
- float m_motion_blur_shutter;
-
-public:
- PlaneDistortMaskOperation();
-
- void calculateCorners(const float corners[4][2],
- bool normalized,
- int sample);
-
- void initExecution();
-
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
-
- void setMotionBlurSamples(int samples) {
- BLI_assert(samples <= PLANE_DISTORT_MAX_SAMPLES);
- this->m_motion_blur_samples = samples;
- }
- void setMotionBlurShutter(float shutter) {
- this->m_motion_blur_shutter = shutter;
- }
+ protected:
+ struct MotionSample {
+ float frameSpaceCorners[4][2]; /* Corners coordinates in pixel space. */
+ };
+ int m_osa;
+ MotionSample m_samples[PLANE_DISTORT_MAX_SAMPLES];
+ float m_jitter[32][2];
+ int m_motion_blur_samples;
+ float m_motion_blur_shutter;
+
+ public:
+ PlaneDistortMaskOperation();
+
+ void calculateCorners(const float corners[4][2], bool normalized, int sample);
+
+ void initExecution();
+
+ void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
+
+ void setMotionBlurSamples(int samples)
+ {
+ BLI_assert(samples <= PLANE_DISTORT_MAX_SAMPLES);
+ this->m_motion_blur_samples = samples;
+ }
+ void setMotionBlurShutter(float shutter)
+ {
+ this->m_motion_blur_shutter = shutter;
+ }
};
#endif