From patchwork Mon Aug 8 12:25:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 37185 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:92a9:b0:8d:7f3b:94fc with SMTP id q41csp1801373pzg; Mon, 8 Aug 2022 05:26:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR7HW4Hsq5BMVBqjWOK5/vam4Zx/b5L3y6vcoI5w9YEE2iHKqfuNzNw8EtFFdgV/tU/jY45c X-Received: by 2002:a17:906:8a57:b0:730:8b50:610a with SMTP id gx23-20020a1709068a5700b007308b50610amr13530407ejc.557.1659961569597; Mon, 08 Aug 2022 05:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659961569; cv=none; d=google.com; s=arc-20160816; b=TBkxABQhdJFDTDqArFcjAFH3RlGABono2B9I+GzQdCd3/Tjy40le5yb54o5Wxv6k6t dbkkERV8YtN1t1M5CoBN1Dsvqoil/JsahWIvXdUJTM1/lIO+3zOMjBXtCJZhC8OdZxU8 WVFCQT7DexbcBpCeQZ8vQOtWNqCWRLNwMGozex+Ph9UmnuPOc4G8SotpE2x53zMd6OKX BOP57yGYfRI3kfqY3NWJNOx9QmI5bBLV6JsCyHCQF9Mx+DfGp5qemS9S2Gu9I3okdceI pMnMqAkd9qJeRGrdMJzf8iJpT20dX9DWEUBQQCKyOmCEXU8kiu5QY1uJpDIa3JBmymN0 MvYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=e7riCki2ZxhJdy3UXgw2rdKysrNUOCrj3BGPwkmFGgU=; b=JDOT/jEWvZWqjX3p3A0WlnognHrwSHdK5cz2OVsp0GcicV+flDja9F7PH1b4hTrFe0 KlPjVX9LZ6sUwoJ1ne/TZaB0oL1Vcd3Z7C4cY8wFALkhIjL5W8rcHeUP6GkR3CHRVBZM 3iYZFIdk0180XXVd4llhYZXY/0ZBK/FZUJmpherJtZp9yRDOny4Lr0Ow13eFB7KcvQ4l xUISzAXk83YvFH+eRR7f1IwocIj/lGEaJ1V6tJ8rI3uWemAPfSahMlOeJ7z7ui3KK9Tf C+HbxASNglI/CIBZ+Q5hx714cncvoqNw25AiWH0hJSxAA2JKzllf1n4kjuzXkTyJF7n5 VIig== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=lX8w5+aL; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y69-20020a50bb4b000000b0043e03ae7e21si6375305ede.304.2022.08.08.05.26.08; Mon, 08 Aug 2022 05:26:09 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=lX8w5+aL; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8864D68B737; Mon, 8 Aug 2022 15:26:04 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C848E68B050 for ; Mon, 8 Aug 2022 15:25:57 +0300 (EEST) Received: by mail-vs1-f42.google.com with SMTP id 66so8631321vse.4 for ; Mon, 08 Aug 2022 05:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc; bh=YZifv4ytUqDMXOoHIVeeXFVhjOyfZguXL6L72JGiMrk=; b=lX8w5+aLmNJSXUwloy7JIosLtay2CQep8NpiZzgq61dvuNRNTp8g+opJW+N2yxN/S5 vSsopZoN1Szk82FxWABwjYZVAjkk40OciDjIiv5Fzr2zD4xgyMwJPv5ieWdjX+3QaEMu DUj6aetfW2OkwZq5pHotVf24fFaRUmUvpY/0CEutYMcUwsax8cRLb9OunmbUMbB8VuD/ Y7ii+R2zFKrY0Yjp3Thn2KMl4Yf5JI4OltmsFcrHVjWQc7mAa8H03KW2Y/PNuSmrCqJl aofGm+EO/661/K97VS9U6oMq2W6AXdTaGx+ImIy/sew/lMEdqFxaL4cpjbhDx/oDUKfK ynEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc; bh=YZifv4ytUqDMXOoHIVeeXFVhjOyfZguXL6L72JGiMrk=; b=xx97Vk8SjFLKI8CGdPYoqD8jFJhKvmVIbhe9n/Dd7CJxMedC4E5p5U5oO5vrvxmhHg sqWL+i1Pk15qqGsBZ8wOfYwtrZQrZeNe4ELMfc3ULTl9h+OQa4U+iM5IyxzpyuGHLwlU Q/UK5jtCRZS6tJfP+P8WhjCZ3w9D4mdvPDEE4x0bv6nTBRp+f3ThhU6FtqhYzR+akHeh nT7kCVjLrtF3AOHuCxHProh7ZLOC6+BBSOUxhq5gwoce/YiIpu41FnxKESutimUYcsx3 S+wLtfR5oL+bwC7I5ZMD9vQgiQsuOFwRy5Vfs9bvjK6Yw9GtKP1QZfvEtYKtLvwTJ4X+ Dt4g== X-Gm-Message-State: ACgBeo2BSfmvUervHItBn+t1ubZuf6Ms9uoBTIhCDEydvQKGa96PlUCv b0aN7fN5oifSKp8mzNWThiNPJs/sMmw= X-Received: by 2002:a67:b009:0:b0:357:af40:6b7e with SMTP id z9-20020a67b009000000b00357af406b7emr7247229vse.67.1659961555081; Mon, 08 Aug 2022 05:25:55 -0700 (PDT) Received: from localhost.localdomain ([186.136.131.204]) by smtp.gmail.com with ESMTPSA id b2-20020ac5c0c2000000b003771f14d2f8sm8333244vkk.3.2022.08.08.05.25.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 05:25:54 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Mon, 8 Aug 2022 09:25:33 -0300 Message-Id: <20220808122533.10308-1-jamrial@gmail.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] swscale/output: fix reading chroma values when generating vuya output X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 1C+oevrd1xFa Signed-off-by: James Almer --- libswscale/output.c | 4 ++-- tests/ref/fate/filter-pixdesc-vuya | 2 +- tests/ref/fate/filter-pixfmts-copy | 2 +- tests/ref/fate/filter-pixfmts-crop | 2 +- tests/ref/fate/filter-pixfmts-field | 2 +- tests/ref/fate/filter-pixfmts-fieldorder | 2 +- tests/ref/fate/filter-pixfmts-hflip | 2 +- tests/ref/fate/filter-pixfmts-il | 2 +- tests/ref/fate/filter-pixfmts-null | 2 +- tests/ref/fate/filter-pixfmts-pad | 2 +- tests/ref/fate/filter-pixfmts-scale | 2 +- tests/ref/fate/filter-pixfmts-transpose | 2 +- tests/ref/fate/filter-pixfmts-vflip | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/libswscale/output.c b/libswscale/output.c index 1b8f35bb4b..74f992ae80 100644 --- a/libswscale/output.c +++ b/libswscale/output.c @@ -2602,10 +2602,10 @@ yuv2vuya_X_c(SwsContext *c, const int16_t *lumFilter, for (j = 0; j < lumFilterSize; j++) Y += lumSrc[j][i] * lumFilter[j]; - for (j = 0; j < lumFilterSize; j++) + for (j = 0; j < chrFilterSize; j++) U += chrUSrc[j][i] * chrFilter[j]; - for (j = 0; j < lumFilterSize; j++) + for (j = 0; j < chrFilterSize; j++) V += chrVSrc[j][i] * chrFilter[j]; Y >>= 19; diff --git a/tests/ref/fate/filter-pixdesc-vuya b/tests/ref/fate/filter-pixdesc-vuya index 1f5f16539b..660922ed59 100644 --- a/tests/ref/fate/filter-pixdesc-vuya +++ b/tests/ref/fate/filter-pixdesc-vuya @@ -1 +1 @@ -pixdesc-vuya f46a515666451f2bd58775a6ca6f48a6 +pixdesc-vuya acf482aa1a27ed6166a3673cc5920a22 diff --git a/tests/ref/fate/filter-pixfmts-copy b/tests/ref/fate/filter-pixfmts-copy index 60d1ab2cc3..93dd611f97 100644 --- a/tests/ref/fate/filter-pixfmts-copy +++ b/tests/ref/fate/filter-pixfmts-copy @@ -89,7 +89,7 @@ rgba b6e1b441c365e03b5ffdf9b7b68d9a0c rgba64be ae2ae04b5efedca3505f47c4dd6ea6ea rgba64le b91e1d77f799eb92241a2d2d28437b15 uyvy422 3bcf3c80047592f2211fae3260b1b65d -vuya de4542ddf9563f6d2ad78bc2697ff0d6 +vuya 3d5e934651cae1ce334001cb1829ad22 x2bgr10le 550c0d190cf695afa4eaacb644db6b75 x2rgb10le c1e3ac21be04a16bb157b22784524520 xyz12be a1ef56bf746d71f59669c28e48fc8450 diff --git a/tests/ref/fate/filter-pixfmts-crop b/tests/ref/fate/filter-pixfmts-crop index 21fed40355..739b99713a 100644 --- a/tests/ref/fate/filter-pixfmts-crop +++ b/tests/ref/fate/filter-pixfmts-crop @@ -86,7 +86,7 @@ rgb8 9b364a8f112ad9459fec47a51cc03b30 rgba 9488ac85abceaf99a9309eac5a87697e rgba64be 89910046972ab3c68e2a348302cc8ca9 rgba64le fea8ebfc869b52adf353778f29eac7a7 -vuya 5999865b223e2484efdf6a47a998efa6 +vuya 76578a705ff3a37559653c1289bd03dd x2bgr10le 84de725b85662c362862820dc4a309aa x2rgb10le f4265aca7a67dbfa9354370098ca6f33 xyz12be cb4571f9aaa7b59f999ef327276104b7 diff --git a/tests/ref/fate/filter-pixfmts-field b/tests/ref/fate/filter-pixfmts-field index fa27bd6fd5..e08161bc0d 100644 --- a/tests/ref/fate/filter-pixfmts-field +++ b/tests/ref/fate/filter-pixfmts-field @@ -89,7 +89,7 @@ rgba ee616262ca6d67b7ecfba4b36c602ce3 rgba64be 23c8c0edaabe3eaec89ce69633fb0048 rgba64le dfdba4de4a7cac9abf08852666c341d3 uyvy422 1c49e44ab3f060e85fc4a3a9464f045e -vuya bbcb80fac3591c0748c5220328021adc +vuya f72bcf29d75cd143d0c565f7cc49119a x2bgr10le dbe21538d7cb1744914f6bd46ec09b55 x2rgb10le a18bc4ae5274e0a8cca9137ecd50c677 xyz12be d2fa69ec91d3ed862f2dac3f8e7a3437 diff --git a/tests/ref/fate/filter-pixfmts-fieldorder b/tests/ref/fate/filter-pixfmts-fieldorder index 611e054490..de5c4fe59b 100644 --- a/tests/ref/fate/filter-pixfmts-fieldorder +++ b/tests/ref/fate/filter-pixfmts-fieldorder @@ -80,7 +80,7 @@ rgba 1fdf872a087a32cd35b80cc7be399578 rgba64be 5598f44514d122b9a57c5c92c20bbc61 rgba64le b34e6e30621ae579519a2d91a96a0acf uyvy422 75de70e31c435dde878002d3f22b238a -vuya cccb8271285f5b8812ce93a83ad03ca3 +vuya a3891d4168ff208948fd0b3ba0910495 x2bgr10le 86474d84f26c5c51d6f75bf7e1de8da8 x2rgb10le cdf6a9e8a8d081aa768c6ae2e6221676 xyz12be 15f5cda71de5fef9cec5e75e3833b6bc diff --git a/tests/ref/fate/filter-pixfmts-hflip b/tests/ref/fate/filter-pixfmts-hflip index cb325f92dc..b0f6754bbf 100644 --- a/tests/ref/fate/filter-pixfmts-hflip +++ b/tests/ref/fate/filter-pixfmts-hflip @@ -86,7 +86,7 @@ rgb8 68a3a575badadd9e4f90226209f11699 rgba 51961c723ea6707e0a410cd3f21f15d3 rgba64be c910444019f4cfbf4d995227af55da8d rgba64le 0c810d8b3a6bca10321788e1cb145340 -vuya 08deadfdd61c39a3ed471acce9d69a4b +vuya 7e530261e7ac4eae4fd616fd7572d0b8 x2bgr10le 827cc659f29378e00c5a7d2c0ada8f9a x2rgb10le d4a8189b65395a88d0a38a7053f3359f xyz12be 25f90259ff8a226befdaec3dfe82996e diff --git a/tests/ref/fate/filter-pixfmts-il b/tests/ref/fate/filter-pixfmts-il index 52602de87f..04efcb8a56 100644 --- a/tests/ref/fate/filter-pixfmts-il +++ b/tests/ref/fate/filter-pixfmts-il @@ -88,7 +88,7 @@ rgba 625d8f4bd39c4bdbf61eb5e4713aecc9 rgba64be db70d33aa6c06f3e0a1c77bd11284261 rgba64le a8a2daae04374a27219bc1c890204007 uyvy422 d6ee3ca43356d08c392382b24b22cda5 -vuya 7c895d5666c53afa38a677acc1ceeb44 +vuya b9deab5ba249dd608b709c09255a4932 x2bgr10le 135acaff8318cf9861bb0f7849a9e5e9 x2rgb10le 517fb186f523dc7cdc5c5c6967cfbe94 xyz12be 7c7d54c55f136cbbc50b18029f3be0b3 diff --git a/tests/ref/fate/filter-pixfmts-null b/tests/ref/fate/filter-pixfmts-null index 60d1ab2cc3..93dd611f97 100644 --- a/tests/ref/fate/filter-pixfmts-null +++ b/tests/ref/fate/filter-pixfmts-null @@ -89,7 +89,7 @@ rgba b6e1b441c365e03b5ffdf9b7b68d9a0c rgba64be ae2ae04b5efedca3505f47c4dd6ea6ea rgba64le b91e1d77f799eb92241a2d2d28437b15 uyvy422 3bcf3c80047592f2211fae3260b1b65d -vuya de4542ddf9563f6d2ad78bc2697ff0d6 +vuya 3d5e934651cae1ce334001cb1829ad22 x2bgr10le 550c0d190cf695afa4eaacb644db6b75 x2rgb10le c1e3ac21be04a16bb157b22784524520 xyz12be a1ef56bf746d71f59669c28e48fc8450 diff --git a/tests/ref/fate/filter-pixfmts-pad b/tests/ref/fate/filter-pixfmts-pad index f3f3149784..0f00affdce 100644 --- a/tests/ref/fate/filter-pixfmts-pad +++ b/tests/ref/fate/filter-pixfmts-pad @@ -35,7 +35,7 @@ p416le fa4e023d0bf4b03b0ffef3d4d35abf7e rgb0 0984eb985dabbe757ed6beb53db84eff rgb24 17f9e2e0c609009acaf2175c42d4a2a5 rgba b157c90191463d34fb3ce77b36c96386 -vuya 43d0b659b352b21b2675faf217a375e3 +vuya 44368c0a758ee68e24ce976e3b1b8535 xyz12le 23dadbbba70b2925ce75fb8ba8080ba3 ya16le 8dbfcb586abf626da7d1aca887a581b9 ya8 495daaca2dcb4f7aeba7652768b41ced diff --git a/tests/ref/fate/filter-pixfmts-scale b/tests/ref/fate/filter-pixfmts-scale index a6de65d029..f4822f5bae 100644 --- a/tests/ref/fate/filter-pixfmts-scale +++ b/tests/ref/fate/filter-pixfmts-scale @@ -89,7 +89,7 @@ rgba 85bb5d03cea1c6e8002ced3373904336 rgba64be ee73e57923af984b31cc7795d13929da rgba64le 783d2779adfafe3548bdb671ec0de69e uyvy422 aeb4ba4f9f003ae21f6d18089198244f -vuya d0e9e4019311097e4298dc5a55ced1eb +vuya ffa817e283bf6a0b6fba21b07523ccaa x2bgr10le d57b9a99033cc7b65ddd111578f2d385 x2rgb10le d56bdb23fa6a8e12a0b4394987f89935 xyz12be c7ba8345998c0141ddc079cdd29b1a40 diff --git a/tests/ref/fate/filter-pixfmts-transpose b/tests/ref/fate/filter-pixfmts-transpose index 7297ee9bc0..b3f2d5c5a0 100644 --- a/tests/ref/fate/filter-pixfmts-transpose +++ b/tests/ref/fate/filter-pixfmts-transpose @@ -80,7 +80,7 @@ rgb8 c90feb30c3c9391ef5f470209d7b7a15 rgba 4d76a9542143752a4ac30f82f88f68f1 rgba64be a60041217f4c0cd796d19d3940a12a41 rgba64le ad47197774858858ae7b0c177dffa459 -vuya 57788827ec4810258da9f109853c2937 +vuya 9ece18a345beb17cd19e09e443eca4bf x2bgr10le 4aa774b6d8f6d446a64f1f288e5c97eb x2rgb10le 09cb1d98fe17ad8a6d9d3bec97ddc845 xyz12be 68e5cba640f6e4ef72dff950e88b5342 diff --git a/tests/ref/fate/filter-pixfmts-vflip b/tests/ref/fate/filter-pixfmts-vflip index f17792e142..9081ce4f18 100644 --- a/tests/ref/fate/filter-pixfmts-vflip +++ b/tests/ref/fate/filter-pixfmts-vflip @@ -89,7 +89,7 @@ rgba c1a5908572737f2ae1e5d8218af65f4b rgba64be 17e6273323b5779b5f3f775f150c1011 rgba64le 48f45b10503b7dd140329c3dd0d54c98 uyvy422 3a237e8376264e0cfa78f8a3fdadec8a -vuya bd744a0a1e1595acfff37c804e856710 +vuya fb849f76e56181e005c31fce75d7038c x2bgr10le 795b66a5fc83cd2cf300aae51c230f80 x2rgb10le 262c502230cf3724f8e2cf4737f18a42 xyz12be 810644e008deb231850d779aaa27cc7e