diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/compositor/operations/COM_KeyingScreenOperation.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (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_KeyingScreenOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_KeyingScreenOperation.h | 90 |
1 files changed, 49 insertions, 41 deletions
diff --git a/source/blender/compositor/operations/COM_KeyingScreenOperation.h b/source/blender/compositor/operations/COM_KeyingScreenOperation.h index e11905fbfac..860a358e79d 100644 --- a/source/blender/compositor/operations/COM_KeyingScreenOperation.h +++ b/source/blender/compositor/operations/COM_KeyingScreenOperation.h @@ -16,7 +16,6 @@ * Copyright 2012, Blender Foundation. */ - #ifndef __COM_KEYINGSCREENOPERATION_H__ #define __COM_KEYINGSCREENOPERATION_H__ @@ -30,52 +29,61 @@ #include "BLI_string.h" extern "C" { -# include "BLI_voronoi_2d.h" +#include "BLI_voronoi_2d.h" } /** * Class with implementation of green screen gradient rasterization */ class KeyingScreenOperation : public NodeOperation { -protected: - typedef struct TriangulationData { - VoronoiTriangulationPoint *triangulated_points; - int (*triangles)[3]; - int triangulated_points_total, triangles_total; - rcti *triangles_AABB; - } TriangulationData; - - typedef struct TileData { - int *triangles; - int triangles_total; - } TileData; - - MovieClip *m_movieClip; - int m_framenumber; - TriangulationData *m_cachedTriangulation; - char m_trackingObject[64]; - - /** - * Determine the output resolution. The resolution is retrieved from the Renderer - */ - void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); - - TriangulationData *buildVoronoiTriangulation(); - -public: - KeyingScreenOperation(); - - void initExecution(); - void deinitExecution(); - - void *initializeTileData(rcti *rect); - void deinitializeTileData(rcti *rect, void *data); - - void setMovieClip(MovieClip *clip) {this->m_movieClip = clip;} - void setTrackingObject(const char *object) { BLI_strncpy(this->m_trackingObject, object, sizeof(this->m_trackingObject)); } - void setFramenumber(int framenumber) {this->m_framenumber = framenumber;} - - void executePixel(float output[4], int x, int y, void *data); + protected: + typedef struct TriangulationData { + VoronoiTriangulationPoint *triangulated_points; + int (*triangles)[3]; + int triangulated_points_total, triangles_total; + rcti *triangles_AABB; + } TriangulationData; + + typedef struct TileData { + int *triangles; + int triangles_total; + } TileData; + + MovieClip *m_movieClip; + int m_framenumber; + TriangulationData *m_cachedTriangulation; + char m_trackingObject[64]; + + /** + * Determine the output resolution. The resolution is retrieved from the Renderer + */ + void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); + + TriangulationData *buildVoronoiTriangulation(); + + public: + KeyingScreenOperation(); + + void initExecution(); + void deinitExecution(); + + void *initializeTileData(rcti *rect); + void deinitializeTileData(rcti *rect, void *data); + + void setMovieClip(MovieClip *clip) + { + this->m_movieClip = clip; + } + void setTrackingObject(const char *object) + { + BLI_strncpy(this->m_trackingObject, object, sizeof(this->m_trackingObject)); + } + void setFramenumber(int framenumber) + { + this->m_framenumber = framenumber; + } + + void executePixel(float output[4], int x, int y, void *data); }; #endif |