From patchwork Sat Jul 23 18:53:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Langdale X-Patchwork-Id: 34773 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:1649:b0:8b:613a:194d with SMTP id no9csp1157116pzb; Sat, 23 Jul 2022 11:53:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u/8APOI8B5SdH0K9Fg7a84ZF6f0kq6X0lNavZyW0/XwzXe/SmjxhOQCypHDLIL5KLbf6GL X-Received: by 2002:a05:6402:1686:b0:43b:de08:f779 with SMTP id a6-20020a056402168600b0043bde08f779mr4406142edv.147.1658602434878; Sat, 23 Jul 2022 11:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658602434; cv=none; d=google.com; s=arc-20160816; b=JTaAIkaGVylGJW25UEqZFOSBAd8WUHuenVd9eVVOWoSCajRPXbLauLXdFdG7F8qh9T nxNUbIl7I5gObhXI2zHqVtj9mSIYbDtjZz38Vqvgin6zTX1qPASZLK8sPNP7EzC/xbc3 HY6CjgL68pt0pxcWaZanmediRfOfpU5bHorEg2z3qLSoPVMqT9a4IoVWZalfNOfpYzkL /AEVqLP337QLOyPpkvj1DOpaLEgOejWbx/GuXRCERtxJvyXUK0RlKyBtcYaB4KXOkSyV Si0y9EH1B7FS7XTnsk/8k7CyOgnlqDG2kNsDlgcEAOEqr14LhncmANKkrA9GbKFJP+E5 zTIA== 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=7HxY33OMBRaXe8mtEV+YOkB6WLpSw8ObEO+oHTXFT+0=; b=J+usDvGlnB0NrDc0/vMNrkSfi6WRsUSdcwYEGHfF46uv9rBIQWldd4wXXq8Ow4wOAM ja0OoO77NA0gcXANShK+IQL1jafxWx/Tffdi15e703VaCUaWQZuufPb8218RXD/WcF7O MegkaIiQBhZUfRSPEWarQcfvZIOzJj/WvHDK5AAxB6MzdmlHAdT/7cmf12EDtgX1ZNgl MC1KL4ZbpLpBZdL5MCmxZZ0tmgMjpfCc+xNrAXaDuXYUu2E/NYf8sOat3B14ZK1G4z71 0cKeQbuo9Nl0X+nlrQMhOP714oyQ8QE182H3eqAQF1X59QmO6E01Jf+p3W39KQslc9MK S19A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@overt.org header.s=mail header.b=nSNolXLG; 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 l9-20020a170906794900b0072b3df402efsi4927776ejo.124.2022.07.23.11.53.54; Sat, 23 Jul 2022 11:53:54 -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=nSNolXLG; 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 8F13068B7B9; Sat, 23 Jul 2022 21:53:41 +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 3E54B68B6AC for ; Sat, 23 Jul 2022 21:53:33 +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 9C3FC3F404; Sat, 23 Jul 2022 13:53:30 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=overt.org; s=mail; t=1658602411; bh=bZhf/X+gf1faNa0rKrAer5gsDodD34krP9LvenVbN34=; h=From:To:Cc:Subject:Date:From; b=nSNolXLGmQP0ABqUUfn8EFpowkP9EQ+AUe3o3hKOn7LrD4IcxRB1uPQZTiAqHnvSL Yh/O/D77I5A/OenDPOepQ18NlJmXNeuk6agESUydb85K+vdqt1M1R6Hz/5rj1QzjlK rH55Z53DLu9roujBoEGX7rN+c/N04uEFDYzjmnQDych9YElJxCPVN+4ucx6Wy3BzO7 u73jC5V6KdlqqJwS5b3jUVRH9iR2vupMDZquuVx+X2wO2E7Eb+w5Le/B/igd9ao4E8 4LbAGzdPj7i+tfB9zcUD+outF4e3D47zty9oKI7OoK7et6C6hhRX3PV/kE81qmoUn2 /y1N3roYwECrQ== From: Philip Langdale To: ffmpeg-devel@ffmpeg.org Date: Sat, 23 Jul 2022 11:53:12 -0700 Message-Id: <20220723185315.207081-1-philipl@overt.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/3] vaapi: Add support for decoding 8bit 4:4:4 content 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 Thompson , Philip Langdale Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: HZzNJnyUxX+a Recent Intel hardware is capable of decoding 8bit 4:4:4 HEVC and VP9, but it uses a packed format that Microsoft wants, and which we don't currently know about. This patch series adds support for the AYUV format and declares support in VAAPI. Mark has noted that due to there never being any actual Alpha produced by the hardware, we should use an XYUV format. I've not done so here because libva does declare an explicit XYUV format, which I assume we will see used in the future, and I didn't want to fudge the formats so that they lose the nominal distinction. But I'm happy to change that if desired. Philip Langdale (3): lavu/pixfmt: Add packed 4:4:4 format lavu/hwcontext_vaapi: Map the AYUV format lavc/vaapi: Declare support for decoding 8bit 4:4:4 content Changelog | 1 + doc/APIchanges | 3 +++ libavcodec/hevcdec.c | 3 +++ libavcodec/vaapi_decode.c | 2 ++ libavcodec/version.h | 2 +- libavcodec/vp9.c | 5 +++++ libavutil/hwcontext_vaapi.c | 1 + libavutil/pixdesc.c | 13 +++++++++++++ libavutil/pixfmt.h | 2 ++ libavutil/version.h | 4 ++-- tests/ref/fate/imgutils | 1 + tests/ref/fate/sws-pixdesc-query | 4 ++++ 12 files changed, 38 insertions(+), 3 deletions(-)