Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/intern/COM_NodeOperation.h
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | enum class ResizeMode { | ||||
| /** \brief Fit the width or the height of the input image to the width or height of the working | /** \brief Fit the width or the height of the input image to the width or height of the working | ||||
| * area of the node, image will be larger than the working area */ | * area of the node, image will be larger than the working area */ | ||||
| FitAny = NS_CR_FIT, | FitAny = NS_CR_FIT, | ||||
| /** \brief Fit the width and the height of the input image to the width and height of the working | /** \brief Fit the width and the height of the input image to the width and height of the working | ||||
| * area of the node, image will be equally larger than the working area */ | * area of the node, image will be equally larger than the working area */ | ||||
| Stretch = NS_CR_STRETCH, | Stretch = NS_CR_STRETCH, | ||||
| }; | }; | ||||
| enum class PixelSampler { | |||||
| Nearest = 0, | |||||
| Bilinear = 1, | |||||
| Bicubic = 2, | |||||
| }; | |||||
| class NodeOperationInput { | class NodeOperationInput { | ||||
| private: | private: | ||||
| NodeOperation *m_operation; | NodeOperation *m_operation; | ||||
| /** Datatype of this socket. Is used for automatically data transformation. | /** Datatype of this socket. Is used for automatically data transformation. | ||||
| * \section data-conversion | * \section data-conversion | ||||
| */ | */ | ||||
| DataType m_datatype; | DataType m_datatype; | ||||
| ▲ Show 20 Lines • Show All 327 Lines • ▼ Show 20 Lines | void setbNodeTree(const bNodeTree *tree) | ||||
| this->m_btree = tree; | this->m_btree = tree; | ||||
| } | } | ||||
| void set_execution_system(ExecutionSystem *system) | void set_execution_system(ExecutionSystem *system) | ||||
| { | { | ||||
| exec_system_ = system; | exec_system_ = system; | ||||
| } | } | ||||
| /** | |||||
| * Initializes operation data needed after operations are linked and resolutions determined. For | |||||
| * rendering heap memory data use initExecution(). | |||||
| */ | |||||
| virtual void init_data(); | |||||
| virtual void initExecution(); | virtual void initExecution(); | ||||
| /** | /** | ||||
| * \brief when a chunk is executed by a CPUDevice, this method is called | * \brief when a chunk is executed by a CPUDevice, this method is called | ||||
| * \ingroup execution | * \ingroup execution | ||||
| * \param rect: the rectangle of the chunk (location and size) | * \param rect: the rectangle of the chunk (location and size) | ||||
| * \param chunkNumber: the chunkNumber to be calculated | * \param chunkNumber: the chunkNumber to be calculated | ||||
| * \param memoryBuffers: all input MemoryBuffer's needed | * \param memoryBuffers: all input MemoryBuffer's needed | ||||
| ▲ Show 20 Lines • Show All 288 Lines • Show Last 20 Lines | |||||