From patchwork Sat Aug 20 01:24:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Langdale X-Patchwork-Id: 34791 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:139a:b0:8f:1db5:eae2 with SMTP id w26csp100217pzh; Fri, 19 Aug 2022 18:24:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR66phybsD6jja31Olhrg94AWUZ+3sW0WgenO3Ka2RAKvyIDQG1sMxRlzcmFKIMnfc/anBiv X-Received: by 2002:a05:6402:2753:b0:43a:d6f2:9839 with SMTP id z19-20020a056402275300b0043ad6f29839mr7695854edd.73.1660958670084; Fri, 19 Aug 2022 18:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660958670; cv=none; d=google.com; s=arc-20160816; b=M1slYTuI0TFNu1ljLjvxFmGrQ5tVRQivZxp3vdSFSm26ipQ4/IwXpmP6EIkLva8hJ+ sejm1fbvZMi3J0UmgmyFHN/dW7wxEX5OWh5kESofmWNA3lOTs/Oo5S97KrdDt8v+IlPU YCLlfOq1nIxISoc0rF9DoCS28o5YFjT0q60btjjSFS+hnflYi2dTkvPrxsi5K7OipYTi i/Ntx4xOLo077Da72q9zJk3AL4d3/sGxTi/QZbuZ/FHIGq8WpZykLZsj4NbSCi5k0ob/ s+HG3F6EJyiN669RcOXYjRSRZRrPAaWVtCwAwXCBmKqhYhbCsckhlv/Bje1ABi0ziFye 7OOw== 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=v3cs4kXxEhoL8u0OhgJExFcqmaagjp9cyGMA9EE0w+A=; b=Ukf1INjsdReermVknDMm3N1sJQGotq2THJPedu9640c1ksIoUSB3IQSCWVsI8U16bc xrNYLz78RB9oZ7dwLlJsxAbBFZii/47jVOBvGayuupEPLNlvi0khrGJ1ktadfszEa39j 6D+nRyDiCFCxjC/xS5bU+EUQOMOmCwHQ7UfEZtqmqt/LvTx6EEIcopctiQ9qPC3oeDyp W5W2Lhi6+Iu/bUhn1fxdGTUfQkbDxGWZVPXoVr+HWnIQAxC59ZYDNQH7HtkSuSUEjBrX CjJHIplawfEtWGOKcPd1V0f9TZ4KnmLyfxqdzlgmNIN+/hCMlmxCi+RCZUrVMn/FQbSY a0Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@overt.org header.s=mail header.b=nEvHPkRq; 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 cf20-20020a170906b2d400b0072f1c8d0e62si3203769ejb.95.2022.08.19.18.24.28; Fri, 19 Aug 2022 18:24:30 -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=nEvHPkRq; 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 55BA768B986; Sat, 20 Aug 2022 04:24:24 +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 7A0BA68B876 for ; Sat, 20 Aug 2022 04:24:17 +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 3FB143F86B; Fri, 19 Aug 2022 20:24:15 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=overt.org; s=mail; t=1660958655; bh=JqPEZgBHjVhgP7Do5cd0HZ0DzRIUbMxycrWj0FPavUU=; h=From:To:Cc:Subject:Date:From; b=nEvHPkRqiEPiWEJBL8Vx1DDaBym/T63CN9gsqoxQqeGhMmnls+2hB0yfd7LByfoCj ixo8/A1eGW6p0UEJNMkDz0J/Fn/Ypkaik29duJgrWVX2IQV/eyLBY8H9ZLNLEF5RzT kqJweQah40gSK1PUh6HcXCRSTSno+GqfmSJ1GE0t/ad1yxJ7nZfnnD3hV4q+o6rqBm TCuBYIAGGjke4Ux7cF3JrqORn7UKxcyl4csYaDlbM8JhFmRPllxZKZXByZ7LSLVMc/ xcBWkSFMQaYQHtCxB58XcKGeWfxK4GbktNhoAPp/XcdXhQkkY0z5dT3ueUZYeyInTc CdfSWxH9j5UbQ== From: Philip Langdale To: ffmpeg-devel@ffmpeg.org Date: Fri, 19 Aug 2022 18:24:01 -0700 Message-Id: <20220820012404.932086-1-philipl@overt.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/3] 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: b6mremIOmppJ 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. 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