summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/vl/vl_csc.h
blob: c3b87d279cfb4bf6817aed354a45eb12b8fe54d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef vl_csc_h
#define vl_csc_h

#include <pipe/p_compiler.h>

struct vl_procamp
{
   float brightness;
   float contrast;
   float saturation;
   float hue;
};

enum VL_CSC_COLOR_STANDARD
{
   VL_CSC_COLOR_STANDARD_IDENTITY,
   VL_CSC_COLOR_STANDARD_BT_601,
   VL_CSC_COLOR_STANDARD_BT_709
};

void vl_csc_get_matrix(enum VL_CSC_COLOR_STANDARD cs,
                       struct vl_procamp *procamp,
                       bool full_range,
                       float *matrix);

#endif /* vl_csc_h */