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 53FD9484B7 for ; Fri, 5 Jan 2024 02:42:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B9B1668CCED; Fri, 5 Jan 2024 04:42:26 +0200 (EET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AC44568CCB5 for ; Fri, 5 Jan 2024 04:42:20 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704422546; x=1735958546; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=z7jZynIEnRNtfwK6PZBZtJSljh/G7TcSkDBb94CPkGU=; b=B4yN8OjT0grKM3yvN3Tq9XattBOXDmH7n0wxih9nSSA7A+5JrNRRPJJQ 0AQT+ws/qsuD+BixHzDIYlyhHJe6qKcQgxjvPt7KVtFRnxNa1D+GZ6KIw wXd0JrTVOnz7eJjdX7H2QIAC21Of9QsNLSL9ep4Io6nOknzkPRxZIeUnp B5/uzKbPj1TBdk/tTMuLX8XN0RyagU7+YAzlTns29rzzTJlQ4l63O4nqX iY4u9p99264F2RhmWLwVeCTol3i4+bsTUZaXPUUvLCEpCWrpKMjyj3NPO XEJLcY7w2cu8VFOJHx35j1caLItqICKoZ50M7iPRGEZVyQfXsW//b9aVM g==; X-IronPort-AV: E=McAfee;i="6600,9927,10943"; a="18930263" X-IronPort-AV: E=Sophos;i="6.04,332,1695711600"; d="scan'208";a="18930263" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2024 18:42:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10943"; a="809421734" X-IronPort-AV: E=Sophos;i="6.04,332,1695711600"; d="scan'208";a="809421734" Received: from xhh-dg264.sh.intel.com ([10.238.2.76]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2024 18:42:10 -0800 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Fri, 5 Jan 2024 10:33:52 +0800 Message-Id: <20240105023352.3959874-2-haihao.xiang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240105023352.3959874-1-haihao.xiang@intel.com> References: <20240105023352.3959874-1-haihao.xiang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 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 f095f402bd..8fb165c5df 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".