From patchwork Sat Sep 12 09:07:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Reid X-Patchwork-Id: 22299 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id DC10D44B659 for ; Sat, 12 Sep 2020 12:07:26 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B1F8968BB42; Sat, 12 Sep 2020 12:07:26 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B02CD68BB15 for ; Sat, 12 Sep 2020 12:07:19 +0300 (EEST) Received: by mail-pj1-f51.google.com with SMTP id jw11so2845996pjb.0 for ; Sat, 12 Sep 2020 02:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xlm1UUvBT/Ojb/FLrIu6IiWE2mi6PdRbQ28jySxW3g4=; b=eZ646ogHR6Hu/dh/CJbIgVO4pF1Fn2HdmrJRxa1Y+/pAdduONngEbEYRmhVWDc7dxS YioTPGy03PNe06nTIX+rcjlXUhNrK1tR5fdsH5uZ/v1e10fz2ojLZHvnC0TV+nC790D+ s7tZ0PAbGSWVKBa7kKeuRkVT9xYaFuAj1rZIu7O62wANMt2g4aPSlIrIUSGsgDJnseUt oU4oUhYxn/kief30ptOhb2P3aHmwnuNZOUIDguWPOdXYPkNoIKTCFpVTDcdaavi3cQDL SdyO3eZdBeIXiGKhPq/i0okq82m+y5B38IecQiynl8oXWRi9+wlqMnzBntipGjMgny5w IRrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xlm1UUvBT/Ojb/FLrIu6IiWE2mi6PdRbQ28jySxW3g4=; b=NAnstDSghLD2cDLKSdR3QICeeYMmCZksF+/h+2hKjNng3KA7uRHCNMijxUr80WPPpG P2Hr6Csk1vvVZzHgYwE5s0F0Gq+7PFndvMZR8Obl1iNvnSlEFcLwkGVkEaT5joulqrgP Pje8HnAGypH8OnC4o+heK0DGjtSSguQZKnv/rNlumtklAWm1jHkHwMHN3qLYWQbEzN2c 9A6iPYlIOLX7LSzQdjuVV0TDSC/2MubmYFIWmFpw8JDg3rwymPJyqux/dRDqqYbDXpwA Fv6lsY3cOa85lTt1Z2kGd2fiETATpYF/JvP/e0G9nsmBe31tYdfiGBft0J79o7cfH1OH XKYA== X-Gm-Message-State: AOAM532SI6eOtA8WyI2MQG4FYKtIlNU++HHu2HuVt8IR6nDfJdQcDI+R euemC3oHhXJXbXk+pPpw/Gv+ucuScfI= X-Google-Smtp-Source: ABdhPJwr2+DF4h0H39GmpHBlPoZPJXZ34lVNqlYBAt6o3vW5zu9G36tCpWMI5AND9eZfydCgD0HcdA== X-Received: by 2002:a17:902:24c:b029:d0:cb2d:f270 with SMTP id 70-20020a170902024cb02900d0cb2df270mr6074457plc.9.1599901637668; Sat, 12 Sep 2020 02:07:17 -0700 (PDT) Received: from MRMacbook.hitronhub.home (S01069050ca607903.vc.shawcable.net. [174.7.236.190]) by smtp.gmail.com with ESMTPSA id a18sm3558044pgw.50.2020.09.12.02.07.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Sep 2020 02:07:17 -0700 (PDT) From: mindmark@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Sat, 12 Sep 2020 02:07:12 -0700 Message-Id: <20200912090714.66582-1-mindmark@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/2] libswcale/input: fix incorrect rgbf32 yuv conversions X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Cc: Mark Reid Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Mark Reid Hi, I'm not sure how I didn't notice this before but the f32 to yuv conversion is slightly off. the folowinng 2 patches fix it. In doing this I found that one of the exr tests probably wasn't testing the right layer, so I fixed that before. Mark Reid (2): fate: use correct uint32 layer libswcale/input: fix incorrect rgbf32 yuv conversions libswscale/input.c | 12 +++++------- tests/fate/image.mak | 2 +- .../ref/fate/exr-rgb-scanline-pxr24-half-uint32-13x9 | 2 +- tests/ref/fate/filter-pixfmts-scale | 8 ++++---- 4 files changed, 11 insertions(+), 13 deletions(-)