From patchwork Sat Aug 20 02:14:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Langdale X-Patchwork-Id: 34792 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:139a:b0:8f:1db5:eae2 with SMTP id w26csp115954pzh; Fri, 19 Aug 2022 19:15:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR7QZHqaeLx9cmqsH32EDHgt5GQ4EGwPpHIOHF6tDPg778sd/ww/HPgRC2D+IbIHgGkoDqkG X-Received: by 2002:a05:6402:2949:b0:445:dc8d:44d with SMTP id ed9-20020a056402294900b00445dc8d044dmr8071414edb.60.1660961702967; Fri, 19 Aug 2022 19:15:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660961702; cv=none; d=google.com; s=arc-20160816; b=WybdKi2JyzsFzPm5UZyWC+FE9uTspXE9+g78Mr0gzQxRcSTCyFs5M+2yvOUM83jh3V V3a9vyBEmZN/YVhnawMYJGEmUZBUMbTtlEE4RvoHZomPGVuPEsusVZx5j5uri1qfqhZh 876o7oE71In6wy9SeXLwSWIRLVdrnDTB3s21yPv+loNLq135QDUW/yg8YUjHrfQLEGpR eSkA4/ItfvAREl6lfiLAi2wSQzdFA5RQeAFcXzrerZGhRa2HuLd6TuKVklzqKbJ/wBiO jbUgQEm410l8NqMkECOMWZjzxQfV1CUoIcO1WvcHXVILTKzxR1K8WFDIjj/KgLhqPWEi Aipg== 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=S2gBjmcFzNhGkuVgfqLyAc154CgKEJsIVO3zftnNafI=; b=lORPULJ65RIBMJ87+24awhhoJIdyKqU7iBlIeHkSG7MK2xgtRdtEo5k2uxbr57bs+O kv/886664blgCLdnDnM3OlMEiIfDeWWPs61pe3TVzqikycGd0/8zFVgdTLxiTpjRbxEg 0L0xE38vZ4t+Sjraxo+iwqBKqpZDAXs+9OE8NJJm3X42gTU5cj24nDdo3kEQGZR2h7Yh h+0KHpH3iEdJ0xAIaltiqymnO/DeQLzXhpTzbskN4bGmt5lhDtQ2ZeJEKiXEeZgdipsK 8ab8+NDlGO6EmVEsHnMiAmjppumsdwGQzDYtF1rdC/vvr+SJAKUMAs4Aa5qg3vsx8w6B vHFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@overt.org header.s=mail header.b="SBdtVal/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=overt.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id n25-20020a056402061900b00445f2dfacaasi3903146edv.614.2022.08.19.19.14.56; Fri, 19 Aug 2022 19:15:02 -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=@overt.org header.s=mail header.b="SBdtVal/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=overt.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E45F868B67D; Sat, 20 Aug 2022 05:14:52 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.overt.org (mail.overt.org [157.230.92.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7A09268B956 for ; Sat, 20 Aug 2022 05:14:46 +0300 (EEST) Received: from authenticated-user (mail.overt.org [157.230.92.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mail.overt.org (Postfix) with ESMTPSA id 8981B3F1EB; Fri, 19 Aug 2022 21:14:44 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=overt.org; s=mail; t=1660961684; bh=mNRduyhWhuEpDrQZnab8HNCR1LzLt5mzZ7Hh1fx3h5E=; h=From:To:Cc:Subject:Date:From; b=SBdtVal/jfa+9JltONu/VEP57HhBreNdEmlz6UnsNRjz4ZyJvYSt0rIqiQtsGzYMb zWJYZc8PWJVode/6/s8jsZ0NzNRN5zdPk+i6M0WH8Fn4t4pzPLWUsOqkTXm4J9waYn Fw8c/5le8CDdRc2hMk+vn9/FXYvqqmVLIYk41MFzPzZRcOIDhGfs95QlW+1eWzayLz JAkjEnSi1x/ri036D/lcGM+IqhdqtXpbYr5XNA+6os67aoiBsVeGKbjiS9l/t45EHk R4eJZujw6csK7NX2OTW5tvHqtmdMFYKoA8P72sfkoYyp7hWDqsThbxmZ0Reclyajg/ 0d1gbkHYbsARw== From: Philip Langdale To: ffmpeg-devel@ffmpeg.org Date: Fri, 19 Aug 2022 19:14:33 -0700 Message-Id: <20220820021436.1224908-1-philipl@overt.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/3] v2: vaapi: switch 8bit 444 format to VUYX 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: Philip Langdale Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: oDF80I0c0k72 After discussion with Mark, I'm switching the preferred format for 8bit 444 content in vaapi to VUYX, which is the alpha-less variant of VUYA. This format is formally supported by the driver, so we don't even need to do any fudging. I am not removing VUYA because we found another use for it, replacing the previous requirement to use v408[enc|dec] to work with it. * v2: Fix test update in wrong change Philip Langdale (3): lavu/pixfmt: Introduce VUYX format libswscale: add support for VUYX format lavc/vaapi: Switch preferred 8bit 444 format to VUYX libavcodec/vaapi_decode.c | 4 ++- libavcodec/vaapi_encode.c | 2 +- libavcodec/vaapi_encode_h265.c | 3 +- libavcodec/vaapi_encode_vp9.c | 3 +- libavutil/pixdesc.c | 12 ++++++++ libavutil/pixfmt.h | 2 ++ libavutil/tests/pixfmt_best.c | 1 + libswscale/input.c | 10 ++++--- libswscale/output.c | 35 +++++++++++++++++++++--- libswscale/utils.c | 1 + tests/ref/fate/filter-pixdesc-vuyx | 1 + tests/ref/fate/filter-pixfmts-copy | 1 + tests/ref/fate/filter-pixfmts-crop | 1 + tests/ref/fate/filter-pixfmts-field | 1 + tests/ref/fate/filter-pixfmts-fieldorder | 1 + tests/ref/fate/filter-pixfmts-hflip | 1 + tests/ref/fate/filter-pixfmts-il | 1 + tests/ref/fate/filter-pixfmts-null | 1 + tests/ref/fate/filter-pixfmts-pad | 1 + tests/ref/fate/filter-pixfmts-scale | 1 + tests/ref/fate/filter-pixfmts-transpose | 1 + tests/ref/fate/filter-pixfmts-vflip | 1 + tests/ref/fate/imgutils | 1 + tests/ref/fate/pixfmt_best | 2 +- tests/ref/fate/sws-pixdesc-query | 3 ++ 25 files changed, 76 insertions(+), 15 deletions(-) create mode 100644 tests/ref/fate/filter-pixdesc-vuyx