~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to source/blender/compositor/operations/COM_ReadBufferOperation.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
class ReadBufferOperation : public NodeOperation {
30
30
private:
31
31
        MemoryProxy *m_memoryProxy;
 
32
        bool m_single_value; /* single value stored in buffer, copied from associated write operation */
32
33
        unsigned int m_offset;
33
34
        MemoryBuffer *m_buffer;
34
35
public:
40
41
        
41
42
        void *initializeTileData(rcti *rect);
42
43
        void executePixel(float output[4], float x, float y, PixelSampler sampler);
 
44
        void executePixelExtend(float output[4], float x, float y, PixelSampler sampler,
 
45
                                MemoryBufferExtend extend_x, MemoryBufferExtend extend_y);
43
46
        void executePixel(float output[4], float x, float y, float dx, float dy, PixelSampler sampler);
44
47
        const bool isReadBufferOperation() const { return true; }
45
48
        void setOffset(unsigned int offset) { this->m_offset = offset; }
46
 
        unsigned int getOffset() { return this->m_offset; }
 
49
        unsigned int getOffset() const { return this->m_offset; }
47
50
        bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
48
51
        MemoryBuffer *getInputMemoryBuffer(MemoryBuffer **memoryBuffers) { return memoryBuffers[this->m_offset]; }
49
52
        void readResolutionFromWriteBuffer();