From patchwork Tue Jun 30 01:18:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Wang X-Patchwork-Id: 20740 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 37F9E44AD00 for ; Tue, 30 Jun 2020 04:19:33 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 136ED6880FE; Tue, 30 Jun 2020 04:19:33 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2EE99687FFD for ; Tue, 30 Jun 2020 04:19:25 +0300 (EEST) IronPort-SDR: S4L3iz6KPPhdbuClAI+5glPgZThZ0q3tksF/ISHc6XvsftLoqpK8TJosYRl2H7G6jWAu+l5coc 3Ax8FFe9AsKg== X-IronPort-AV: E=McAfee;i="6000,8403,9666"; a="207630806" X-IronPort-AV: E=Sophos;i="5.75,296,1589266800"; d="scan'208";a="207630806" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2020 18:19:23 -0700 IronPort-SDR: //fALiwSI/hE3IKWtPvygz3nugmeDBInXa+PNbxjA5snApDaYvRvr3GR4rp8Maqd1nCjfPLMog dOZkx+CG8CQg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,296,1589266800"; d="scan'208";a="277264404" Received: from f.sh.intel.com ([10.239.159.122]) by orsmga003.jf.intel.com with ESMTP; 29 Jun 2020 18:19:22 -0700 From: Fei Wang To: ffmpeg-devel@ffmpeg.org Date: Tue, 30 Jun 2020 09:18:41 +0800 Message-Id: <20200630011841.23025-1-fei.w.wang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [FFmpeg-devel] [PATCH v1] avfilter/tonemap_vaapi: set va parameters filters and numbers 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: Fei Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" This can fill VAProcPipelineParameterBuffer correctly and make the pipeline works. Signed-off-by: Fei Wang --- libavfilter/vf_tonemap_vaapi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavfilter/vf_tonemap_vaapi.c b/libavfilter/vf_tonemap_vaapi.c index 2f41b90424..9f52590a49 100644 --- a/libavfilter/vf_tonemap_vaapi.c +++ b/libavfilter/vf_tonemap_vaapi.c @@ -296,6 +296,11 @@ static int tonemap_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame if (err < 0) goto fail; + if (vpp_ctx->nb_filter_buffers) { + params.filters = &vpp_ctx->filter_buffers[0]; + params.num_filters = vpp_ctx->nb_filter_buffers; + } + err = ff_vaapi_vpp_render_picture(avctx, ¶ms, output_frame); if (err < 0) goto fail;