|
Blender V4.3
|
#include <COM_GaussianAlphaBlurBaseOperation.h>
Inherits blender::compositor::BlurBaseOperation.
Inherited by blender::compositor::GaussianAlphaXBlurOperation, and blender::compositor::GaussianAlphaYBlurOperation.
Public Member Functions | |
| GaussianAlphaBlurBaseOperation (eDimension dim) | |
| virtual void | init_data () override |
| virtual void | init_execution () override |
| virtual void | deinit_execution () override |
| void | get_area_of_interest (int input_idx, const rcti &output_area, rcti &r_input_area) final |
| Get input operation area being read by this operation on rendering given output area. | |
| void | update_memory_buffer_partial (MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) final |
| void | set_subtract (bool subtract) |
| void | set_falloff (int falloff) |
| BLI_INLINE float | finv_test (const float f, const bool test) |
Public Member Functions inherited from blender::compositor::BlurBaseOperation | |
| void | set_data (const NodeBlurData *data) |
| void | set_size (float size) |
| void | set_extend_bounds (bool extend_bounds) |
| int | get_blur_size (eDimension dim) const |
| void | determine_canvas (const rcti &preferred_area, rcti &r_area) 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 void | set_node_instance_key (const bNodeInstanceKey &node_instance_key) |
| const bNodeInstanceKey | get_node_instance_key () const |
| float | get_constant_value_default (float default_value) |
| const float * | get_constant_elem_default (const float *default_elem) |
| const NodeOperationFlags | get_flags () const |
| std::optional< NodeOperationHash > | generate_hash () |
| unsigned int | get_number_of_input_sockets () const |
| unsigned int | get_number_of_output_sockets () const |
| NodeOperationOutput * | get_output_socket (unsigned int index=0) |
| NodeOperationInput * | get_input_socket (unsigned int index) |
| NodeOperation * | get_input_operation (int index) |
| virtual bool | is_output_operation (bool) const |
| is_output_operation determines whether this operation is an output of the ExecutionSystem during rendering or editing. | |
| void | set_bnodetree (const bNodeTree *tree) |
| void | set_execution_system (ExecutionSystem *system) |
| void | set_canvas (const rcti &canvas_area) |
| const rcti & | get_canvas () const |
| void | unset_canvas () |
| virtual bool | is_active_viewer_output () 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). | |
| void | set_canvas_input_index (unsigned int index) |
| set the index of the input socket that will determine the canvas of this operation | |
| void | set_determined_canvas_modifier (std::function< void(rcti &canvas)> fn) |
| virtual eCompositorPriority | get_render_priority () const |
| get the render priority of this node. | |
| bool | is_braked () const |
| void | update_draw () |
| unsigned int | get_width () const |
| unsigned int | get_height () const |
| virtual MemoryBuffer * | get_input_memory_buffer (MemoryBuffer **) |
| virtual std::unique_ptr< MetaData > | get_meta_data () |
| void | render (MemoryBuffer *output_buf, Span< rcti > areas, Span< MemoryBuffer * > inputs_bufs) |
| void | get_area_of_interest (NodeOperation *input_op, const rcti &output_area, rcti &r_input_area) |
Protected Attributes | |
| float * | gausstab_ |
| float * | distbuf_inv_ |
| int | falloff_ |
| bool | do_subtract_ |
| int | filtersize_ |
| float | rad_ |
| eDimension | dimension_ |
Protected Attributes inherited from blender::compositor::BlurBaseOperation | |
| NodeBlurData | data_ |
| float | size_ |
| bool | sizeavailable_ |
| bool | use_variable_size_ |
Protected Attributes inherited from blender::compositor::MultiThreadedOperation | |
| int | num_passes_ |
| int | current_pass_ |
Protected Attributes inherited from blender::compositor::NodeOperation | |
| rcti | canvas_ = COM_AREA_NONE |
| NodeOperationFlags | flags_ |
| ExecutionSystem * | exec_system_ |
Additional Inherited Members | |
Protected Member Functions inherited from blender::compositor::BlurBaseOperation | |
| BlurBaseOperation (DataType data_type8) | |
| float * | make_gausstab (float rad, int size) |
| float * | make_dist_fac_inverse (float rad, int size, int falloff) |
| void | update_size () |
Protected Member Functions inherited from blender::compositor::MultiThreadedOperation | |
| MultiThreadedOperation () | |
| virtual void | update_memory_buffer_started (MemoryBuffer *, const rcti &, Span< MemoryBuffer * >) |
| virtual void | update_memory_buffer_finished (MemoryBuffer *, const rcti &, Span< MemoryBuffer * >) |
Protected Member Functions inherited from blender::compositor::NodeOperation | |
| NodeOperation () | |
| virtual void | hash_output_params () |
| template<typename T > | |
| void | hash_param (T param) |
| template<typename T1 , typename T2 > | |
| void | hash_params (T1 param1, T2 param2) |
| template<typename T1 , typename T2 , typename T3 > | |
| void | hash_params (T1 param1, T2 param2, T3 param3) |
| void | add_input_socket (DataType datatype, ResizeMode resize_mode=ResizeMode::Center) |
| void | add_output_socket (DataType datatype) |
| SocketReader * | get_input_socket_reader (unsigned int index) |
Static Protected Member Functions inherited from blender::compositor::NodeOperation | |
| static void | combine_hashes (size_t &combined, size_t other) |
Static Protected Attributes inherited from blender::compositor::BlurBaseOperation | |
| static constexpr int | IMAGE_INPUT_INDEX = 0 |
| static constexpr int | SIZE_INPUT_INDEX = 1 |
Definition at line 11 of file COM_GaussianAlphaBlurBaseOperation.h.
| blender::compositor::GaussianAlphaBlurBaseOperation::GaussianAlphaBlurBaseOperation | ( | eDimension | dim | ) |
Definition at line 9 of file COM_GaussianAlphaBlurBaseOperation.cc.
References dimension_, falloff_, filtersize_, and gausstab_.
|
overridevirtual |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 33 of file COM_GaussianAlphaBlurBaseOperation.cc.
References blender::compositor::NodeOperation::deinit_execution(), distbuf_inv_, gausstab_, and MEM_freeN().
|
inline |
Definition at line 45 of file COM_GaussianAlphaBlurBaseOperation.h.
References LIKELY.
Referenced by update_memory_buffer_partial().
|
finalvirtual |
Get input operation area being read by this operation on rendering given output area.
Implementation don't need to ensure r_input_area is within input operation bounds. The caller must clamp it. TODO: See if it's possible to use parameter overloading (input_id for example).
| input_idx | Input operation index for which we want to calculate the area being read. |
| output_area | Area being rendered by this operation. |
| r_input_area | Returned input operation area that needs to be read in order to render given output area. |
Reimplemented from blender::compositor::BlurBaseOperation.
Definition at line 48 of file COM_GaussianAlphaBlurBaseOperation.cc.
References dimension_, filtersize_, blender::compositor::BlurBaseOperation::get_area_of_interest(), blender::compositor::BlurBaseOperation::IMAGE_INPUT_INDEX, blender::compositor::X, rcti::xmax, rcti::xmin, blender::compositor::Y, rcti::ymax, and rcti::ymin.
|
overridevirtual |
Initializes operation data needed after operations are linked and resolutions determined. For rendering heap memory data use init_execution().
Reimplemented from blender::compositor::BlurBaseOperation.
Definition at line 18 of file COM_GaussianAlphaBlurBaseOperation.cc.
References ceil(), dimension_, filtersize_, blender::compositor::BlurBaseOperation::get_blur_size(), blender::compositor::BlurBaseOperation::init_data(), max_ff(), MAX_GAUSSTAB_RADIUS, min_ff(), min_ii(), rad_, and blender::compositor::BlurBaseOperation::size_.
|
overridevirtual |
Reimplemented from blender::compositor::NodeOperation.
Definition at line 26 of file COM_GaussianAlphaBlurBaseOperation.cc.
References distbuf_inv_, falloff_, filtersize_, gausstab_, blender::compositor::NodeOperation::init_execution(), blender::compositor::BlurBaseOperation::make_dist_fac_inverse(), blender::compositor::BlurBaseOperation::make_gausstab(), and rad_.
|
inline |
Definition at line 40 of file COM_GaussianAlphaBlurBaseOperation.h.
References falloff_.
Referenced by blender::compositor::DilateErodeNode::convert_to_operations(), and blender::compositor::KeyingNode::setup_feather().
|
inline |
Set subtract for Dilate/Erode functionality
Definition at line 36 of file COM_GaussianAlphaBlurBaseOperation.h.
References do_subtract_.
Referenced by blender::compositor::DilateErodeNode::convert_to_operations(), and blender::compositor::KeyingNode::setup_feather().
|
finalvirtual |
Executes operation updating a memory buffer area. Multi-threaded calls.
Implements blender::compositor::MultiThreadedOperation.
Definition at line 70 of file COM_GaussianAlphaBlurBaseOperation.cc.
References dimension_, distbuf_inv_, do_subtract_, filtersize_, finv_test(), gausstab_, blender::compositor::BlurBaseOperation::IMAGE_INPUT_INDEX, int, max_ii(), min_ii(), blender::compositor::X, rcti::xmax, rcti::xmin, blender::compositor::Y, rcti::ymax, and rcti::ymin.
|
protected |
Definition at line 19 of file COM_GaussianAlphaBlurBaseOperation.h.
Referenced by GaussianAlphaBlurBaseOperation(), get_area_of_interest(), init_data(), and update_memory_buffer_partial().
|
protected |
Definition at line 14 of file COM_GaussianAlphaBlurBaseOperation.h.
Referenced by deinit_execution(), init_execution(), and update_memory_buffer_partial().
|
protected |
Definition at line 16 of file COM_GaussianAlphaBlurBaseOperation.h.
Referenced by set_subtract(), and update_memory_buffer_partial().
|
protected |
Definition at line 15 of file COM_GaussianAlphaBlurBaseOperation.h.
Referenced by GaussianAlphaBlurBaseOperation(), init_execution(), and set_falloff().
|
protected |
Definition at line 17 of file COM_GaussianAlphaBlurBaseOperation.h.
Referenced by GaussianAlphaBlurBaseOperation(), get_area_of_interest(), init_data(), init_execution(), and update_memory_buffer_partial().
|
protected |
Definition at line 13 of file COM_GaussianAlphaBlurBaseOperation.h.
Referenced by deinit_execution(), GaussianAlphaBlurBaseOperation(), init_execution(), and update_memory_buffer_partial().
|
protected |
Definition at line 18 of file COM_GaussianAlphaBlurBaseOperation.h.
Referenced by init_data(), and init_execution().