From patchwork Wed Nov 23 19:35:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Reid X-Patchwork-Id: 34863 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp4022753pzb; Wed, 23 Nov 2022 11:36:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4n+CAP9+BVG+Ck77b+n/Vo5aq+wqg5M6OC3RBE3Sh/ZyC/dlnle3udJ4en+EWfzZ8DwPdS X-Received: by 2002:a05:6402:2b8c:b0:468:ebc8:7476 with SMTP id fj12-20020a0564022b8c00b00468ebc87476mr9609108edb.223.1669232173744; Wed, 23 Nov 2022 11:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669232173; cv=none; d=google.com; s=arc-20160816; b=ONCh14ze7oW4oRXaB2CCTgoez/cMKBrTyNdlt5b/WHqEVS4Cg1GNomNq+mN7OUK2rF sk8KGgSeScUkV7koGuf78fFSFBDLr0HyLSMnr4w6yRRzQeuhP39iKQ3cqxdvZAFtK7tJ jZXbUa/iEXQElC/qvrC4jokLzmzQckwyS/4lV5e9QUzZLFH3PUVmZR7DTSmI0frpXBP0 cmZ3AokUaPw+KhoIJ5jZAbUALoprrNcBgxWRet/2AuMEK791MYlfkN61py6EOWEzqTIF q3RQ5eNMP6mrbRCOkuFGw6+mHuSgNa9wE1UoIhK+u6IheGNsaB+blBGp4EbBllgAoJLZ BJkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc: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=VY3PcbgAPs44ayoDoOyltELp7laAg3vBojO3b/9YQvg=; b=bnbwGiwICYY9orha9e38KGz3inPu8zynUCJLhz6OxUziolMqqfNnYyRXDUiHun2IQD JJHU//r5CoVAGC+jXDMd7spJtf2CbmIl0hMmy5FbVgBtCYBDsHOX+8J+yWbYKeX2U66Q 3CG/vxFR3Adzb8ML7B7ro6qofCm+8ZwbGp5IPWOjCDXrgbzu3OsH7sIlZ08Fp6HBMygc 4OsW+11VUwKAHxTJL3ho8AN6L+ngaAyAzLttvUFfppcHZ5wkp778jQOuBD07gOFNpSHD FBNDGEeuqj2aZ8pr1gT2AQArHnYi7kDKAvgsAlhtFf1LatM3TBx4r1ZlmkXmxQ9hPJ1s CLvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=UPAnLgCv; 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 e18-20020a056402191200b00468310367c5si17111380edz.214.2022.11.23.11.36.11; Wed, 23 Nov 2022 11:36:13 -0800 (PST) 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=UPAnLgCv; 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 0A3D968B30F; Wed, 23 Nov 2022 21:36:08 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3FF2C68B068 for ; Wed, 23 Nov 2022 21:36:02 +0200 (EET) Received: by mail-pl1-f179.google.com with SMTP id io19so17540981plb.8 for ; Wed, 23 Nov 2022 11:36:02 -0800 (PST) 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:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=e7zx5BeLSEbUyyQojwHUmpcaP/OXE4W2mHn/yfgMM/4=; b=UPAnLgCvByyL0yrUUbqsJ8awzBxNSoJEafkW3RF1SBhMRxRHNTpZfurtLPXs0WK3y/ LtbC1d1U5qzlhnBEHZP950TfveSNRf3NZ7dIuejz0kh8cC9fNFQX6gFaNb1t8gIh9WzH 5u4xZszzyTGOgo7HdoCnmKW5hqIQIqfTSZImYiHB3QdnD4T10STAzORT0Sb1we55XkjG 5lQf6azq0gcxSahoDRA3hemwZzJr8pCjTi/40B6mvj298+aDuyIJZtnP+6TvDx6YI0v5 Xj/qtQ1QLjyzwv6p5P/kCtG8AR6wFtvrxjxfhSq+5eyEeEoUSZo7TTDG2WEMjYkahLX8 j47A== 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:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e7zx5BeLSEbUyyQojwHUmpcaP/OXE4W2mHn/yfgMM/4=; b=uyh+8qYP0ym1FyXHfrvEhFy+8FjBgfK4MXoWzUrOFtMUaReiOdIOJJ6jnSm9Vri0T0 EPmR8N8wbu6tRx1RQX6BS0xDIFqzD8r9G0XGvfHYQ4LZHYDh6HocXg+urgyK6wD+bcqX o0+jh5M+KT/mKCopMCMK2ffBfucUdiHjq4abLaFKIvehVR+6kcLuvomUfcIWZkPDESrF JMW9CNNxGH8aliSY4jHY5m2lksszx/aESjA7gVD5FvQPJu6uchMG78l2MDnj4xcRR+no szeLxwU1oA6x3q/VEW5dy0xmCIjctn8cZqk1wILjezEP55vNNshCdnWBVnnbpyhzWj3A i14w== X-Gm-Message-State: ANoB5pnFStjQBGU7FiMsM4HIMd0vvvc3iJa8mas7UE2gkpGXLR32VmhY rta3qgc1/L6JjHt9c0DD0vciNkZdlbY= X-Received: by 2002:a17:902:ee51:b0:189:1dda:5675 with SMTP id 17-20020a170902ee5100b001891dda5675mr12591986plo.115.1669232160008; Wed, 23 Nov 2022 11:36:00 -0800 (PST) Received: from localhost.localdomain (S0106bc4dfba470f3.vc.shawcable.net. [174.7.244.175]) by smtp.gmail.com with ESMTPSA id a8-20020a63d408000000b00460fbe0d75esm11319276pgh.31.2022.11.23.11.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 11:35:59 -0800 (PST) From: mindmark@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Wed, 23 Nov 2022 11:35:36 -0800 Message-Id: <20221123193540.741-1-mindmark@gmail.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v5 0/4] swscale: rgbaf32 input/output support 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 Cc: Mark Reid Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: fs9W8fPORGXZ From: Mark Reid This patch series adds swscale input/output support for the packed rgb float formats. A few of the filters also needed support the larger 96/128 bit packed pixel sizes. I also plan to eventually add lossless unscaled conversions between the planer and packed formats. changes since v4 * added comment about refactoring input functions changes since v3 * removed half uv path implementation changes since v2 * add bias to rgbaf32 output to improve non overflowing range changes since v1 * output correct alpha if src doesn't have alpha Mark Reid (4): swscale/input: add rgbaf32 input support avfilter/vf_hflip: add support for packed rgb float formats avfilter/vf_transpose: add support for packed rgb float formats swscale/output: add rgbaf32 output support libavfilter/vf_hflip_init.h | 25 +++++ libavfilter/vf_transpose.c | 44 ++++++++ libswscale/input.c | 122 +++++++++++++++++++++++ libswscale/output.c | 92 +++++++++++++++++ libswscale/swscale_unscaled.c | 4 +- libswscale/tests/floatimg_cmp.c | 4 +- libswscale/utils.c | 14 ++- libswscale/yuv2rgb.c | 2 + tests/ref/fate/filter-pixdesc-rgbaf32be | 1 + tests/ref/fate/filter-pixdesc-rgbaf32le | 1 + tests/ref/fate/filter-pixdesc-rgbf32be | 1 + tests/ref/fate/filter-pixdesc-rgbf32le | 1 + tests/ref/fate/filter-pixfmts-copy | 4 + tests/ref/fate/filter-pixfmts-crop | 4 + tests/ref/fate/filter-pixfmts-field | 4 + tests/ref/fate/filter-pixfmts-fieldorder | 4 + tests/ref/fate/filter-pixfmts-hflip | 4 + tests/ref/fate/filter-pixfmts-il | 4 + tests/ref/fate/filter-pixfmts-null | 4 + tests/ref/fate/filter-pixfmts-scale | 4 + tests/ref/fate/filter-pixfmts-transpose | 4 + tests/ref/fate/filter-pixfmts-vflip | 4 + tests/ref/fate/sws-floatimg-cmp | 16 +++ 23 files changed, 363 insertions(+), 4 deletions(-) create mode 100644 tests/ref/fate/filter-pixdesc-rgbaf32be create mode 100644 tests/ref/fate/filter-pixdesc-rgbaf32le create mode 100644 tests/ref/fate/filter-pixdesc-rgbf32be create mode 100644 tests/ref/fate/filter-pixdesc-rgbf32le --- 2.31.1.windows.1