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_InpaintOperation.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_InpaintOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_InpaintOperation.h | 77 |
1 files changed, 41 insertions, 36 deletions
diff --git a/source/blender/compositor/operations/COM_InpaintOperation.h b/source/blender/compositor/operations/COM_InpaintOperation.h index 3bad383f51e..2fef7c590ea 100644 --- a/source/blender/compositor/operations/COM_InpaintOperation.h +++ b/source/blender/compositor/operations/COM_InpaintOperation.h @@ -21,51 +21,56 @@ #include "COM_NodeOperation.h" class InpaintSimpleOperation : public NodeOperation { -protected: - /** - * Cached reference to the inputProgram - */ - SocketReader *m_inputImageProgram; + protected: + /** + * Cached reference to the inputProgram + */ + SocketReader *m_inputImageProgram; - int m_iterations; + int m_iterations; - float *m_cached_buffer; - bool m_cached_buffer_ready; + float *m_cached_buffer; + bool m_cached_buffer_ready; - int *m_pixelorder; - int m_area_size; - short *m_manhatten_distance; -public: - InpaintSimpleOperation(); + int *m_pixelorder; + int m_area_size; + short *m_manhatten_distance; - /** - * the inner loop of this program - */ - void executePixel(float output[4], int x, int y, void *data); + public: + InpaintSimpleOperation(); - /** - * Initialize the execution - */ - void initExecution(); + /** + * the inner loop of this program + */ + void executePixel(float output[4], int x, int y, void *data); - void *initializeTileData(rcti *rect); - /** - * Deinitialize the execution - */ - void deinitExecution(); + /** + * Initialize the execution + */ + void initExecution(); - void setIterations(int iterations) { this->m_iterations = iterations; } + void *initializeTileData(rcti *rect); + /** + * Deinitialize the execution + */ + void deinitExecution(); - bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output); + void setIterations(int iterations) + { + this->m_iterations = iterations; + } -private: - void calc_manhatten_distance(); - void clamp_xy(int &x, int &y); - float *get_pixel(int x, int y); - int mdist(int x, int y); - bool next_pixel(int &x, int &y, int &curr, int iters); - void pix_step(int x, int y); -}; + bool determineDependingAreaOfInterest(rcti *input, + ReadBufferOperation *readOperation, + rcti *output); + private: + void calc_manhatten_distance(); + void clamp_xy(int &x, int &y); + float *get_pixel(int x, int y); + int mdist(int x, int y); + bool next_pixel(int &x, int &y, int &curr, int iters); + void pix_step(int x, int y); +}; #endif |