Blender V4.5
blender::nodes::node_composite_glare_cc::GlareOperation Class Reference

Inherits blender::compositor::NodeOperation.

Public Member Functions

void execute () override
 
Result compute_highlights ()
 
Result execute_highlights_gpu ()
 
Result execute_highlights_cpu ()
 
float get_maximum_brightness ()
 
float smooth_min (const float a, const float b, const float smoothness)
 
float smooth_max (const float a, const float b, const float smoothness)
 
float smooth_clamp (const float x, const float min_value, const float max_value, const float min_smoothness, const float max_smoothness)
 
float adaptive_smooth_clamp (const float x, const float min_value, const float max_value, const float smoothness)
 
float get_threshold ()
 
float get_highlights_smoothness ()
 
bool get_clamp_highlights ()
 
float get_max_highlights ()
 
void write_highlights_output (const Result &highlights)
 
void write_highlights_output_gpu (const Result &highlights)
 
void write_highlights_output_cpu (const Result &highlights)
 
Result compute_glare (Result &highlights_result)
 
bool should_compute_glare ()
 
Result execute_simple_star (const Result &highlights)
 
Result execute_simple_star_axis_aligned (const Result &highlights)
 
Result execute_simple_star_vertical_pass (const Result &highlights, const Result &horizontal_pass_result)
 
Result execute_simple_star_vertical_pass_gpu (const Result &highlights, const Result &horizontal_pass_result)
 
Result execute_simple_star_vertical_pass_cpu (const Result &highlights, const Result &horizontal_pass_result)
 
Result execute_simple_star_horizontal_pass (const Result &highlights)
 
Result execute_simple_star_horizontal_pass_gpu (const Result &highlights)
 
Result execute_simple_star_horizontal_pass_cpu (const Result &highlights)
 
Result execute_simple_star_diagonal (const Result &highlights)
 
Result execute_simple_star_anti_diagonal_pass (const Result &highlights, const Result &diagonal_pass_result)
 
Result execute_simple_star_anti_diagonal_pass_gpu (const Result &highlights, const Result &diagonal_pass_result)
 
Result execute_simple_star_anti_diagonal_pass_cpu (const Result &highlights, const Result &diagonal_pass_result)
 
Result execute_simple_star_diagonal_pass (const Result &highlights)
 
Result execute_simple_star_diagonal_pass_gpu (const Result &highlights)
 
Result execute_simple_star_diagonal_pass_cpu (const Result &highlights)
 
bool get_diagonal_star ()
 
Result execute_streaks (const Result &highlights)
 
Result apply_streak_filter (const Result &highlights, const float2 &streak_direction)
 
Result apply_streak_filter_gpu (const Result &highlights, const float2 &streak_direction)
 
Result apply_streak_filter_cpu (const Result &highlights, const float2 &streak_direction)
 
void accumulate_streak (const Result &streak_result, Result &accumulated_streaks_result)
 
void accumulate_streak_gpu (const Result &streak_result, Result &accumulated_streaks_result)
 
void accumulate_streak_cpu (const Result &streak, Result &accumulated_streaks)
 
float compute_streak_attenuation_factor ()
 
float2 compute_streak_direction (int streak_index)
 
float compute_streak_color_modulator (int iteration)
 
float3 compute_streak_fade_factors (float iteration_magnitude)
 
float compute_streak_iteration_magnitude (int iteration)
 
int get_number_of_streaks ()
 
float get_streaks_angle ()
 
Result execute_ghost (const Result &highlights)
 
void accumulate_ghosts_gpu (const Result &base_ghost_result, Result &accumulated_ghosts_result)
 
void accumulate_ghosts_cpu (const Result &base_ghost, Result &accumulated_ghosts_result)
 
Result compute_base_ghost (const Result &highlights)
 
void compute_base_ghost_gpu (const Result &small_ghost_result, const Result &big_ghost_result, Result &base_ghost_result)
 
void compute_base_ghost_cpu (const Result &small_ghost_result, const Result &big_ghost_result, Result &combined_ghost)
 
std::array< float4, 4 > compute_ghost_color_modulators ()
 
std::array< float, 4 > compute_ghost_scales (int iteration)
 
float get_small_ghost_radius ()
 
float get_big_ghost_radius ()
 
float get_ghost_color_modulation_factor ()
 
Result execute_bloom (Result &highlights)
 
void compute_bloom_upsample_gpu (const Result &input, Result &output)
 
void compute_bloom_upsample_cpu (const Result &input, Result &output)
 
Array< Resultcompute_bloom_downsample_chain (const Result &highlights, int chain_length)
 
void compute_bloom_downsample_gpu (const Result &input, Result &output, const bool use_karis_average)
 
template<bool UseKarisAverage>
void compute_bloom_downsample_cpu (const Result &input, Result &output)
 
float4 karis_brightness_weighted_sum (const float4 &color1, const float4 &color2, const float4 &color3, const float4 &color4)
 
int compute_bloom_chain_length ()
 
Result execute_fog_glow (const Result &highlights)
 
int compute_fog_glow_kernel_size (const Result &highlights)
 
void execute_mix (const Result &glare_result)
 
void execute_mix_gpu (const Result &glare_result)
 
void execute_mix_cpu (const Result &glare_result)
 
void write_glare_output (const Result &glare)
 
void write_glare_output_gpu (const Result &glare)
 
void write_glare_output_cpu (const Result &glare)
 
float3 get_corrected_tint ()
 
float get_normalization_scale ()
 
float get_strength ()
 
float get_saturation ()
 
float3 get_tint ()
 
float get_size ()
 
int get_number_of_iterations ()
 
float get_fade ()
 
float get_color_modulation ()
 
int2 get_glare_image_size ()
 
int get_quality_factor ()
 
 NodeOperation (Context &context, DNode node)
 
- Public Member Functions inherited from blender::compositor::NodeOperation
 NodeOperation (Context &context, DNode node)
 
void evaluate () override
 
void compute_results_reference_counts (const Schedule &schedule)
 
- Public Member Functions inherited from blender::compositor::Operation
 Operation (Context &context)
 
virtual ~Operation ()
 
Resultget_result (StringRef identifier)
 
void map_input_to_result (StringRef identifier, Result *result)
 
void free_results ()
 

Additional Inherited Members

- Protected Member Functions inherited from blender::compositor::NodeOperation
void compute_preview () override
 
const DNodenode () const
 
const bNodebnode () const
 
bool should_compute_output (StringRef identifier)
 
- Protected Member Functions inherited from blender::compositor::Operation
virtual Domain compute_domain ()
 
virtual void add_and_evaluate_input_processors ()
 
void add_and_evaluate_input_processor (StringRef identifier, SimpleOperation *processor)
 
Resultget_input (StringRef identifier) const
 
void switch_result_mapped_to_input (StringRef identifier, Result *result)
 
void populate_result (StringRef identifier, Result result)
 
void declare_input_descriptor (StringRef identifier, InputDescriptor descriptor)
 
InputDescriptorget_input_descriptor (StringRef identifier)
 
Contextcontext () const
 

Detailed Description

Definition at line 250 of file node_composite_glare.cc.

Member Function Documentation

◆ accumulate_ghosts_cpu()

◆ accumulate_ghosts_gpu()

◆ accumulate_streak()

void blender::nodes::node_composite_glare_cc::GlareOperation::accumulate_streak ( const Result & streak_result,
Result & accumulated_streaks_result )
inline

Definition at line 1184 of file node_composite_glare.cc.

◆ accumulate_streak_cpu()

void blender::nodes::node_composite_glare_cc::GlareOperation::accumulate_streak_cpu ( const Result & streak,
Result & accumulated_streaks )
inline

◆ accumulate_streak_gpu()

◆ adaptive_smooth_clamp()

float blender::nodes::node_composite_glare_cc::GlareOperation::adaptive_smooth_clamp ( const float x,
const float min_value,
const float max_value,
const float smoothness )
inline

◆ apply_streak_filter()

Result blender::nodes::node_composite_glare_cc::GlareOperation::apply_streak_filter ( const Result & highlights,
const float2 & streak_direction )
inline

Definition at line 1048 of file node_composite_glare.cc.

◆ apply_streak_filter_cpu()

Result blender::nodes::node_composite_glare_cc::GlareOperation::apply_streak_filter_cpu ( const Result & highlights,
const float2 & streak_direction )
inline

◆ apply_streak_filter_gpu()

◆ compute_base_ghost()

Result blender::nodes::node_composite_glare_cc::GlareOperation::compute_base_ghost ( const Result & highlights)
inline

◆ compute_base_ghost_cpu()

◆ compute_base_ghost_gpu()

◆ compute_bloom_chain_length()

int blender::nodes::node_composite_glare_cc::GlareOperation::compute_bloom_chain_length ( )
inline

Definition at line 1968 of file node_composite_glare.cc.

References blender::math::max(), and blender::math::reduce_min().

◆ compute_bloom_downsample_chain()

Array< Result > blender::nodes::node_composite_glare_cc::GlareOperation::compute_bloom_downsample_chain ( const Result & highlights,
int chain_length )
inline

◆ compute_bloom_downsample_cpu()

template<bool UseKarisAverage>
void blender::nodes::node_composite_glare_cc::GlareOperation::compute_bloom_downsample_cpu ( const Result & input,
Result & output )
inline

◆ compute_bloom_downsample_gpu()

void blender::nodes::node_composite_glare_cc::GlareOperation::compute_bloom_downsample_gpu ( const Result & input,
Result & output,
const bool use_karis_average )
inline

◆ compute_bloom_upsample_cpu()

void blender::nodes::node_composite_glare_cc::GlareOperation::compute_bloom_upsample_cpu ( const Result & input,
Result & output )
inline

◆ compute_bloom_upsample_gpu()

void blender::nodes::node_composite_glare_cc::GlareOperation::compute_bloom_upsample_gpu ( const Result & input,
Result & output )
inline

◆ compute_fog_glow_kernel_size()

int blender::nodes::node_composite_glare_cc::GlareOperation::compute_fog_glow_kernel_size ( const Result & highlights)
inline

◆ compute_ghost_color_modulators()

std::array< float4, 4 > blender::nodes::node_composite_glare_cc::GlareOperation::compute_ghost_color_modulators ( )
inline

Definition at line 1559 of file node_composite_glare.cc.

◆ compute_ghost_scales()

std::array< float, 4 > blender::nodes::node_composite_glare_cc::GlareOperation::compute_ghost_scales ( int iteration)
inline

Definition at line 1583 of file node_composite_glare.cc.

◆ compute_glare()

◆ compute_highlights()

Result blender::nodes::node_composite_glare_cc::GlareOperation::compute_highlights ( )
inline

◆ compute_streak_attenuation_factor()

float blender::nodes::node_composite_glare_cc::GlareOperation::compute_streak_attenuation_factor ( )
inline

Definition at line 1231 of file node_composite_glare.cc.

References MAX_GLARE_ITERATIONS.

◆ compute_streak_color_modulator()

float blender::nodes::node_composite_glare_cc::GlareOperation::compute_streak_color_modulator ( int iteration)
inline

Definition at line 1257 of file node_composite_glare.cc.

◆ compute_streak_direction()

float2 blender::nodes::node_composite_glare_cc::GlareOperation::compute_streak_direction ( int streak_index)
inline

Definition at line 1240 of file node_composite_glare.cc.

References angle(), blender::math::cos(), M_PI, and blender::math::sin().

◆ compute_streak_fade_factors()

float3 blender::nodes::node_composite_glare_cc::GlareOperation::compute_streak_fade_factors ( float iteration_magnitude)
inline

Definition at line 1273 of file node_composite_glare.cc.

◆ compute_streak_iteration_magnitude()

float blender::nodes::node_composite_glare_cc::GlareOperation::compute_streak_iteration_magnitude ( int iteration)
inline

Definition at line 1285 of file node_composite_glare.cc.

◆ execute()

◆ execute_bloom()

◆ execute_fog_glow()

◆ execute_ghost()

Result blender::nodes::node_composite_glare_cc::GlareOperation::execute_ghost ( const Result & highlights)
inline

Definition at line 1304 of file node_composite_glare.cc.

References blender::compositor::Result::release().

Referenced by compute_glare().

◆ execute_highlights_cpu()

◆ execute_highlights_gpu()

◆ execute_mix()

void blender::nodes::node_composite_glare_cc::GlareOperation::execute_mix ( const Result & glare_result)
inline

Definition at line 2173 of file node_composite_glare.cc.

References blender::compositor::Result::should_compute().

Referenced by execute().

◆ execute_mix_cpu()

void blender::nodes::node_composite_glare_cc::GlareOperation::execute_mix_cpu ( const Result & glare_result)
inline

◆ execute_mix_gpu()

◆ execute_simple_star()

Result blender::nodes::node_composite_glare_cc::GlareOperation::execute_simple_star ( const Result & highlights)
inline

◆ execute_simple_star_anti_diagonal_pass()

Result blender::nodes::node_composite_glare_cc::GlareOperation::execute_simple_star_anti_diagonal_pass ( const Result & highlights,
const Result & diagonal_pass_result )
inline

Definition at line 795 of file node_composite_glare.cc.

◆ execute_simple_star_anti_diagonal_pass_cpu()

◆ execute_simple_star_anti_diagonal_pass_gpu()

◆ execute_simple_star_axis_aligned()

Result blender::nodes::node_composite_glare_cc::GlareOperation::execute_simple_star_axis_aligned ( const Result & highlights)
inline

◆ execute_simple_star_diagonal()

Result blender::nodes::node_composite_glare_cc::GlareOperation::execute_simple_star_diagonal ( const Result & highlights)
inline

Definition at line 786 of file node_composite_glare.cc.

References blender::compositor::Result::release().

Referenced by execute_simple_star().

◆ execute_simple_star_diagonal_pass()

Result blender::nodes::node_composite_glare_cc::GlareOperation::execute_simple_star_diagonal_pass ( const Result & highlights)
inline

Definition at line 909 of file node_composite_glare.cc.

◆ execute_simple_star_diagonal_pass_cpu()

◆ execute_simple_star_diagonal_pass_gpu()

◆ execute_simple_star_horizontal_pass()

Result blender::nodes::node_composite_glare_cc::GlareOperation::execute_simple_star_horizontal_pass ( const Result & highlights)
inline

◆ execute_simple_star_horizontal_pass_cpu()

◆ execute_simple_star_horizontal_pass_gpu()

◆ execute_simple_star_vertical_pass()

Result blender::nodes::node_composite_glare_cc::GlareOperation::execute_simple_star_vertical_pass ( const Result & highlights,
const Result & horizontal_pass_result )
inline

◆ execute_simple_star_vertical_pass_cpu()

◆ execute_simple_star_vertical_pass_gpu()

◆ execute_streaks()

◆ get_big_ghost_radius()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_big_ghost_radius ( )
inline

Definition at line 1619 of file node_composite_glare.cc.

◆ get_clamp_highlights()

bool blender::nodes::node_composite_glare_cc::GlareOperation::get_clamp_highlights ( )
inline

◆ get_color_modulation()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_color_modulation ( )
inline

Definition at line 2374 of file node_composite_glare.cc.

References blender::math::clamp(), and get_input().

◆ get_corrected_tint()

float3 blender::nodes::node_composite_glare_cc::GlareOperation::get_corrected_tint ( )
inline

Definition at line 2312 of file node_composite_glare.cc.

◆ get_diagonal_star()

bool blender::nodes::node_composite_glare_cc::GlareOperation::get_diagonal_star ( )
inline

Definition at line 1011 of file node_composite_glare.cc.

References get_input().

Referenced by execute_simple_star().

◆ get_fade()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_fade ( )
inline

◆ get_ghost_color_modulation_factor()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_ghost_color_modulation_factor ( )
inline

Definition at line 1628 of file node_composite_glare.cc.

◆ get_glare_image_size()

int2 blender::nodes::node_composite_glare_cc::GlareOperation::get_glare_image_size ( )
inline

Definition at line 2383 of file node_composite_glare.cc.

Referenced by execute_highlights_cpu(), and execute_highlights_gpu().

◆ get_highlights_smoothness()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_highlights_smoothness ( )
inline

◆ get_max_highlights()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_max_highlights ( )
inline

◆ get_maximum_brightness()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_maximum_brightness ( )
inline

◆ get_normalization_scale()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_normalization_scale ( )
inline

◆ get_number_of_iterations()

int blender::nodes::node_composite_glare_cc::GlareOperation::get_number_of_iterations ( )
inline

◆ get_number_of_streaks()

int blender::nodes::node_composite_glare_cc::GlareOperation::get_number_of_streaks ( )
inline

Definition at line 1290 of file node_composite_glare.cc.

References blender::math::clamp(), and get_input().

◆ get_quality_factor()

int blender::nodes::node_composite_glare_cc::GlareOperation::get_quality_factor ( )
inline

Definition at line 2399 of file node_composite_glare.cc.

◆ get_saturation()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_saturation ( )
inline

Definition at line 2349 of file node_composite_glare.cc.

References get_input(), and blender::math::max().

◆ get_size()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_size ( )
inline

Definition at line 2359 of file node_composite_glare.cc.

References blender::math::clamp(), and get_input().

◆ get_small_ghost_radius()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_small_ghost_radius ( )
inline

Definition at line 1612 of file node_composite_glare.cc.

◆ get_streaks_angle()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_streaks_angle ( )
inline

Definition at line 1295 of file node_composite_glare.cc.

References get_input().

◆ get_strength()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_strength ( )
inline

Definition at line 2344 of file node_composite_glare.cc.

References get_input(), and blender::math::max().

◆ get_threshold()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_threshold ( )
inline

◆ get_tint()

float3 blender::nodes::node_composite_glare_cc::GlareOperation::get_tint ( )
inline

Definition at line 2354 of file node_composite_glare.cc.

References get_input(), and blender::VecBase< T, Size >::xyz().

◆ karis_brightness_weighted_sum()

float4 blender::nodes::node_composite_glare_cc::GlareOperation::karis_brightness_weighted_sum ( const float4 & color1,
const float4 & color2,
const float4 & color3,
const float4 & color4 )
inline

◆ NodeOperation()

blender::compositor::NodeOperation::NodeOperation ( Context & context,
DNode node )

Definition at line 39 of file node_operation.cc.

◆ should_compute_glare()

bool blender::nodes::node_composite_glare_cc::GlareOperation::should_compute_glare ( )
inline

◆ smooth_clamp()

float blender::nodes::node_composite_glare_cc::GlareOperation::smooth_clamp ( const float x,
const float min_value,
const float max_value,
const float min_smoothness,
const float max_smoothness )
inline

Definition at line 416 of file node_composite_glare.cc.

References smooth_max(), smooth_min(), and x.

Referenced by adaptive_smooth_clamp().

◆ smooth_max()

float blender::nodes::node_composite_glare_cc::GlareOperation::smooth_max ( const float a,
const float b,
const float smoothness )
inline

Definition at line 409 of file node_composite_glare.cc.

References b, and smooth_min().

Referenced by smooth_clamp().

◆ smooth_min()

float blender::nodes::node_composite_glare_cc::GlareOperation::smooth_min ( const float a,
const float b,
const float smoothness )
inline

Definition at line 400 of file node_composite_glare.cc.

References blender::math::abs(), b, blender::math::max(), and blender::math::min().

Referenced by smooth_clamp(), and smooth_max().

◆ write_glare_output()

void blender::nodes::node_composite_glare_cc::GlareOperation::write_glare_output ( const Result & glare)
inline

Definition at line 2250 of file node_composite_glare.cc.

Referenced by execute().

◆ write_glare_output_cpu()

void blender::nodes::node_composite_glare_cc::GlareOperation::write_glare_output_cpu ( const Result & glare)
inline

◆ write_glare_output_gpu()

◆ write_highlights_output()

void blender::nodes::node_composite_glare_cc::GlareOperation::write_highlights_output ( const Result & highlights)
inline

◆ write_highlights_output_cpu()

◆ write_highlights_output_gpu()


The documentation for this class was generated from the following file: