diff options
author | Philip Langdale <philipl@overt.org> | 2016-09-10 20:12:27 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-11 10:46:22 +0200 |
commit | 3f7e43c2e2658eb8a1a22cc4e7359392ec70dc3b (patch) | |
tree | 761336d58bb5928690232f5a918dc986a5bc22d1 /video/hwdec.h | |
parent | 71681e04ee956a64f2d6e067f3540ea918a16b61 (diff) | |
download | mpv-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 'video/hwdec.h')
-rw-r--r-- | video/hwdec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/hwdec.h b/video/hwdec.h index 473c02b5f5..b69e3fc309 100644 --- a/video/hwdec.h +++ b/video/hwdec.h @@ -22,6 +22,7 @@ enum hwdec_type { HWDEC_RPI, HWDEC_MEDIACODEC, HWDEC_CUDA, + HWDEC_CUDA_COPY, }; #define HWDEC_IS_AUTO(x) ((x) == HWDEC_AUTO || (x) == HWDEC_AUTO_COPY) |