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 A607D48A61 for ; Fri, 29 Dec 2023 04:24:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C1DBE68CD0A; Fri, 29 Dec 2023 06:24:25 +0200 (EET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A560B68CCF6 for ; Fri, 29 Dec 2023 06:24:18 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703823864; x=1735359864; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Yp5ra+Z5lykoWnsb720VLfSAhJK1IjCSnzSkxHPlvV4=; b=QX5+pE8zL0iXKGAX4oqu35w2lE8PAH89Bex/NTzPvueqrCJXrNgYuaAq cLEW1wDsuthl7Cm5fktrIn6DnKg6lAuK/hrrGEn9Oya1CwWZzsBREUO7g SdM4Ha1Q3BUWiqeM3s645lUqm5ZXNQ1P5QMdJ3lXk9xxPEdV+BTjnWDfJ 37f60JXpzGwtwieGdFl+D7MYZB0ZchpWWEEGE2m+HPBdm3hLfrh8oS7F1 Oi1Yqx948iLIKPUaJ/KzY1xo8dY7coMqvMLiX5Naub2mcy2PtYCQdY/Wg zqbq6/Ftmb3JwTlz2utdfLPhs510ilPrM+P91Ro1S0KUymcmNcPUokDz2 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10937"; a="393760016" X-IronPort-AV: E=Sophos;i="6.04,314,1695711600"; d="scan'208";a="393760016" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2023 20:24:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10937"; a="1110073339" X-IronPort-AV: E=Sophos;i="6.04,314,1695711600"; d="scan'208";a="1110073339" Received: from xhh-dg264.sh.intel.com ([10.238.2.76]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2023 20:24:15 -0800 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Dec 2023 12:23:58 +0800 Message-Id: <20231229042358.3703640-2-haihao.xiang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231229042358.3703640-1-haihao.xiang@intel.com> References: <20231229042358.3703640-1-haihao.xiang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] doc/ffmpeg: update the documentation about vaapi device creation 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 Signed-off-by: Haihao Xiang --- doc/ffmpeg.texi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index c6c0606e8a..2c04b22cf3 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1385,6 +1385,29 @@ If not specified, it will attempt to open the default X11 display (@emph{$DISPLA and then the first DRM render node (@emph{/dev/dri/renderD128}), or the default DirectX adapter on Windows. +The following options are recognized: +@table @option +@item kernel_driver +When @var{device} is not specified, use this option to specify the name of the kernel +driver associated with the desired device. This option is only available when +@emph{libdrm} works on Linux. +@end table + +Examples: +@table @emph +@item -init_hw_device vaapi +Create a vaapi device on the default device + +@item -init_hw_device vaapi:/dev/dri/renderD129 +Create a vaapi device on DRM render node /dev/dri/renderD129 + +@item -init_hw_device vaapi:1 +Create a vaapi device on DirectX adapter 1 + +@item -init_hw_device vaapi:,kernel_driver=i915 +Create a vaapi device on a device associated with kernel driver @samp{i915} +@end table + @item vdpau @var{device} is an X11 display name. If not specified, it will attempt to open the default X11 display (@emph{$DISPLAY}). -- 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".