From patchwork Sun Aug 14 21:33:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Langdale X-Patchwork-Id: 34786 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3d0d:b0:8d:a68e:8a0e with SMTP id y13csp964053pzi; Sun, 14 Aug 2022 14:33:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR4xWTdcPCIlgBAKTOrzvhwdNfuxdIXtOgX0vA1dGFUPM7TD4SYFJCmB5czgfSOBmPhFSGTr X-Received: by 2002:a17:907:7389:b0:732:fc99:cf6a with SMTP id er9-20020a170907738900b00732fc99cf6amr8494096ejc.335.1660512817165; Sun, 14 Aug 2022 14:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660512817; cv=none; d=google.com; s=arc-20160816; b=WHX02S8vI3jgQ1PcA88zeYUzFR2yzIVC85mS+7KNWmGfV+FsDAdJoMt4Jld9l6TD2k llqGLpEDti2OM/uM9l1jsGKj0x1DV2iN5QgaRpB8AyzXTyXhnUeO+5ahmfMe+4b/+vl+ lrcjkZhEqfq00DK+mjgDj86HNxDD2woL5hX0rlpLU0sDqU2ReuUnQYzZyxpI45Y7rY/M 1Mu08U6jh+cTQv43DBQO3qgfqfrCfBC3bACicuee6PF+B4tFdQ2moqlqRA7ZcD6R65Ad tX0U771Pfm7L+nrYX/MEjWbQfb/Tft6h0X2xbZa9+wpAFPqvE9JW3q/GsZTw11fg9NHZ E74w== 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=/JzS6G6hOx1gRO6a23T6ANIGgTVX1p3SttzthwuCTck=; b=abARaK4rG74Q01tYE0IPi4Etd2P/3PIBXrFhH+vDwYwjguY2YtoPK/O8fEYrZL7lDE h6aM2ohnNmhVp7ByN/BOYjShTIqxhl5r8itqCpDopA/nFgyhyTNbyh4Y4dvPPdr/kUnI 56mjhRtMtPGXi/6UG/rIB12/7GdIYbDjhw08mYHIllEdUsN1TSZdB62NrZ7JryxQ4GgX byu7GZ68NoQebrdmkAIq0mvw5g3hvLsTjQmspPOw/4Iw3e9NOAdv0k6rUxkYp7tP2Ip6 ane7ImwQ2fhp/4omDMzMmAkrA9iHmw5Lix1pVqc+SeI/hicNwe9Ld4Kidsioa90WrnGm du2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@overt.org header.s=mail header.b=CxlWSR5I; 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 fu18-20020a170907b01200b0073059ddf38bsi4953977ejc.105.2022.08.14.14.33.35; Sun, 14 Aug 2022 14:33:37 -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=CxlWSR5I; 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 95E9E68B937; Mon, 15 Aug 2022 00:33:31 +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 5D36368B5C5 for ; Mon, 15 Aug 2022 00:33:25 +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 19F323F89C; Sun, 14 Aug 2022 16:33:22 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=overt.org; s=mail; t=1660512802; bh=VzXtYwjiTZMSI0ozVsEvv5w39xh8Pb4sehtdVXHJA2g=; h=From:To:Cc:Subject:Date:From; b=CxlWSR5IHpGsnhbm6BGRc6OaL6oHsyRudiKz3TzL/+qHtkgNsYvg7NTqBq9dX4t5c zXJZdop4BfTtbuH7yNtnZUDNHvp/IzROeC5YRfC8zzDLQgyXdFHrwBzSR66EFN6Xkp W0NYDYTgx3rZPbklT3kqeQXc3aeGNmDR3CWC1SqnRmSsRaacDGTMrLB9Ap20N8kUCl +KWCCAqHwTDhyPBceKvdzKr4Qr85lbIsknImklp0LnXusumoR2hNLBnzt4UePGjPtC PJcRe5meFF6hzsNjeyYEHKrfGWgviLvpWS+0SNJ4Ex6Kt805FjB2NBf4dXhac+yv32 0M9/5pEAuehVA== From: Philip Langdale To: ffmpeg-devel@ffmpeg.org Date: Sun, 14 Aug 2022 14:33:10 -0700 Message-Id: <20220814213313.37948-1-philipl@overt.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/3] V2: VAAPI: Add high bit depth encode/decode 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: Philip Langdale Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: GWmLb6CO8/Tf This changeset fills in support for the remaining high bit depth formats the VAAPI exposes. This requires adding more weird Microsoft pixel formats and then mapping them in the VAAPI code. I've also enabled hw mapping between VAAPI and vulkan for sufficiently simple formats. * Updated to add change to support Vulkan mapping. Philip Langdale (3): lavu/pixfmt: Add Y216, Y410, and Y416 formats lavc/vaapi: Add support for remaining 10/12bit profiles lavu/hwcontext_[vaapi|vulkan]: support mapping VUYA and Y416 libavcodec/hevcdec.c | 8 ++++ libavcodec/vaapi_decode.c | 13 ++++++ libavcodec/vaapi_encode.c | 19 ++++++-- libavcodec/vaapi_encode_h265.c | 10 ++++- libavcodec/vaapi_encode_vp9.c | 4 +- libavcodec/vaapi_hevc.c | 11 ++++- libavutil/hwcontext_vaapi.c | 16 +++++++ libavutil/hwcontext_vulkan.c | 6 +++ libavutil/pixdesc.c | 77 +++++++++++++++++++++++++++++++- libavutil/pixfmt.h | 12 +++++ tests/ref/fate/imgutils | 6 +++ tests/ref/fate/sws-pixdesc-query | 25 +++++++++++ 12 files changed, 198 insertions(+), 9 deletions(-)