From patchwork Mon Nov 20 09:07:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 6219 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.94 with SMTP id m30csp3651671jah; Mon, 20 Nov 2017 01:08:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMZT19YixDM9eH26Kigan++5YWv+X62YX8sEA7qJApkm7TBWuLHy1GeE5AUP8sSYrcCc88lp X-Received: by 10.223.195.136 with SMTP id p8mr10174116wrf.4.1511168905008; Mon, 20 Nov 2017 01:08:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511168904; cv=none; d=google.com; s=arc-20160816; b=KVWGYVK0fbzdxQX97LSObi91zjHdncWvUse9HxvkRt75WE5JQ/hZlRO664VTK9Dl/b d1FRGrMMeltiWyy4EvqPGLQwtcn0dUVDl9kzyU4z7FmGkPh39nRYIe9AX5IfM+S0FE7s E9+ybjDWcuQK3hRQd2Yk0W86TntEHDjNc850V7d2lqyATL6dLMZLfKIxlwIz5jtvUcjG reMroqt/8FBlitERzgBzP1B9qYdUrNbjUBQp1WU+xnF/g7jZ0/p0cF8jDbdMJnwb/z+n aqTXpBqkNUH5PoTcVz7kXjPMyIcV4pMj4D5VUugdJZuUEMaQwbQ31J8FY9GTUP2/AyV5 puuQ== 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:feedback-id:to:references:message-id :date:in-reply-to:from:mime-version:delivered-to :arc-authentication-results; bh=xjbvvdCzFtPz4W4KqtUyThGRpKYGJNXJ46cJ83sv7Wk=; b=Tl2ErrHcz3KLtBowzQ7ZUQ0ZgfxG2KWYG5WARs/rdj/dBeTvhDycwzwmnqYLQVaL3U 7dUAblsuwnv1JJ17qxPzYOFw5Z6bWN0Xm8ML9dw5Pg8vg5udd4gjJMMGZw8u6dhcZJNN 8xkaYh7oH0MVq3vlELOo1YbT2JRG2wbhm8lv5CeOXXSIBwhEgj2r20XnSD+PUWUOluq5 IrQel8FKBdWnx8viWpfjt/lA/Vms0TGVGnEk0jyhphGwd42kIbHu/FNaoZtXjDAA0GY7 FCH+eMPDhVo2uLHRRSU/9ffEpnhBtzESGfmOVpquruylj9g50duWmQJ4XZBgna8JW/4K JTJQ== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 89si7770535wra.274.2017.11.20.01.08.24; Mon, 20 Nov 2017 01:08:24 -0800 (PST) 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9E118689CFD; Mon, 20 Nov 2017 11:08:06 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbg339.qq.com (smtpbg339.qq.com [14.17.44.34]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 349B9689C92 for ; Mon, 20 Nov 2017 11:08:03 +0200 (EET) X-QQ-mid: bizesmtp8t1511168869t5ev65o8k Received: from [10.10.5.3] (unknown [124.202.244.90]) by esmtp4.qq.com (ESMTP) with id ; Mon, 20 Nov 2017 17:07:46 +0800 (CST) X-QQ-SSF: 00100000004000F0FJ80000A0000000 X-QQ-FEAT: HrKUqYRgvQto0e2eQG8PTl7mJHDluQg8Zag06TSkcATeALjyaxMRhTsJskRHL F5Pl18U2/TFXpvKhbao9oEUNDhghkin2QlZheifLisXzmWQrjmDJohmKKgI5vN7rl+6THlZ RAyZDfn6OJNoa+UXXOLJn9h6jo3BcvumUMgilGuGM7GxQkgI5fUW3JfgBg/181d3cK60kQf T1JAvokUwRVY39w7dtKg5NiwSvakIpF7Dmlx32TrI6X5RAdDcdh34mr1spO1EjAst6hIErj 9d2CVU7fFpXSnW6P8RgFcXqZnpuCN0QbGjxiRb25QbXAwQ X-QQ-GoodBg: 0 Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) From: =?gb2312?B?wfXG5w==?= In-Reply-To: <10a4fcbc-501a-227e-039d-302fb0090c5e@gmail.com> Date: Mon, 20 Nov 2017 17:07:42 +0800 Message-Id: References: <10a4fcbc-501a-227e-039d-302fb0090c5e@gmail.com> To: and patches development discussions FFmpeg X-Mailer: Apple Mail (2.3445.4.7) X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign1 X-QQ-Bgrelay: 1 Subject: Re: [FFmpeg-devel] [PATCH 2/2] hwcontext_vaapi: add the fourcc of I420 format map. 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: =?gb2312?B?wfXG5w==?= , Mark Thompson Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" > 在 2017年11月20日,08:36,Jun Zhao 写道: > > <0002-hwcontext_vaapi-add-the-fourcc-of-I420-format-map.patch> From f31e492201b7a8c59bdf7c266c2df016057897c4 Mon Sep 17 00:00:00 2001 From: Jun Zhao Date: Sat, 18 Nov 2017 11:57:41 +0800 Subject: [PATCH 2/2] hwcontext_vaapi: add the fourcc of I420 format map. VA-API 2.0 have enable the I420, so enable this map. Signed-off-by: Jun Zhao --- libavutil/hwcontext_vaapi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index f246639021..d536bc93a1 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -101,7 +101,9 @@ static const struct { MAP(NV12, YUV420, NV12), MAP(YV12, YUV420, YUV420P), // With U/V planes swapped. MAP(IYUV, YUV420, YUV420P), - //MAP(I420, YUV420, YUV420P), // Not in libva but used by Intel driver. +#ifdef VA_FOURCC_I420 + MAP(I420, YUV420, YUV420P), +#endif #ifdef VA_FOURCC_YV16 MAP(YV16, YUV422, YUV422P), // With U/V planes swapped. #endif