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:
authorLukas Tönne <lukas.toenne@gmail.com>2013-11-19 14:06:16 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2013-11-19 14:06:16 +0400
commitc566e408e42836c136d8818cbea93ce870be09ea (patch)
treec0b4a027241247558fd5b87786f8e362cb98ef8d /source/blender/compositor/intern/COM_SocketReader.h
parent3c662efee33be215092255dd23e4f4f0dc71b502 (diff)
Cleanup: Renamed compositor executePixel functions and their 'read' wrappers in SocketReader.
Distinguish the 3 different methods for acquiring pixel color values (executePixel, executePixelSampled, executePixelFiltered). This makes it easier to keep track of the different sampling methods (and works nicer with IDEs that do code parsing). Differential Revision: http://developer.blender.org/D7
Diffstat (limited to 'source/blender/compositor/intern/COM_SocketReader.h')
-rw-r--r--source/blender/compositor/intern/COM_SocketReader.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/compositor/intern/COM_SocketReader.h b/source/blender/compositor/intern/COM_SocketReader.h
index b7aae8b92f0..2eaeb664c67 100644
--- a/source/blender/compositor/intern/COM_SocketReader.h
+++ b/source/blender/compositor/intern/COM_SocketReader.h
@@ -63,7 +63,7 @@ protected:
* @param y the y-coordinate of the pixel to calculate in image space
* @param inputBuffers chunks that can be read by their ReadBufferOperation.
*/
- virtual void executePixel(float output[4], float x, float y, PixelSampler sampler) {}
+ virtual void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) {}
/**
* @brief calculate a single pixel
@@ -75,7 +75,7 @@ protected:
* @param chunkData chunk specific data a during execution time.
*/
virtual void executePixel(float output[4], int x, int y, void *chunkData) {
- executePixel(output, x, y, COM_PS_NEAREST);
+ executePixelSampled(output, x, y, COM_PS_NEAREST);
}
/**
@@ -88,17 +88,17 @@ protected:
* @param dy
* @param inputBuffers chunks that can be read by their ReadBufferOperation.
*/
- virtual void executePixel(float output[4], float x, float y, float dx, float dy, PixelSampler sampler) {}
+ virtual void executePixelFiltered(float output[4], float x, float y, float dx, float dy, PixelSampler sampler) {}
public:
- inline void read(float result[4], float x, float y, PixelSampler sampler) {
- executePixel(result, x, y, sampler);
+ inline void readSampled(float result[4], float x, float y, PixelSampler sampler) {
+ executePixelSampled(result, x, y, sampler);
}
inline void read(float result[4], int x, int y, void *chunkData) {
executePixel(result, x, y, chunkData);
}
- inline void read(float result[4], float x, float y, float dx, float dy, PixelSampler sampler) {
- executePixel(result, x, y, dx, dy, sampler);
+ inline void readFiltered(float result[4], float x, float y, float dx, float dy, PixelSampler sampler) {
+ executePixelFiltered(result, x, y, dx, dy, sampler);
}
virtual void *initializeTileData(rcti *rect) { return 0; }