diff options
Diffstat (limited to 'source/blender/makesdna/DNA_color_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_color_types.h | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_color_types.h b/source/blender/makesdna/DNA_color_types.h index 2a6dcfcb64e..2881ec127c8 100644 --- a/source/blender/makesdna/DNA_color_types.h +++ b/source/blender/makesdna/DNA_color_types.h @@ -90,18 +90,55 @@ typedef enum CurveMappingPreset { CURVE_PRESET_MID9 } CurveMappingPreset; +/* histogram->mode */ +#define HISTO_MODE_LUMA 0 +#define HISTO_MODE_RGB 1 +#define HISTO_MODE_R 2 +#define HISTO_MODE_G 3 +#define HISTO_MODE_B 4 + typedef struct Histogram { int channels; int x_resolution; float data_r[256]; float data_g[256]; float data_b[256]; + float data_luma[256]; float xmax, ymax; + int mode; int height; +} Histogram; + +struct ImBuf; + +typedef struct Scopes { int ok; - int flag; + int sample_full; + int sample_lines; + float accuracy; + int wavefrm_mode; + float wavefrm_alpha; + float wavefrm_yfac; + int wavefrm_height; + float vecscope_alpha; + int vecscope_height; + float minmax[3][2]; + struct Histogram hist; + float *waveform_1; + float *waveform_2; + float *waveform_3; + float *vecscope; + int waveform_tot; int pad; -} Histogram; +} Scopes; + +/* scopes->wavefrm_mode */ +#define SCOPES_WAVEFRM_LUM 0 +#define SCOPES_WAVEFRM_RGB 1 +#define SCOPES_WAVEFRM_YCC_601 2 +#define SCOPES_WAVEFRM_YCC_709 3 +#define SCOPES_WAVEFRM_YCC_JPEG 4 + #endif |