Blender V5.0
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)
math::AngleRadian compute_fog_glow_field_of_view ()
Result execute_sun_beams (Result &highlights)
Result execute_sun_beams_gpu (Result &highlights, const int max_steps)
const char * get_compositor_sun_beams_shader ()
Result execute_sun_beams_cpu (Result &highlights, const int max_steps)
float get_sample_position (const int i, const bool use_jitter, float jitter_factor, const float random_offset)
bool get_use_jitter ()
float get_jitter_factor ()
Result execute_kernel (const Result &highlights)
const Resultget_kernel_input ()
KernelDataType get_kernel_data_type ()
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 ()
CMPNodeGlareType get_type ()
float get_strength ()
float get_saturation ()
float3 get_tint ()
float get_size ()
int get_number_of_iterations ()
float get_fade ()
float get_color_modulation ()
float2 get_sun_position ()
int2 get_glare_image_size ()
int get_quality_factor ()
CMPNodeGlareQuality get_quality ()
 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 285 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

◆ 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

◆ apply_streak_filter_cpu()

◆ apply_streak_filter_gpu()

◆ compute_base_ghost()

◆ 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

◆ compute_bloom_downsample_chain()

◆ 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_field_of_view()

math::AngleRadian blender::nodes::node_composite_glare_cc::GlareOperation::compute_fog_glow_field_of_view ( )
inline

◆ compute_ghost_color_modulators()

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

◆ compute_ghost_scales()

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

Definition at line 1664 of file node_composite_glare.cc.

References get_number_of_iterations(), and i.

Referenced by accumulate_ghosts_cpu(), and accumulate_ghosts_gpu().

◆ 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

◆ compute_streak_color_modulator()

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

Definition at line 1343 of file node_composite_glare.cc.

References get_color_modulation().

Referenced by apply_streak_filter_cpu(), and apply_streak_filter_gpu().

◆ compute_streak_direction()

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

◆ compute_streak_fade_factors()

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

Definition at line 1359 of file node_composite_glare.cc.

References get_fade().

Referenced by apply_streak_filter_cpu(), and apply_streak_filter_gpu().

◆ compute_streak_iteration_magnitude()

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

Definition at line 1371 of file node_composite_glare.cc.

Referenced by apply_streak_filter_cpu(), and apply_streak_filter_gpu().

◆ execute()

◆ execute_bloom()

◆ execute_fog_glow()

◆ execute_ghost()

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

◆ execute_highlights_cpu()

◆ execute_highlights_gpu()

◆ execute_kernel()

◆ execute_mix()

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

◆ 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

◆ 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

◆ execute_simple_star_diagonal_pass()

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

◆ 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()

◆ execute_sun_beams()

◆ execute_sun_beams_cpu()

◆ execute_sun_beams_gpu()

◆ get_big_ghost_radius()

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

Definition at line 1700 of file node_composite_glare.cc.

References get_small_ghost_radius().

Referenced by compute_base_ghost().

◆ 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

◆ get_compositor_sun_beams_shader()

const char * blender::nodes::node_composite_glare_cc::GlareOperation::get_compositor_sun_beams_shader ( )
inline

Definition at line 2304 of file node_composite_glare.cc.

References get_use_jitter().

Referenced by execute_sun_beams_gpu().

◆ get_corrected_tint()

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

◆ get_diagonal_star()

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

Definition at line 1097 of file node_composite_glare.cc.

References get_input().

Referenced by execute_simple_star().

◆ get_fade()

◆ get_ghost_color_modulation_factor()

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

Definition at line 1709 of file node_composite_glare.cc.

References get_color_modulation().

Referenced by compute_ghost_color_modulators().

◆ get_glare_image_size()

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

◆ get_highlights_smoothness()

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

◆ get_jitter_factor()

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

◆ get_kernel_data_type()

KernelDataType blender::nodes::node_composite_glare_cc::GlareOperation::get_kernel_data_type ( )
inline

◆ get_kernel_input()

const Result & blender::nodes::node_composite_glare_cc::GlareOperation::get_kernel_input ( )
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()

◆ get_number_of_iterations()

◆ get_number_of_streaks()

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

Definition at line 1376 of file node_composite_glare.cc.

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

Referenced by compute_streak_direction(), and execute_streaks().

◆ get_quality()

CMPNodeGlareQuality blender::nodes::node_composite_glare_cc::GlareOperation::get_quality ( )
inline

◆ get_quality_factor()

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

Definition at line 2697 of file node_composite_glare.cc.

References get_quality().

Referenced by get_glare_image_size(), and get_small_ghost_radius().

◆ get_sample_position()

float blender::nodes::node_composite_glare_cc::GlareOperation::get_sample_position ( const int i,
const bool use_jitter,
float jitter_factor,
const float random_offset )
inline

Definition at line 2385 of file node_composite_glare.cc.

References i, and blender::math::safe_divide().

Referenced by execute_sun_beams_cpu().

◆ get_saturation()

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

◆ get_size()

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

◆ get_small_ghost_radius()

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

Definition at line 1693 of file node_composite_glare.cc.

References get_quality_factor().

Referenced by compute_base_ghost(), and get_big_ghost_radius().

◆ get_streaks_angle()

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

Definition at line 1381 of file node_composite_glare.cc.

References get_input().

Referenced by compute_streak_direction().

◆ get_strength()

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

Definition at line 2637 of file node_composite_glare.cc.

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

Referenced by get_corrected_tint().

◆ get_sun_position()

float2 blender::nodes::node_composite_glare_cc::GlareOperation::get_sun_position ( )
inline

Definition at line 2673 of file node_composite_glare.cc.

References get_input().

Referenced by execute_sun_beams_cpu(), and execute_sun_beams_gpu().

◆ 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 2647 of file node_composite_glare.cc.

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

Referenced by get_corrected_tint().

◆ get_type()

CMPNodeGlareType blender::nodes::node_composite_glare_cc::GlareOperation::get_type ( )
inline

◆ get_use_jitter()

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

◆ 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()

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 499 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 492 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 483 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

◆ write_glare_output_cpu()

◆ 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: