diff options
Diffstat (limited to 'include/color_conversion.h')
-rw-r--r-- | include/color_conversion.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/color_conversion.h b/include/color_conversion.h index d84d548..d8e660e 100644 --- a/include/color_conversion.h +++ b/include/color_conversion.h @@ -5,12 +5,18 @@ #include "vec2.h" typedef enum { + GSR_COLOR_RANGE_LIMITED, + GSR_COLOR_RANGE_FULL +} gsr_color_range; + +typedef enum { GSR_SOURCE_COLOR_RGB } gsr_source_color; typedef enum { GSR_DESTINATION_COLOR_BGR, - GSR_DESTINATION_COLOR_NV12 /* YUV420, BT709, limited */ + GSR_DESTINATION_COLOR_NV12, /* YUV420, BT709, 8-bit */ + GSR_DESTINATION_COLOR_P010 /* YUV420, BT2020, 10-bit */ } gsr_destination_color; typedef struct { @@ -21,6 +27,8 @@ typedef struct { unsigned int destination_textures[2]; int num_destination_textures; + + gsr_color_range color_range; } gsr_color_conversion_params; typedef struct { |