Monado OpenXR Runtime
Loading...
Searching...
No Matches
xrt_layer_chroma_key_data Struct Reference

Chroma key parameters in HSV space. More...

#include <xrt/xrt_compositor.h>

Collaboration diagram for xrt_layer_chroma_key_data:

Data Fields

struct xrt_colour_hsv_f32 hsv_min
 < Minimum HSV bounds
 
struct xrt_colour_hsv_f32 hsv_max
 Maximum HSV bounds.
 
float curve
 Power curve for alpha falloff (1.0 = linear)
 
float despill
 Despill strength (0.0 = none, 1.0 = full)
 

Detailed Description

Chroma key parameters in HSV space.

Alpha 0-1 interpolates between hsv_min and hsv_max with curve as a power curve defined by the curve exponent.

Used for projection layers.

Field Documentation

◆ curve

float xrt_layer_chroma_key_data::curve

Power curve for alpha falloff (1.0 = linear)

Referenced by can_do_one_projection_layer_fast_path(), and do_cs_projection_layer().

◆ despill

float xrt_layer_chroma_key_data::despill

Despill strength (0.0 = none, 1.0 = full)

Referenced by do_cs_projection_layer().

◆ hsv_max

struct xrt_colour_hsv_f32 xrt_layer_chroma_key_data::hsv_max

Maximum HSV bounds.

Referenced by do_cs_projection_layer().

◆ hsv_min

struct xrt_colour_hsv_f32 xrt_layer_chroma_key_data::hsv_min

< Minimum HSV bounds

Referenced by do_cs_projection_layer().


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