summaryrefslogtreecommitdiff
path: root/doc/ffmpeg.texi
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2021-11-22 22:42:09 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2021-11-22 23:03:21 +0100
commitb1f1de084416768e8b4ba76b338029b974e518a2 (patch)
tree287299c9102228704b6dd8918e9ea0589c7c9220 /doc/ffmpeg.texi
parent203b0e3561dea1ec459be226d805abe73e7535e5 (diff)
avutil/hwcontext_cuda: add option to use primary device context
Diffstat (limited to 'doc/ffmpeg.texi')
-rw-r--r--doc/ffmpeg.texi15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
index 8418573618..082eba5f14 100644
--- a/doc/ffmpeg.texi
+++ b/doc/ffmpeg.texi
@@ -1096,6 +1096,21 @@ device type:
@item cuda
@var{device} is the number of the CUDA device.
+The following options are recognized:
+@table @option
+@item primary_ctx
+If set to 1, uses the primary device context instead of creating a new one.
+@end table
+
+Examples:
+@table @emph
+@item -init_hw_device cuda:1
+Choose the second device on the system.
+
+@item -init_hw_device cuda:0,primary_ctx=1
+Choose the first device and use the primary device context.
+@end table
+
@item dxva2
@var{device} is the number of the Direct3D 9 display adapter.