Fix accuracy issues in YUV to RGB conversion of 10-bit content in D3D11VA

See #1667 for details.
This commit is contained in:
Cameron Gutman
2025-11-01 18:45:02 -05:00
parent beadf7819b
commit 50223dbdb8
3 changed files with 29 additions and 36 deletions
Binary file not shown.
+4 -4
View File
@@ -2,14 +2,14 @@
static const min16float3x3 cscMatrix =
{
1.1644, 1.1644, 1.1644,
0.0, -0.1874, 2.1418,
1.6781, -0.6505, 0.0,
1.1678, 1.1678, 1.1678,
0.0, -0.1879, 2.1481,
1.6836, -0.6524, 0.0,
};
static const min16float3 offsets =
{
16.0 / 255.0, 128.0 / 255.0, 128.0 / 255.0
64.0 / 1023.0, 512.0 / 1023.0, 512.0 / 1023.0
};
#include "d3d11_video_pixel_end.hlsli"