|
Blender
V2.93
|
base class of normalize, implementing the simple normalize More...
#include <COM_NormalizeOperation.h>
Inherits blender::compositor::NodeOperation.
Public Member Functions | |
| NormalizeOperation () | |
| void | executePixel (float output[4], int x, int y, void *data) override |
| void | initExecution () override |
| void * | initializeTileData (rcti *rect) override |
| void | deinitializeTileData (rcti *rect, void *data) override |
| void | deinitExecution () override |
| bool | determineDependingAreaOfInterest (rcti *input, ReadBufferOperation *readOperation, rcti *output) override |
Public Member Functions inherited from blender::compositor::NodeOperation | |
| virtual | ~NodeOperation () |
| void | set_name (const std::string name) |
| const std::string | get_name () const |
| void | set_id (const int id) |
| const int | get_id () const |
| const NodeOperationFlags | get_flags () const |
| unsigned int | getNumberOfInputSockets () const |
| unsigned int | getNumberOfOutputSockets () const |
| NodeOperationOutput * | getOutputSocket (unsigned int index=0) |
| NodeOperationInput * | getInputSocket (unsigned int index) |
| virtual void | determineResolution (unsigned int resolution[2], unsigned int preferredResolution[2]) |
| determine the resolution of this node More... | |
| virtual bool | isOutputOperation (bool) const |
| isOutputOperation determines whether this operation is an output of the ExecutionSystem during rendering or editing. More... | |
| void | setbNodeTree (const bNodeTree *tree) |
| virtual void | executeRegion (rcti *, unsigned int) |
| when a chunk is executed by a CPUDevice, this method is called More... | |
| virtual void | executeOpenCLRegion (OpenCLDevice *, rcti *, unsigned int, MemoryBuffer **, MemoryBuffer *) |
| when a chunk is executed by an OpenCLDevice, this method is called More... | |
| virtual void | executeOpenCL (OpenCLDevice *, MemoryBuffer *, cl_mem, MemoryBuffer **, std::list< cl_mem > *, std::list< cl_kernel > *) |
| custom handle to add new tasks to the OpenCL command queue in order to execute a chunk on an GPUDevice. More... | |
| void | setResolution (unsigned int resolution[2]) |
| set the resolution More... | |
| virtual bool | isActiveViewerOutput () const |
| is this operation the active viewer output user can select an ViewerNode to be active (the result of this node will be drawn on the backdrop). More... | |
| void | setResolutionInputSocketIndex (unsigned int index) |
| set the index of the input socket that will determine the resolution of this operation More... | |
| virtual eCompositorPriority | getRenderPriority () const |
| get the render priority of this node. More... | |
| bool | isBraked () const |
| void | updateDraw () |
| unsigned int | getWidth () const |
| unsigned int | getHeight () const |
| void | readSampled (float result[4], float x, float y, PixelSampler sampler) |
| void | readFiltered (float result[4], float x, float y, float dx[2], float dy[2]) |
| void | read (float result[4], int x, int y, void *chunkData) |
| virtual MemoryBuffer * | getInputMemoryBuffer (MemoryBuffer **) |
| virtual std::unique_ptr< MetaData > | getMetaData () |
Protected Attributes | |
| SocketReader * | m_imageReader |
| Cached reference to the reader. More... | |
| NodeTwoFloats * | m_cachedInstance |
| temporarily cache of the execution storage it stores x->min and y->mult More... | |
Protected Attributes inherited from blender::compositor::NodeOperation | |
| unsigned int | m_width |
| unsigned int | m_height |
| NodeOperationFlags | flags |
Additional Inherited Members | |
Protected Member Functions inherited from blender::compositor::NodeOperation | |
| NodeOperation () | |
| void | addInputSocket (DataType datatype, ResizeMode resize_mode=ResizeMode::Center) |
| void | addOutputSocket (DataType datatype) |
| void | setWidth (unsigned int width) |
| void | setHeight (unsigned int height) |
| SocketReader * | getInputSocketReader (unsigned int inputSocketindex) |
| NodeOperation * | getInputOperation (unsigned int inputSocketindex) |
| void | deinitMutex () |
| void | initMutex () |
| void | lockMutex () |
| void | unlockMutex () |
| void | setComplex (bool complex) |
| set whether this operation is complex More... | |
| virtual void | executePixelSampled (float[4], float, float, PixelSampler) |
| calculate a single pixel More... | |
| virtual void | executePixelFiltered (float[4], float, float, float[2], float[2]) |
| calculate a single pixel using an EWA filter More... | |
base class of normalize, implementing the simple normalize
Definition at line 30 of file COM_NormalizeOperation.h.
| blender::compositor::NormalizeOperation::NormalizeOperation | ( | ) |
Definition at line 23 of file COM_NormalizeOperation.cc.
References blender::compositor::NodeOperation::addInputSocket(), blender::compositor::NodeOperation::addOutputSocket(), blender::compositor::NodeOperationFlags::complex, blender::compositor::NodeOperation::flags, m_cachedInstance, m_imageReader, and blender::compositor::Value.
|
overridevirtual |
Deinitialize the execution
Reimplemented from blender::compositor::NodeOperation.
Definition at line 55 of file COM_NormalizeOperation.cc.
References blender::compositor::NodeOperation::deinitMutex(), m_cachedInstance, and m_imageReader.
|
overridevirtual |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 125 of file COM_NormalizeOperation.cc.
|
overridevirtual |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 62 of file COM_NormalizeOperation.cc.
References blender::compositor::NodeOperation::determineDependingAreaOfInterest(), blender::compositor::NodeOperation::getHeight(), blender::compositor::NodeOperation::getInputOperation(), blender::compositor::NodeOperation::getWidth(), m_cachedInstance, output, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
|
overridevirtual |
The inner loop of this operation.
Reimplemented from blender::compositor::NodeOperation.
Definition at line 37 of file COM_NormalizeOperation.cc.
References data, if(), m_imageReader, output, blender::compositor::NodeOperation::read(), x, NodeTwoFloats::x, y, and NodeTwoFloats::y.
|
overridevirtual |
Initialize the execution
Reimplemented from blender::compositor::NodeOperation.
Definition at line 31 of file COM_NormalizeOperation.cc.
References blender::compositor::NodeOperation::getInputSocketReader(), blender::compositor::NodeOperation::initMutex(), and m_imageReader.
|
overridevirtual |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 87 of file COM_NormalizeOperation.cc.
References BLENDER_ZMAX, buffer, blender::compositor::MemoryBuffer::getBuffer(), blender::compositor::MemoryBuffer::getHeight(), blender::compositor::MemoryBuffer::getWidth(), blender::compositor::NodeOperation::initializeTileData(), blender::compositor::NodeOperation::lockMutex(), m_cachedInstance, m_imageReader, blender::compositor::NodeOperation::unlockMutex(), NodeTwoFloats::x, and NodeTwoFloats::y.
|
protected |
temporarily cache of the execution storage it stores x->min and y->mult
Definition at line 41 of file COM_NormalizeOperation.h.
Referenced by deinitExecution(), determineDependingAreaOfInterest(), initializeTileData(), and NormalizeOperation().
|
protected |
Cached reference to the reader.
Definition at line 35 of file COM_NormalizeOperation.h.
Referenced by deinitExecution(), executePixel(), initExecution(), initializeTileData(), and NormalizeOperation().