From patchwork Thu Oct 8 06:18:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ManojGuptaBonda X-Patchwork-Id: 22748 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 1B68244B103 for ; Thu, 8 Oct 2020 09:19:22 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E0B2068AD4C; Thu, 8 Oct 2020 09:19:21 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2C38468AD4C for ; Thu, 8 Oct 2020 09:19:13 +0300 (EEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 07 Oct 2020 23:18:14 -0700 Received: from bondagupta-NVWorkStation.nvidia.com (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 8 Oct 2020 06:19:07 +0000 From: ManojGuptaBonda To: , Date: Thu, 8 Oct 2020 11:48:51 +0530 Message-ID: <20201008061851.27736-1-mbonda@nvidia.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602137894; bh=jdLqrySzyAlS/8oLlTbnSeMWOj9frDouZg9aWtl8ybs=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Type:X-Originating-IP:X-ClientProxiedBy; b=OUialLlzuObbTcgErro+qRYjGy7i+BD3k+zGkFB0QCb14FANQKg6zKjmFV8XUXvjv WI8LFMzaraRS419ehBm2fQ8PrXBJ+MU59oDuld0VAwEAFnoZ2fnC7BA1UOTU4vgCDZ k2WxajgfW8ddeHV430UiRQ/CgWi2OR1yAvdLscP18rYTmVqszhXj9Mm/oSz4MPK+Ia +0SNSi0IzCbVXC44nGq72HoO4aovaX8Q3mn/MTBQ1hLPBvaaYmAscBCJ7DvhvnYjBW rPyGtjiUmQ9NY7zizIcqVA6Tq0aOGNTGw7clIYERxGSqDLAgEj9fH4ZgNtQv67JXph WDYgzILrPsPog== Subject: [FFmpeg-devel] [PATCH] VP9 Profile 2 VDPAU support X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: aplattner@nvidia.com, ManojGuptaBonda , ARitger@nvidia.com, philipl@overt.org Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Added VDPAU to list of supported formats for VP9 420 10 and 12 bit formats. Add VP9 10/12 Bit support for VDPAU --- libavcodec/vp9.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index fd0bab14a2..8b89fd68e2 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -223,6 +223,9 @@ static int update_size(AVCodecContext *avctx, int w, int h) #endif #if CONFIG_VP9_VAAPI_HWACCEL *fmtp++ = AV_PIX_FMT_VAAPI; +#endif +#if CONFIG_VP9_VDPAU_HWACCEL + *fmtp++ = AV_PIX_FMT_VDPAU; #endif break; case AV_PIX_FMT_YUV420P12: @@ -231,6 +234,9 @@ static int update_size(AVCodecContext *avctx, int w, int h) #endif #if CONFIG_VP9_VAAPI_HWACCEL *fmtp++ = AV_PIX_FMT_VAAPI; +#endif +#if CONFIG_VP9_VDPAU_HWACCEL + *fmtp++ = AV_PIX_FMT_VDPAU; #endif break; }