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_ReadBufferOperation.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_ReadBufferOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_ReadBufferOperation.h | 69 |
1 files changed, 47 insertions, 22 deletions
diff --git a/source/blender/compositor/operations/COM_ReadBufferOperation.h b/source/blender/compositor/operations/COM_ReadBufferOperation.h index cd15bb12b28..fee6555c3a9 100644 --- a/source/blender/compositor/operations/COM_ReadBufferOperation.h +++ b/source/blender/compositor/operations/COM_ReadBufferOperation.h @@ -24,29 +24,54 @@ #include "COM_MemoryBuffer.h" class ReadBufferOperation : public NodeOperation { -private: - MemoryProxy *m_memoryProxy; - bool m_single_value; /* single value stored in buffer, copied from associated write operation */ - unsigned int m_offset; - MemoryBuffer *m_buffer; -public: - ReadBufferOperation(DataType datetype); - void setMemoryProxy(MemoryProxy *memoryProxy) { this->m_memoryProxy = memoryProxy; } - MemoryProxy *getMemoryProxy() { return this->m_memoryProxy; } - void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); + private: + MemoryProxy *m_memoryProxy; + bool m_single_value; /* single value stored in buffer, copied from associated write operation */ + unsigned int m_offset; + MemoryBuffer *m_buffer; - void *initializeTileData(rcti *rect); - void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); - void executePixelExtend(float output[4], float x, float y, PixelSampler sampler, - MemoryBufferExtend extend_x, MemoryBufferExtend extend_y); - void executePixelFiltered(float output[4], float x, float y, float dx[2], float dy[2]); - bool isReadBufferOperation() const { return true; } - void setOffset(unsigned int offset) { this->m_offset = offset; } - unsigned int getOffset() const { return this->m_offset; } - bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output); - MemoryBuffer *getInputMemoryBuffer(MemoryBuffer **memoryBuffers) { return memoryBuffers[this->m_offset]; } - void readResolutionFromWriteBuffer(); - void updateMemoryBuffer(); + public: + ReadBufferOperation(DataType datetype); + void setMemoryProxy(MemoryProxy *memoryProxy) + { + this->m_memoryProxy = memoryProxy; + } + MemoryProxy *getMemoryProxy() + { + return this->m_memoryProxy; + } + void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); + + void *initializeTileData(rcti *rect); + void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); + void executePixelExtend(float output[4], + float x, + float y, + PixelSampler sampler, + MemoryBufferExtend extend_x, + MemoryBufferExtend extend_y); + void executePixelFiltered(float output[4], float x, float y, float dx[2], float dy[2]); + bool isReadBufferOperation() const + { + return true; + } + void setOffset(unsigned int offset) + { + this->m_offset = offset; + } + unsigned int getOffset() const + { + return this->m_offset; + } + bool determineDependingAreaOfInterest(rcti *input, + ReadBufferOperation *readOperation, + rcti *output); + MemoryBuffer *getInputMemoryBuffer(MemoryBuffer **memoryBuffers) + { + return memoryBuffers[this->m_offset]; + } + void readResolutionFromWriteBuffer(); + void updateMemoryBuffer(); }; #endif |