From 2bdb9802f9ec3e0cce0421acb68ccaf5fb77a34f Mon Sep 17 00:00:00 2001 From: SuperSodaSea Date: Fri, 8 Apr 2022 16:22:48 +0800 Subject: [PATCH] Replace YUV2RGB with correct BT.709 matrix --- src/src/render-engine/webgl-420p.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/src/render-engine/webgl-420p.js b/src/src/render-engine/webgl-420p.js index f994ef7c..be0c623a 100644 --- a/src/src/render-engine/webgl-420p.js +++ b/src/src/render-engine/webgl-420p.js @@ -77,9 +77,9 @@ function setupCanvas(canvas, options) { "uniform sampler2D VTexture;", "const mat4 YUV2RGB = mat4", "(", - " 1.1643828125, 0, 1.59602734375, -.87078515625,", - " 1.1643828125, -.39176171875, -.81296875, .52959375,", - " 1.1643828125, 2.017234375, 0, -1.081390625,", + " 1.1643835616, 0, 1.7927410714, -0.9729450750,", + " 1.1643835616, -0.2132486143, -0.5329093286, 0.3014826655,", + " 1.1643835616, 2.1124017857, 0, -1.1334022179,", " 0, 0, 0, 1", ");", "void main(void) {", @@ -229,4 +229,4 @@ module.exports = { releaseContext : releaseContext }; -/* Player controls Ends Here */ \ No newline at end of file +/* Player controls Ends Here */