Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2014-02-03 03:09:09 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2014-02-03 03:09:09 +0400
commit487624a4be50f8e95045826aeff01cc9887fe51e (patch)
tree08248f2e112a6928bd0d2c3fbf6d98775d212222 /decoder/LAVVideo/pixconv
parent86bb12f059e99d1d1713ba6a76b5443bb6e60be6 (diff)
Support BT.2020 in the YCbCr -> RGB conversion
Diffstat (limited to 'decoder/LAVVideo/pixconv')
-rw-r--r--decoder/LAVVideo/pixconv/yuv2rgb.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/decoder/LAVVideo/pixconv/yuv2rgb.cpp b/decoder/LAVVideo/pixconv/yuv2rgb.cpp
index fe557c48..5e00f73e 100644
--- a/decoder/LAVVideo/pixconv/yuv2rgb.cpp
+++ b/decoder/LAVVideo/pixconv/yuv2rgb.cpp
@@ -651,6 +651,11 @@ RGBCoeffs* CLAVPixFmtConverter::getRGBCoeffs(int width, int height)
Kg = 0.590;
Kb = 0.110;
break;
+ case 4: // BT.2020
+ Kr = 0.2627;
+ Kg = 0.6780;
+ Kb = 0.0593;
+ break;
default:
DbgLog((LOG_TRACE, 10, L"::getRGBCoeffs(): Unknown color space: %d - defaulting to BT709", matrix));
case DXVA2_VideoTransferMatrix_BT709: