[vlc-commits] d3d11_quad: better names for color conversion matrices
Steve Lhomme
git at videolan.org
Mon May 28 13:25:35 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jan 15 15:23:23 2018 +0100| [c6770b174f0ff670e97716ced65373121a43a6f1] | committer: Steve Lhomme
d3d11_quad: better names for color conversion matrices
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6770b174f0ff670e97716ced65373121a43a6f1
---
modules/video_output/win32/d3d11_quad.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/modules/video_output/win32/d3d11_quad.c b/modules/video_output/win32/d3d11_quad.c
index 34001ec637..ce26e59269 100644
--- a/modules/video_output/win32/d3d11_quad.c
+++ b/modules/video_output/win32/d3d11_quad.c
@@ -690,21 +690,21 @@ int D3D11_SetupQuad(vlc_object_t *o, d3d11_device_t *d3d_dev, const video_format
/* matrices for studio range */
/* see https://en.wikipedia.org/wiki/YCbCr#ITU-R_BT.601_conversion, in studio range */
- static const FLOAT COLORSPACE_BT601_TO_FULL[4*4] = {
+ static const FLOAT COLORSPACE_BT601_YUV_TO_FULL_RGBA[4*4] = {
1.164383561643836f, 0.f, 1.596026785714286f, 0.f,
1.164383561643836f, -0.391762290094914f, -0.812967647237771f, 0.f,
1.164383561643836f, 2.017232142857142f, 0.f, 0.f,
0.f, 0.f, 0.f, 1.f,
};
/* see https://en.wikipedia.org/wiki/YCbCr#ITU-R_BT.709_conversion, in studio range */
- static const FLOAT COLORSPACE_BT709_TO_FULL[4*4] = {
+ static const FLOAT COLORSPACE_BT709_YUV_TO_FULL_RGBA[4*4] = {
1.164383561643836f, 0.f, 1.792741071428571f, 0.f,
1.164383561643836f, -0.213248614273730f, -0.532909328559444f, 0.f,
1.164383561643836f, 2.112401785714286f, 0.f, 0.f,
0.f, 0.f, 0.f, 1.f,
};
/* see https://en.wikipedia.org/wiki/YCbCr#ITU-R_BT.2020_conversion, in studio range */
- static const FLOAT COLORSPACE_BT2020_TO_FULL[4*4] = {
+ static const FLOAT COLORSPACE_BT2020_YUV_TO_FULL_RGBA[4*4] = {
1.164383561643836f, 0.000000000000f, 1.678674107143f, 0.f,
1.164383561643836f, -0.127007098661f, -0.440987687946f, 0.f,
1.164383561643836f, 2.141772321429f, 0.000000000000f, 0.f,
@@ -721,20 +721,20 @@ int D3D11_SetupQuad(vlc_object_t *o, d3d11_device_t *d3d_dev, const video_format
else {
switch (fmt->space){
case COLOR_SPACE_BT709:
- ppColorspace = COLORSPACE_BT709_TO_FULL;
+ ppColorspace = COLORSPACE_BT709_YUV_TO_FULL_RGBA;
break;
case COLOR_SPACE_BT2020:
- ppColorspace = COLORSPACE_BT2020_TO_FULL;
+ ppColorspace = COLORSPACE_BT2020_YUV_TO_FULL_RGBA;
break;
case COLOR_SPACE_BT601:
- ppColorspace = COLORSPACE_BT601_TO_FULL;
+ ppColorspace = COLORSPACE_BT601_YUV_TO_FULL_RGBA;
break;
default:
case COLOR_SPACE_UNDEF:
if( fmt->i_height > 576 )
- ppColorspace = COLORSPACE_BT709_TO_FULL;
+ ppColorspace = COLORSPACE_BT709_YUV_TO_FULL_RGBA;
else
- ppColorspace = COLORSPACE_BT601_TO_FULL;
+ ppColorspace = COLORSPACE_BT601_YUV_TO_FULL_RGBA;
break;
}
/* all matrices work in studio range and output in full range */
More information about the vlc-commits
mailing list