78 radius_operation = minimum_operation;
82 bokehdata->
angle = data->rotation;
84 bokehdata->
flaps = data->bktype;
85 if (data->bktype < 3) {
93 bokeh->set_data(bokehdata);
94 bokeh->set_resolution(
math::ceil(data->maxblur) * 2 + 1);
95 bokeh->delete_data_on_finish();
Camera data-block and utility functions.
struct NodeBokehImage NodeBokehImage
btMatrix3x3 inverse() const
Return the inverse of the matrix.
Overall context of the compositor.
void set_blur_y_operation(GaussianYBlurOperation *blur_y_operation)
void set_scene(const Scene *scene)
void set_data(const NodeDefocus *data)
void set_blur_x_operation(GaussianXBlurOperation *blur_x_operation)
DefocusNode(bNode *editor_node)
const Scene * get_scene(const CompositorContext &context) const
void convert_to_operations(NodeConverter &converter, const CompositorContext &context) const override
convert node to operation
void add_link(NodeOperationOutput *from, NodeOperationInput *to)
void map_output_socket(NodeOutput *node_socket, NodeOperationOutput *operation_socket)
void add_operation(NodeOperation *operation)
void map_input_socket(NodeInput *node_socket, NodeOperationInput *operation_socket)
NodeOperation contains calculation logic.
NodeOperationOutput * get_output_socket(unsigned int index=0)
NodeOperationInput * get_input_socket(unsigned int index)
NodeOutput * get_output_socket(unsigned int index=0) const
NodeInput * get_input_socket(unsigned int index) const
const bNode * get_bnode() const
get the reference to the SDNA bNode struct
void set_value(float value)
void set_threshold(float threshold)
void set_max_blur(int max_radius)
static void minimize(float rvalue[3], float mp[3], const float pts[12][3], const float norms[12][3], const int parity[12])