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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-11-08 06:16:04 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-11-12 18:29:54 +0300
commit63f2f82f92936ce642eaa95def1179304ef0b363 (patch)
tree2c406f9f6f000d6350a9c6f84bc1ca0a39ed5ae3 /source/blender/compositor/operations/COM_IDMaskOperation.h
parent03e8202b7b1963bc856ca31b205364ddc569535a (diff)
Fix T46641: Bicubic transform on ID channel is not bicubic
Better support of bicubic sampling of ID mask output. The idea is to generate ID mask into a temporary buffer which is then being interpolated using current sampling method. This works fine for upscaling or rotating the ID mask but does not work for scaling down. This is much-much bigger problem of the compositor design and can't really be solved currently. Same will happen with other nodes like blur for example. Reviewers: campbellbarton Subscribers: ania Differential Revision: https://developer.blender.org/D1612
Diffstat (limited to 'source/blender/compositor/operations/COM_IDMaskOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_IDMaskOperation.h25
1 files changed, 4 insertions, 21 deletions
diff --git a/source/blender/compositor/operations/COM_IDMaskOperation.h b/source/blender/compositor/operations/COM_IDMaskOperation.h
index dfddc489ca4..841d4a76124 100644
--- a/source/blender/compositor/operations/COM_IDMaskOperation.h
+++ b/source/blender/compositor/operations/COM_IDMaskOperation.h
@@ -27,30 +27,13 @@
class IDMaskOperation : public NodeOperation {
private:
- /**
- * Cached reference to the inputProgram
- */
- SocketReader *m_inputProgram;
-
float m_objectIndex;
public:
IDMaskOperation();
-
- /**
- * the inner loop of this program
- */
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
-
- /**
- * Initialize the execution
- */
- void initExecution();
-
- /**
- * Deinitialize the execution
- */
- void deinitExecution();
-
+
+ void *initializeTileData(rcti *rect);
+ void executePixel(float output[4], int x, int y, void *data);
+
void setObjectIndex(float objectIndex) { this->m_objectIndex = objectIndex; }
};