diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2012-08-15 03:37:19 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2012-08-15 03:37:19 +0400 |
commit | 43bb431548436b6b1699f795acd107de0f6b86a8 (patch) | |
tree | f1ab16c6380b85d50fdf6bb978e5f117b0d5d118 /source/blender/compositor/operations/COM_ReadBufferOperation.cpp | |
parent | b8905ba0a6731d2aba6f3487be58b338f35df5f7 (diff) | |
parent | b174610a8461348a82454f9050bc0dee7d9ce926 (diff) |
Merge from trunk r49601-r49907
Diffstat (limited to 'source/blender/compositor/operations/COM_ReadBufferOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ReadBufferOperation.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/compositor/operations/COM_ReadBufferOperation.cpp b/source/blender/compositor/operations/COM_ReadBufferOperation.cpp index 2473ad8303e..a2385f79c04 100644 --- a/source/blender/compositor/operations/COM_ReadBufferOperation.cpp +++ b/source/blender/compositor/operations/COM_ReadBufferOperation.cpp @@ -36,7 +36,7 @@ void *ReadBufferOperation::initializeTileData(rcti *rect) return m_buffer; } -void ReadBufferOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[]) +void ReadBufferOperation::determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]) { if (this->m_memoryProxy != NULL) { WriteBufferOperation *operation = this->m_memoryProxy->getWriteBufferOperation(); @@ -49,19 +49,19 @@ void ReadBufferOperation::determineResolution(unsigned int resolution[], unsigne } } } -void ReadBufferOperation::executePixel(float *color, float x, float y, PixelSampler sampler) +void ReadBufferOperation::executePixel(float output[4], float x, float y, PixelSampler sampler) { if (sampler == COM_PS_NEAREST) { - m_buffer->read(color, x, y); + m_buffer->read(output, x, y); } else { - m_buffer->readCubic(color, x, y); + m_buffer->readCubic(output, x, y); } } -void ReadBufferOperation::executePixel(float *color, float x, float y, float dx, float dy) +void ReadBufferOperation::executePixel(float output[4], float x, float y, float dx, float dy) { - m_buffer->readEWA(color, x, y, dx, dy); + m_buffer->readEWA(output, x, y, dx, dy); } bool ReadBufferOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) |