summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2016-09-10 20:12:27 -0700
committerwm4 <wm4@nowhere>2016-09-11 10:46:22 +0200
commit3f7e43c2e2658eb8a1a22cc4e7359392ec70dc3b (patch)
tree761336d58bb5928690232f5a918dc986a5bc22d1 /options/options.c
parent71681e04ee956a64f2d6e067f3540ea918a16b61 (diff)
downloadmpv-3f7e43c2e2658eb8a1a22cc4e7359392ec70dc3b.tar.bz2
mpv-3f7e43c2e2658eb8a1a22cc4e7359392ec70dc3b.tar.xz
hwdec_cuda: Add trivial cuda-copy wrapper
The cuvid decoder already knows how to copy back to system memory if NV12 frames are requested, and this will happen if the decoder is used without the hwdec. For convenience, let's add a wrapper hwdec so people don't have to explicitly pick the cuvid decoder if they want this behaviour.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 078f606289..509d738eb0 100644
--- a/options/options.c
+++ b/options/options.c
@@ -99,6 +99,7 @@ const struct m_opt_choice_alternatives mp_hwdec_names[] = {
{"rpi", HWDEC_RPI},
{"mediacodec", HWDEC_MEDIACODEC},
{"cuda", HWDEC_CUDA},
+ {"cuda-copy", HWDEC_CUDA_COPY},
{0}
};