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>2012-01-10 00:43:17 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2012-01-10 02:27:59 +0400
commite605e2d9acdae0bcdf7871dd8f7afa2c465ffc5e (patch)
tree0a72a9fda8a0f0bc666b5e95d1c06babff9d7919 /decoder/LAVVideo/pixconv
parent62650791633ee2f726cc168f7b2eda2c4741983d (diff)
Add support for the FCC matrix in the rgb converter.
The matrix can be converted 100% correctly in the RGB converter, however due to a lack for a id in the dxva2 types, it'll be flagged as BT.601 to the outside world.
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 d836a1e0..ead28df5 100644
--- a/decoder/LAVVideo/pixconv/yuv2rgb.cpp
+++ b/decoder/LAVVideo/pixconv/yuv2rgb.cpp
@@ -474,6 +474,11 @@ RGBCoeffs* CLAVPixFmtConverter::getRGBCoeffs(int width, int height)
Kg = 0.7010;
Kb = 0.0870;
break;
+ case 6: // FCC
+ Kr = 0.300;
+ Kg = 0.590;
+ Kb = 0.110;
+ break;
default:
DbgLog((LOG_TRACE, 10, L"::getRGBCoeffs(): Unknown color space: %d - defaulting to BT709", matrix));
case DXVA2_VideoTransferMatrix_BT709: