Blender V5.3
blender::nodes::node_composite_channel_key_cc Namespace Reference

Typedefs

using Color

Enumerations

enum class  RGBChannel : uint8_t { R = 0 , G = 1 , B = 2 }
enum class  HSVChannel : uint8_t { H = 0 , S = 1 , V = 2 }
enum class  YUVChannel : uint8_t { Y = 0 , U = 1 , V = 2 }
enum class  YCbCrChannel : uint8_t { Y = 0 , Cb = 1 , Cr = 2 }

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_init (bNodeTree *, bNode *node)
static int node_gpu_material (GPUMaterial *material, bNode *node, bNodeExecData *, GPUNodeStack *inputs, GPUNodeStack *outputs)
static float3 compute_channels (const float4 color, const CMPNodeChannelMatteColorSpace color_space)
static int get_channel_index (const CMPNodeChannelMatteColorSpace color_space, const int rgb_channel, const int hsv_channel, const int yuv_channel, const int ycc_channel)
static int2 compute_limit_channels (const CMPNodeChannelMatteLimitAlgorithm limit_method, const int matte_channel, const int limit_channel)
static void channel_key (const float4 color, const float minimum, const float maximum, const CMPNodeChannelMatteColorSpace color_space, const int rgb_key_channel, const int hsv_key_channel, const int yuv_key_channel, const int ycc_key_channel, const CMPNodeChannelMatteLimitAlgorithm limit_method, const int rgb_limit_channel, const int hsv_limit_channel, const int yuv_limit_channel, const int ycc_limit_channel, float4 &output_color, float &matte)
static void node_build_multi_function (nodes::NodeMultiFunctionBuilder &builder)
static void node_register ()

Variables

static const EnumPropertyItem color_space_items []
static const EnumPropertyItem rgb_channel_items []
static const EnumPropertyItem hsv_channel_items []
static const EnumPropertyItem yuv_channel_items []
static const EnumPropertyItem ycbcr_channel_items []
static const EnumPropertyItem limit_method_items []

Typedef Documentation

◆ Color

Definition at line 96 of file COM_result.hh.

Enumeration Type Documentation

◆ HSVChannel

Enumerator
H 
S 
V 

Definition at line 57 of file node_composite_channel_key.cc.

◆ RGBChannel

Enumerator
R 
G 
B 

Definition at line 44 of file node_composite_channel_key.cc.

◆ YCbCrChannel

Enumerator
Y 
Cb 
Cr 

Definition at line 83 of file node_composite_channel_key.cc.

◆ YUVChannel

Enumerator
Y 
U 
V 

Definition at line 70 of file node_composite_channel_key.cc.

Function Documentation

◆ channel_key()

void blender::nodes::node_composite_channel_key_cc::channel_key ( const float4 color,
const float minimum,
const float maximum,
const CMPNodeChannelMatteColorSpace color_space,
const int rgb_key_channel,
const int hsv_key_channel,
const int yuv_key_channel,
const int ycc_key_channel,
const CMPNodeChannelMatteLimitAlgorithm limit_method,
const int rgb_limit_channel,
const int hsv_limit_channel,
const int yuv_limit_channel,
const int ycc_limit_channel,
float4 & output_color,
float & matte )
static

◆ compute_channels()

◆ compute_limit_channels()

int2 blender::nodes::node_composite_channel_key_cc::compute_limit_channels ( const CMPNodeChannelMatteLimitAlgorithm limit_method,
const int matte_channel,
const int limit_channel )
static

◆ get_channel_index()

int blender::nodes::node_composite_channel_key_cc::get_channel_index ( const CMPNodeChannelMatteColorSpace color_space,
const int rgb_channel,
const int hsv_channel,
const int yuv_channel,
const int ycc_channel )
static

◆ node_build_multi_function()

◆ node_declare()

◆ node_gpu_material()

int blender::nodes::node_composite_channel_key_cc::node_gpu_material ( GPUMaterial * material,
bNode * node,
bNodeExecData * ,
GPUNodeStack * inputs,
GPUNodeStack * outputs )
static

◆ node_init()

void blender::nodes::node_composite_channel_key_cc::node_init ( bNodeTree * ,
bNode * node )
static

Definition at line 259 of file node_composite_channel_key.cc.

References node, and node_init().

Referenced by node_init(), and node_register().

◆ node_register()

Variable Documentation

◆ color_space_items

const EnumPropertyItem blender::nodes::node_composite_channel_key_cc::color_space_items[]
static
Initial value:
= {
{CMP_NODE_CHANNEL_MATTE_CS_RGB, "RGB", 0, N_("RGB"), N_("RGB (Red, Green, Blue) color space")},
"HSV",
0,
N_("HSV"),
N_("HSV (Hue, Saturation, Value) color space")},
"YUV",
0,
N_("YUV"),
N_("YUV (Y - luma, U V - chroma) color space")},
"YCC",
0,
N_("YCbCr"),
N_("YCbCr (Y - luma, Cb - blue-difference chroma, Cr - red-difference chroma) color space")},
{0, nullptr, 0, nullptr, nullptr},
}
@ CMP_NODE_CHANNEL_MATTE_CS_HSV
@ CMP_NODE_CHANNEL_MATTE_CS_YUV
@ CMP_NODE_CHANNEL_MATTE_CS_RGB
@ CMP_NODE_CHANNEL_MATTE_CS_YCC
#define N_(msgid)

Definition at line 24 of file node_composite_channel_key.cc.

Referenced by node_declare().

◆ hsv_channel_items

const EnumPropertyItem blender::nodes::node_composite_channel_key_cc::hsv_channel_items[]
static

◆ limit_method_items

const EnumPropertyItem blender::nodes::node_composite_channel_key_cc::limit_method_items[]
static
Initial value:
= {
"SINGLE",
0,
N_("Single"),
N_("Limit by single channel")},
"MAX",
0,
N_("Max"),
N_("Limit by maximum of other channels")},
{0, nullptr, 0, nullptr, nullptr},
}
@ CMP_NODE_CHANNEL_MATTE_LIMIT_ALGORITHM_SINGLE
@ CMP_NODE_CHANNEL_MATTE_LIMIT_ALGORITHM_MAX

Definition at line 96 of file node_composite_channel_key.cc.

Referenced by node_declare().

◆ rgb_channel_items

const EnumPropertyItem blender::nodes::node_composite_channel_key_cc::rgb_channel_items[]
static

◆ ycbcr_channel_items

const EnumPropertyItem blender::nodes::node_composite_channel_key_cc::ycbcr_channel_items[]
static

◆ yuv_channel_items

const EnumPropertyItem blender::nodes::node_composite_channel_key_cc::yuv_channel_items[]
static