|
Blender
V2.93
|
#include <COM_MovieClipOperation.h>
Inherits blender::compositor::NodeOperation.
Inherited by blender::compositor::MovieClipAlphaOperation, and blender::compositor::MovieClipOperation.
Public Member Functions | |
| MovieClipBaseOperation () | |
| void | initExecution () override |
| void | deinitExecution () override |
| void | setMovieClip (MovieClip *image) |
| void | setMovieClipUser (MovieClipUser *imageuser) |
| void | setCacheFrame (bool value) |
| void | setFramenumber (int framenumber) |
| void | executePixelSampled (float output[4], float x, float y, PixelSampler sampler) override |
| calculate a single pixel More... | |
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 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... | |
| virtual bool | determineDependingAreaOfInterest (rcti *input, ReadBufferOperation *readOperation, rcti *output) |
| 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 void * | initializeTileData (rcti *) |
| virtual void | deinitializeTileData (rcti *, void *) |
| virtual MemoryBuffer * | getInputMemoryBuffer (MemoryBuffer **) |
| virtual std::unique_ptr< MetaData > | getMetaData () |
Protected Member Functions | |
| void | determineResolution (unsigned int resolution[2], unsigned int preferredResolution[2]) override |
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 | executePixel (float output[4], int x, int y, void *) |
| 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... | |
Protected Attributes | |
| MovieClip * | m_movieClip |
| MovieClipUser * | m_movieClipUser |
| ImBuf * | m_movieClipBuffer |
| int | m_movieClipheight |
| int | m_movieClipwidth |
| int | m_framenumber |
| bool | m_cacheFrame |
Protected Attributes inherited from blender::compositor::NodeOperation | |
| unsigned int | m_width |
| unsigned int | m_height |
| NodeOperationFlags | flags |
Base class for movie clip
Definition at line 31 of file COM_MovieClipOperation.h.
| blender::compositor::MovieClipBaseOperation::MovieClipBaseOperation | ( | ) |
Definition at line 31 of file COM_MovieClipOperation.cc.
References m_framenumber, m_movieClip, m_movieClipBuffer, m_movieClipheight, m_movieClipUser, and m_movieClipwidth.
|
overridevirtual |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 65 of file COM_MovieClipOperation.cc.
References IMB_freeImBuf(), and m_movieClipBuffer.
|
overrideprotectedvirtual |
Determine the output resolution. The resolution is retrieved from the Renderer
Reimplemented from blender::compositor::NodeOperation.
Definition at line 74 of file COM_MovieClipOperation.cc.
References BKE_movieclip_get_size(), height, m_movieClip, m_movieClipUser, and width.
|
overridevirtual |
calculate a single pixel
| result | is a float[4] array to store the result |
| x | the x-coordinate of the pixel to calculate in image space |
| y | the y-coordinate of the pixel to calculate in image space |
| inputBuffers | chunks that can be read by their ReadBufferOperation. |
Reimplemented from blender::compositor::NodeOperation.
Reimplemented in blender::compositor::MovieClipAlphaOperation.
Definition at line 90 of file COM_MovieClipOperation.cc.
References blender::compositor::Bicubic, bicubic_interpolation_color(), blender::compositor::Bilinear, bilinear_interpolation_color(), m_movieClipBuffer, blender::compositor::Nearest, nearest_interpolation_color(), output, ImBuf::rect, ImBuf::rect_float, x, y, and zero_v4().
Referenced by blender::compositor::MovieClipAlphaOperation::executePixelSampled().
|
overridevirtual |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 41 of file COM_MovieClipOperation.cc.
References BKE_movieclip_get_ibuf(), BKE_movieclip_get_ibuf_flag(), BKE_movieclip_user_set_frame(), MovieClip::flag, IB_RECT_INVALID, IMB_float_from_rect(), m_cacheFrame, m_framenumber, m_movieClip, m_movieClipBuffer, m_movieClipUser, MOVIECLIP_CACHE_SKIP, ImBuf::rect_float, and ImBuf::userflags.
|
inline |
Definition at line 60 of file COM_MovieClipOperation.h.
Referenced by blender::compositor::MovieClipNode::convertToOperations().
|
inline |
Definition at line 65 of file COM_MovieClipOperation.h.
Referenced by blender::compositor::MovieClipNode::convertToOperations().
|
inline |
Definition at line 52 of file COM_MovieClipOperation.h.
Referenced by blender::compositor::MovieClipNode::convertToOperations().
|
inline |
Definition at line 56 of file COM_MovieClipOperation.h.
Referenced by blender::compositor::MovieClipNode::convertToOperations().
|
protected |
Definition at line 39 of file COM_MovieClipOperation.h.
Referenced by initExecution().
|
protected |
Definition at line 38 of file COM_MovieClipOperation.h.
Referenced by initExecution(), and MovieClipBaseOperation().
|
protected |
Definition at line 33 of file COM_MovieClipOperation.h.
Referenced by determineResolution(), initExecution(), and MovieClipBaseOperation().
|
protected |
Definition at line 35 of file COM_MovieClipOperation.h.
Referenced by deinitExecution(), executePixelSampled(), initExecution(), and MovieClipBaseOperation().
|
protected |
Definition at line 36 of file COM_MovieClipOperation.h.
Referenced by MovieClipBaseOperation().
|
protected |
Definition at line 34 of file COM_MovieClipOperation.h.
Referenced by determineResolution(), initExecution(), and MovieClipBaseOperation().
|
protected |
Definition at line 37 of file COM_MovieClipOperation.h.
Referenced by MovieClipBaseOperation().