From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id B5FF845201 for ; Mon, 12 Jun 2023 08:15:49 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EE75468C348; Mon, 12 Jun 2023 11:15:46 +0300 (EEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9179468C049 for ; Mon, 12 Jun 2023 11:15:39 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686557744; x=1718093744; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=SnuhNa0ajHl4KCKkAxdxk5Nu4IVl5nFiJG/xZLnMdY8=; b=EJYg/yNRFVkCLTi6IL22nSKU2zgoAAj1JoVGOSke8dD8ywxD2iH5N1qb mk33zKYfumRvOqF1rxcWIDDs9CK6NeeLPP1g7lDYi1y+mrGWlSVhspu8Z 4/cyGh2IO4D4m1gPBoe17iR3ucLNDVA2Z5VbDnp25ja82I0fAX/BkKRwF NMxi75imQQ9L7X3CVRl6+Amvzje6h1QIojuN5kxVEu1P4Liyl2TfGzNCt tSdhWIdcjNZLrzk99UNZT+JPe8spHp/xw3us01NiGIbfiZUYq98sUQ/id +NNqq6arzbtsF6S1MIH5KuFvAp3hAxkOhjzt4Dcza8NHKQoR+cxChrhIn g==; X-IronPort-AV: E=McAfee;i="6600,9927,10738"; a="386360213" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="386360213" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 01:15:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10738"; a="711111598" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="711111598" Received: from xhh-tgl64.sh.intel.com ([10.238.2.19]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 01:15:36 -0700 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Mon, 12 Jun 2023 16:14:43 +0800 Message-Id: <20230612081448.936570-1-haihao.xiang@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/6] lavfi/qsvvpp: track the runtime version in vpp context 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: Haihao Xiang Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Haihao Xiang We may check whether a feature is supported via the runtime version in future. Signed-off-by: Haihao Xiang --- libavfilter/qsvvpp.c | 6 ++++++ libavfilter/qsvvpp.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index b233b81243..779afce66d 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -655,6 +655,12 @@ static int init_vpp_session(AVFilterContext *avctx, QSVVPPContext *s) if (ret) return ret; + ret = MFXQueryVersion(s->session, &s->ver); + if (ret != MFX_ERR_NONE) { + av_log(avctx, AV_LOG_ERROR, "Error querying the runtime version\n"); + return AVERROR_UNKNOWN; + } + if (handle) { ret = MFXVideoCORE_SetHandle(s->session, handle_type, handle); if (ret != MFX_ERR_NONE) diff --git a/libavfilter/qsvvpp.h b/libavfilter/qsvvpp.h index 3b32193744..8851185ff3 100644 --- a/libavfilter/qsvvpp.h +++ b/libavfilter/qsvvpp.h @@ -83,6 +83,8 @@ typedef struct QSVVPPContext { int eof; /** order with frame_out, sync */ AVFifo *async_fifo; + + mfxVersion ver; } QSVVPPContext; typedef struct QSVVPPCrop { -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".