Blender
V3.3
|
Go to the source code of this file.
ccl_device_inline float3 color_byte_to_float | ( | uchar4 | c | ) |
Definition at line 45 of file util/color.h.
References Freestyle::c, and make_float3.
ccl_device uchar4 color_float4_to_uchar4 | ( | float4 | c | ) |
Definition at line 33 of file util/color.h.
References Freestyle::a, usdtokens::b(), Freestyle::c, float_to_byte(), usdtokens::g(), make_uchar4, and r.
Referenced by attr_create_generic().
ccl_device uchar4 color_float_to_byte | ( | float3 | c | ) |
Definition at line 22 of file util/color.h.
References usdtokens::b(), Freestyle::c, float_to_byte(), usdtokens::g(), make_uchar4, and r.
ccl_device float3 color_highlight_compress | ( | float3 | color, |
ccl_private float3 * | variance | ||
) |
Definition at line 317 of file util/color.h.
References color, log(), one_float3(), and sqr().
ccl_device float3 color_highlight_uncompress | ( | float3 | color | ) |
Definition at line 326 of file util/color.h.
References color, exp(), and one_float3().
ccl_device float color_linear_to_srgb | ( | float | c | ) |
Definition at line 64 of file util/color.h.
References Freestyle::c, and powf.
Referenced by color_linear_to_srgb_v3(), and color_linear_to_srgb_v4().
ccl_device float3 color_linear_to_srgb_v3 | ( | float3 | c | ) |
Definition at line 290 of file util/color.h.
References Freestyle::c, color_linear_to_srgb(), and make_float3.
ccl_device float4 color_linear_to_srgb_v4 | ( | float4 | c | ) |
Definition at line 296 of file util/color.h.
References Freestyle::c, color_linear_to_srgb(), and make_float4.
Referenced by attr_create_generic().
ccl_device float color_srgb_to_linear | ( | float | c | ) |
Definition at line 56 of file util/color.h.
References Freestyle::c, and powf.
Referenced by color_srgb_to_linear_v3(), and color_srgb_to_linear_v4().
ccl_device float3 color_srgb_to_linear_v3 | ( | float3 | c | ) |
Definition at line 284 of file util/color.h.
References Freestyle::c, color_srgb_to_linear(), and make_float3.
ccl_device float4 color_srgb_to_linear_v4 | ( | float4 | c | ) |
Definition at line 302 of file util/color.h.
References Freestyle::c, color_srgb_to_linear(), make_float4, and r.
Referenced by patch_eval_uchar4(), subd_triangle_attribute_float4(), svm_image_texture(), and triangle_attribute_float4().
ccl_device_inline float4 color_uchar4_to_float4 | ( | uchar4 | c | ) |
Definition at line 50 of file util/color.h.
References Freestyle::c, and make_float4.
Referenced by patch_eval_uchar4(), subd_triangle_attribute_float4(), and triangle_attribute_float4().
CCL_NAMESPACE_BEGIN ccl_device uchar float_to_byte | ( | float | val | ) |
Definition at line 16 of file util/color.h.
Referenced by color_float4_to_uchar4(), and color_float_to_byte().
ccl_device float3 hsl_to_rgb | ( | float3 | hsl | ) |
Definition at line 184 of file util/color.h.
References blender::math::clamp(), fabsf, l, make_float3, float3::x, float3::y, and float3::z.
ccl_device float3 hsv_to_rgb | ( | float3 | hsv | ) |
Definition at line 114 of file util/color.h.
References floorf, make_float3, usdtokens::rgb(), t, v, float3::x, float3::y, and float3::z.
ccl_device float3 rgb_to_hsl | ( | float3 | rgb | ) |
Definition at line 155 of file util/color.h.
References fmaxf, l, make_float3, min, and usdtokens::rgb().
ccl_device float3 rgb_to_hsv | ( | float3 | rgb | ) |
Definition at line 72 of file util/color.h.
References Freestyle::c, fmaxf, make_float3, min, usdtokens::rgb(), and v.
ccl_device float3 xyY_to_xyz | ( | float | x, |
float | y, | ||
float | Y | ||
) |
Definition at line 205 of file util/color.h.