From patchwork Tue Aug 9 15:15:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Yves Simon X-Patchwork-Id: 131 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.67 with SMTP id o64csp68895vsd; Tue, 9 Aug 2016 14:44:13 -0700 (PDT) X-Received: by 10.28.40.133 with SMTP id o127mr25453095wmo.46.1470779053403; Tue, 09 Aug 2016 14:44:13 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id j186si5011647wmg.39.2016.08.09.14.44.11; Tue, 09 Aug 2016 14:44:13 -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; 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=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 373D5689EB5; Wed, 10 Aug 2016 00:44:00 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mailrelay113.isp.belgacom.be (mailrelay113.isp.belgacom.be [195.238.20.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7DD9368A297 for ; Tue, 9 Aug 2016 18:15:24 +0300 (EEST) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2DFBADa8qlX//i0gW1dg0WlbgEHiTmJO?= =?us-ascii?q?IIPgX2FDYEKBAKBSzkUAQEBAQEBAV0nhTsGHSYwLhaITQEesxmJMgoZgQiEC4V?= =?us-ascii?q?ihk6DU4UPBZk5jwoCgVONbAKQLB42gUEBXSaBNzqHXgEBAQ?= Received: from 248.180-129-109.adsl-dyn.isp.belgacom.be (HELO little.lethalwp) ([109.129.180.248]) by relay.skynet.be with ESMTP; 09 Aug 2016 17:15:32 +0200 From: Jean-Yves Simon To: ffmpeg-devel@ffmpeg.org Date: Tue, 9 Aug 2016 17:15:30 +0200 Message-Id: <1470755730-21026-1-git-send-email-lethalwp@gmail.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Wed, 10 Aug 2016 00:43:57 +0300 Subject: [FFmpeg-devel] [PATCH] Add YUV420P10 to vaapi hardware decode - permits hardware decoding of HEVC Main 10 on AMD RX 480 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: Jean-Yves Simon MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavcodec/hevc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index b478065..92b313b 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -370,6 +370,9 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps, enum AVPixelFormat pix_fm #if CONFIG_HEVC_D3D11VA_HWACCEL *fmt++ = AV_PIX_FMT_D3D11VA_VLD; #endif +#if CONFIG_HEVC_VAAPI_HWACCEL + *fmt++ = AV_PIX_FMT_VAAPI; +#endif break; }