Blender V4.3
DNA_color_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2006 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "DNA_defs.h"
12#include "DNA_vec_types.h"
13
14/* general defines for kernel functions */
15#define CM_RESOL 32
16#define CM_TABLE 256
17#define CM_TABLEDIV (1.0f / 256.0f)
18
19#define CM_TOT 4
20
21#define GPU_SKY_WIDTH 512
22#define GPU_SKY_HEIGHT 128
23
24typedef struct CurveMapPoint {
25 float x, y;
27 short flag, shorty;
29
31enum {
32 CUMA_SELECT = (1 << 0),
36 CUMA_REMOVE = (1 << 3),
37};
38
62
63typedef struct CurveMapping {
65 int flag, cur;
66 int preset;
68
71
75 float black[3], white[3];
77 float bwmul[3];
78
80 float sample[3];
81
82 short tone;
83 char _pad[6];
85
97
111
117
119enum {
126};
127
128enum {
129 HISTO_FLAG_LINE = (1 << 0),
131};
132
133typedef struct Histogram {
136 float data_luma[256];
137 float data_r[256];
138 float data_g[256];
139 float data_b[256];
140 float data_a[256];
141 float xmax, ymax;
142 short mode;
143 short flag;
145
147 float co[2][2];
149
171
173enum {
180};
181
183enum {
186};
187
207
211
216
218enum {
222};
eCurveMappingFlags
@ CUMA_PREMULLED
@ CUMA_EXTEND_EXTRAPOLATE
@ CUMA_DO_CLIP
@ CUMA_DRAW_CFRA
@ CUMA_DRAW_SAMPLE
@ CUMA_USE_WRAPPING
struct CurveMapping CurveMapping
struct Histogram Histogram
@ HISTO_MODE_B
@ HISTO_MODE_G
@ HISTO_MODE_LUMA
@ HISTO_MODE_RGB
@ HISTO_MODE_ALPHA
@ HISTO_MODE_R
@ SCOPES_WAVEFRM_YCC_JPEG
@ SCOPES_WAVEFRM_RGB
@ SCOPES_WAVEFRM_YCC_601
@ SCOPES_WAVEFRM_YCC_709
@ SCOPES_WAVEFRM_LUMA
@ SCOPES_WAVEFRM_RGB_PARADE
@ HISTO_FLAG_LINE
@ HISTO_FLAG_SAMPLELINE
struct CurveMap CurveMap
struct ColorManagedViewSettings ColorManagedViewSettings
struct CurveMapPoint CurveMapPoint
@ CUMA_HANDLE_AUTO_ANIM
@ CUMA_SELECT
@ CUMA_REMOVE
@ CUMA_HANDLE_VECTOR
struct Scopes Scopes
@ SCOPES_VECSCOPE_LUMA
@ SCOPES_VECSCOPE_RGB
@ COLORMANAGE_VIEW_USE_WHITE_BALANCE
@ COLORMANAGE_VIEW_USE_CURVES
@ COLORMANAGE_VIEW_USE_HDR
struct ColorManagedColorspaceSettings ColorManagedColorspaceSettings
struct ColorManagedDisplaySettings ColorManagedDisplaySettings
eCurveMappingTone
@ CURVE_TONE_STANDARD
@ CURVE_TONE_FILMLIKE
eCurveMappingPreset
@ CURVE_PRESET_ROOT
@ CURVE_PRESET_GAUSS
@ CURVE_PRESET_SMOOTH
@ CURVE_PRESET_CONSTANT_MEDIAN
@ CURVE_PRESET_ROUND
@ CURVE_PRESET_MID8
@ CURVE_PRESET_LINE
@ CURVE_PRESET_SHARP
@ CURVE_PRESET_BELL
@ CURVE_PRESET_MAX
struct CurveMapping * curve_mapping
CurveMapPoint * table
short flag DNA_DEPRECATED
char _pad[6]
CurveMapPoint * curve
CurveMapPoint * premultable
float ext_out[2]
float ext_in[2]
short default_handle_type
float premul_ext_out[2]
float premul_ext_in[2]
CurveMap cm[4]
float data_a[256]
float data_luma[256]
float data_r[256]
float co[2][2]
float data_b[256]
float data_g[256]
int wavefrm_height
int vecscope_mode
float wavefrm_yfac
float * waveform_3
float * waveform_2
int vecscope_height
float wavefrm_alpha
float * vecscope_rgb
float minmax[3][2]
float vecscope_alpha
float * waveform_1
float * vecscope
float accuracy
struct Histogram hist
uint8_t flag
Definition wm_window.cc:138