Blender  V3.3
BLI_math_color.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3 
4 #pragma once
5 
10 #include "BLI_math_inline.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 /* -------------------------------------------------------------------- */
20 /* YCbCr */
21 #define BLI_YCC_ITU_BT601 0
22 #define BLI_YCC_ITU_BT709 1
23 #define BLI_YCC_JFIF_0_255 2
24 
25 /* YUV */
26 #define BLI_YUV_ITU_BT601 0
27 #define BLI_YUV_ITU_BT709 1
28 
31 /* -------------------------------------------------------------------- */
35 void hsv_to_rgb(float h, float s, float v, float *r_r, float *r_g, float *r_b);
36 void hsv_to_rgb_v(const float hsv[3], float r_rgb[3]);
37 void hsl_to_rgb(float h, float s, float l, float *r_r, float *r_g, float *r_b);
38 void hsl_to_rgb_v(const float hsl[3], float r_rgb[3]);
39 void hex_to_rgb(const char *hexcol, float *r_r, float *r_g, float *r_b);
40 void yuv_to_rgb(float y, float u, float v, float *r_r, float *r_g, float *r_b, int colorspace);
41 void ycc_to_rgb(float y, float cb, float cr, float *r_r, float *r_g, float *r_b, int colorspace);
42 void cpack_to_rgb(unsigned int col, float *r_r, float *r_g, float *r_b);
43 
46 /* -------------------------------------------------------------------- */
50 void rgb_to_yuv(float r, float g, float b, float *r_y, float *r_u, float *r_v, int colorspace);
56 void rgb_to_ycc(float r, float g, float b, float *r_y, float *r_cb, float *r_cr, int colorspace);
57 void rgb_to_hsv(float r, float g, float b, float *r_h, float *r_s, float *r_v);
58 void rgb_to_hsv_v(const float rgb[3], float r_hsv[3]);
59 void rgb_to_hsl(float r, float g, float b, float *r_h, float *r_s, float *r_l);
60 void rgb_to_hsl_v(const float rgb[3], float r_hsl[3]);
61 void rgb_to_hsl_compat(float r, float g, float b, float *r_h, float *r_s, float *r_l);
62 void rgb_to_hsl_compat_v(const float rgb[3], float r_hsl[3]);
63 void rgb_to_hsv_compat(float r, float g, float b, float *r_h, float *r_s, float *r_v);
64 void rgb_to_hsv_compat_v(const float rgb[3], float r_hsv[3]);
65 unsigned int rgb_to_cpack(float r, float g, float b);
72 unsigned int hsv_to_cpack(float h, float s, float v);
73 
76 /* -------------------------------------------------------------------- */
80 float srgb_to_linearrgb(float c);
81 float linearrgb_to_srgb(float c);
82 
83 MINLINE void srgb_to_linearrgb_v3_v3(float linear[3], const float srgb[3]);
84 MINLINE void linearrgb_to_srgb_v3_v3(float srgb[3], const float linear[3]);
85 
86 MINLINE void srgb_to_linearrgb_v4(float linear[4], const float srgb[4]);
87 MINLINE void linearrgb_to_srgb_v4(float srgb[4], const float linear[4]);
88 
89 MINLINE void srgb_to_linearrgb_predivide_v4(float linear[4], const float srgb[4]);
90 MINLINE void linearrgb_to_srgb_predivide_v4(float srgb[4], const float linear[4]);
91 
92 MINLINE unsigned short to_srgb_table_lookup(float f);
93 MINLINE void linearrgb_to_srgb_ushort4(unsigned short srgb[4], const float linear[4]);
94 MINLINE void srgb_to_linearrgb_uchar4(float linear[4], const unsigned char srgb[4]);
95 MINLINE void srgb_to_linearrgb_uchar4_predivide(float linear[4], const unsigned char srgb[4]);
96 
97 MINLINE void linearrgb_to_srgb_uchar3(unsigned char srgb[3], const float linear[3]);
98 MINLINE void linearrgb_to_srgb_uchar4(unsigned char srgb[4], const float linear[4]);
99 
100 void BLI_init_srgb_conversion(void);
101 
104 /* -------------------------------------------------------------------- */
108 MINLINE void premul_to_straight_v4_v4(float straight[4], const float premul[4]);
109 MINLINE void premul_to_straight_v4(float color[4]);
110 MINLINE void straight_to_premul_v4_v4(float premul[4], const float straight[4]);
111 MINLINE void straight_to_premul_v4(float color[4]);
112 MINLINE void straight_uchar_to_premul_float(float result[4], const unsigned char color[4]);
113 MINLINE void premul_float_to_straight_uchar(unsigned char *result, const float color[4]);
114 
117 /* -------------------------------------------------------------------- */
129 int constrain_rgb(float *r, float *g, float *b);
130 void minmax_rgb(short c[3]);
134 void hsv_clamp_v(float hsv[3], float v_max);
135 
139 void rgb_float_set_hue_float_offset(float rgb[3], float hue_offset);
143 void rgb_byte_set_hue_float_offset(unsigned char rgb[3], float hue_offset);
144 
145 void rgb_uchar_to_float(float r_col[3], const unsigned char col_ub[3]);
146 void rgba_uchar_to_float(float r_col[4], const unsigned char col_ub[4]);
147 void rgb_float_to_uchar(unsigned char r_col[3], const float col_f[3]);
148 void rgba_float_to_uchar(unsigned char r_col[4], const float col_f[4]);
149 
164 MINLINE float rgb_to_grayscale(const float rgb[3]);
165 MINLINE unsigned char rgb_to_grayscale_byte(const unsigned char rgb[3]);
166 
167 MINLINE int compare_rgb_uchar(const unsigned char a[3], const unsigned char b[3], int limit);
168 
172 MINLINE float dither_random_value(float s, float t);
174  unsigned char b[3], const float f[3], float dither, float s, float t);
175 
176 #define rgba_char_args_set_fl(col, r, g, b, a) \
177  rgba_char_args_set(col, (r)*255, (g)*255, (b)*255, (a)*255)
178 
179 #define rgba_float_args_set_ch(col, r, g, b, a) \
180  rgba_float_args_set(col, (r) / 255.0f, (g) / 255.0f, (b) / 255.0f, (a) / 255.0f)
181 
183  unsigned char col[4], unsigned char r, unsigned char g, unsigned char b, unsigned char a);
184 MINLINE void rgba_float_args_set(float col[4], float r, float g, float b, float a);
186  unsigned char col[4], unsigned char r, unsigned char g, unsigned char b, unsigned char a);
187 MINLINE void cpack_cpy_3ub(unsigned char r_col[3], unsigned int pack);
188 
191 /* -------------------------------------------------------------------- */
195 void lift_gamma_gain_to_asc_cdl(const float *lift,
196  const float *gamma,
197  const float *gain,
198  float *offset,
199  float *slope,
200  float *power);
201 
202 #if BLI_MATH_DO_INLINE
203 # include "intern/math_color_inline.c"
204 #endif
205 
208 #ifdef __cplusplus
209 }
210 #endif
void hsv_to_rgb_v(const float hsv[3], float r_rgb[3])
Definition: math_color.c:49
MINLINE void straight_to_premul_v4_v4(float premul[4], const float straight[4])
void rgb_to_hsv_v(const float rgb[3], float r_hsv[3])
Definition: math_color.c:232
MINLINE void srgb_to_linearrgb_uchar4_predivide(float linear[4], const unsigned char srgb[4])
MINLINE void srgb_to_linearrgb_v3_v3(float linear[3], const float srgb[3])
void rgb_to_hsl(float r, float g, float b, float *r_h, float *r_s, float *r_l)
Definition: math_color.c:237
void rgb_to_hsl_compat(float r, float g, float b, float *r_h, float *r_s, float *r_l)
Definition: math_color.c:266
void rgb_to_hsv_compat_v(const float rgb[3], float r_hsv[3])
Definition: math_color.c:318
MINLINE void rgba_float_args_set(float col[4], float r, float g, float b, float a)
MINLINE unsigned char rgb_to_grayscale_byte(const unsigned char rgb[3])
unsigned int rgb_to_cpack(float r, float g, float b)
Definition: math_color.c:348
MINLINE void straight_uchar_to_premul_float(float result[4], const unsigned char color[4])
MINLINE void premul_to_straight_v4(float color[4])
int constrain_rgb(float *r, float *g, float *b)
Definition: math_color.c:445
MINLINE void straight_to_premul_v4(float color[4])
MINLINE void rgba_uchar_args_set(unsigned char col[4], unsigned char r, unsigned char g, unsigned char b, unsigned char a)
void rgb_to_hsv(float r, float g, float b, float *r_h, float *r_s, float *r_v)
Definition: math_color.c:208
MINLINE void linearrgb_to_srgb_ushort4(unsigned short srgb[4], const float linear[4])
MINLINE float rgb_to_grayscale(const float rgb[3])
unsigned int hsv_to_cpack(float h, float s, float v)
Definition: math_color.c:332
MINLINE void linearrgb_to_srgb_predivide_v4(float srgb[4], const float linear[4])
void hsl_to_rgb_v(const float hsl[3], float r_rgb[3])
Definition: math_color.c:54
MINLINE void rgba_uchar_args_test_set(unsigned char col[4], unsigned char r, unsigned char g, unsigned char b, unsigned char a)
void BLI_init_srgb_conversion(void)
Definition: math_color.c:567
void ycc_to_rgb(float y, float cb, float cr, float *r_r, float *r_g, float *r_b, int colorspace)
Definition: math_color.c:142
void hsv_to_rgb(float h, float s, float v, float *r_r, float *r_g, float *r_b)
Definition: math_color.c:13
void minmax_rgb(short c[3])
Definition: math_color.c:421
MINLINE void srgb_to_linearrgb_uchar4(float linear[4], const unsigned char srgb[4])
void rgb_to_ycc(float r, float g, float b, float *r_y, float *r_cb, float *r_cr, int colorspace)
Definition: math_color.c:107
void rgb_to_yuv(float r, float g, float b, float *r_y, float *r_u, float *r_v, int colorspace)
Definition: math_color.c:59
void rgb_to_hsv_compat(float r, float g, float b, float *r_h, float *r_s, float *r_v)
Definition: math_color.c:297
MINLINE void srgb_to_linearrgb_v4(float linear[4], const float srgb[4])
void rgba_uchar_to_float(float r_col[4], const unsigned char col_ub[4])
Definition: math_color.c:383
void rgba_float_to_uchar(unsigned char r_col[4], const float col_f[4])
Definition: math_color.c:396
MINLINE void float_to_byte_dither_v3(unsigned char b[3], const float f[3], float dither, float s, float t)
MINLINE void premul_to_straight_v4_v4(float straight[4], const float premul[4])
void hsv_clamp_v(float hsv[3], float v_max)
Definition: math_color.c:323
MINLINE void linearrgb_to_srgb_uchar4(unsigned char srgb[4], const float linear[4])
void hsl_to_rgb(float h, float s, float l, float *r_r, float *r_g, float *r_b)
Definition: math_color.c:30
void rgb_byte_set_hue_float_offset(unsigned char rgb[3], float hue_offset)
Definition: math_color.c:503
float srgb_to_linearrgb(float c)
Definition: math_color.c:403
void hex_to_rgb(const char *hexcol, float *r_r, float *r_g, float *r_b)
Definition: math_color.c:177
MINLINE void linearrgb_to_srgb_v3_v3(float srgb[3], const float linear[3])
MINLINE void cpack_cpy_3ub(unsigned char r_col[3], unsigned int pack)
float linearrgb_to_srgb(float c)
Definition: math_color.c:412
void lift_gamma_gain_to_asc_cdl(const float *lift, const float *gamma, const float *gain, float *offset, float *slope, float *power)
Definition: math_color.c:464
MINLINE void linearrgb_to_srgb_v4(float srgb[4], const float linear[4])
void yuv_to_rgb(float y, float u, float v, float *r_r, float *r_g, float *r_b, int colorspace)
Definition: math_color.c:83
void rgb_to_hsl_v(const float rgb[3], float r_hsl[3])
Definition: math_color.c:292
void rgb_uchar_to_float(float r_col[3], const unsigned char col_ub[3])
Definition: math_color.c:376
MINLINE int compare_rgb_uchar(const unsigned char a[3], const unsigned char b[3], int limit)
MINLINE void linearrgb_to_srgb_uchar3(unsigned char srgb[3], const float linear[3])
void cpack_to_rgb(unsigned int col, float *r_r, float *r_g, float *r_b)
Definition: math_color.c:369
void rgb_to_hsl_compat_v(const float rgb[3], float r_hsl[3])
Definition: math_color.c:287
MINLINE unsigned short to_srgb_table_lookup(float f)
void rgb_float_to_uchar(unsigned char r_col[3], const float col_f[3])
Definition: math_color.c:391
MINLINE void srgb_to_linearrgb_predivide_v4(float linear[4], const float srgb[4])
MINLINE float dither_random_value(float s, float t)
void rgb_float_set_hue_float_offset(float rgb[3], float hue_offset)
Definition: math_color.c:486
MINLINE void premul_float_to_straight_uchar(unsigned char *result, const float color[4])
#define MINLINE
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble GLdouble r _GL_VOID_RET _GL_VOID GLfloat GLfloat r _GL_VOID_RET _GL_VOID GLint GLint r _GL_VOID_RET _GL_VOID GLshort GLshort r _GL_VOID_RET _GL_VOID GLdouble GLdouble r
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble t
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert a color
ATTR_WARN_UNUSED_RESULT const BMLoop * l
ATTR_WARN_UNUSED_RESULT const BMVert * v
uint col
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
static unsigned c
Definition: RandGen.cpp:83
static unsigned a[3]
Definition: RandGen.cpp:78
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
static const pxr::TfToken g("g", pxr::TfToken::Immortal)
static const pxr::TfToken rgb("rgb", pxr::TfToken::Immortal)