aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/opengl/hwdec_cuda.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-10-30 18:31:20 +0100
committerGravatar wm4 <wm4@nowhere>2017-10-30 18:31:20 +0100
commitb7ce3ac44575d82b5b23f10477b1158b84394b8f (patch)
tree612bae68b23a427a34fa5700fc309e819b3410bb /video/out/opengl/hwdec_cuda.c
parent694157e024e52e6fcb01cfd2e9c6d50b85f9621f (diff)
vd_lavc: remove need for duplicated cuda GL interop backend
This is just a dumb consequence of HWDEC_ types somehow being part of both decoder and VO. Obviously, the VO should only care about supporting specific hardware surface types or providing specific device types, but until they are separated, stupid unintuitive mismatches will occur.
Diffstat (limited to 'video/out/opengl/hwdec_cuda.c')
-rw-r--r--video/out/opengl/hwdec_cuda.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/video/out/opengl/hwdec_cuda.c b/video/out/opengl/hwdec_cuda.c
index 5aefed106d..321826eb49 100644
--- a/video/out/opengl/hwdec_cuda.c
+++ b/video/out/opengl/hwdec_cuda.c
@@ -326,24 +326,8 @@ static int mapper_map(struct ra_hwdec_mapper *mapper)
}
const struct ra_hwdec_driver ra_hwdec_cuda = {
- .name = "cuda",
- .api = HWDEC_CUDA,
- .imgfmts = {IMGFMT_CUDA, 0},
- .priv_size = sizeof(struct priv_owner),
- .init = cuda_init,
- .uninit = cuda_uninit,
- .mapper = &(const struct ra_hwdec_mapper_driver){
- .priv_size = sizeof(struct priv),
- .init = mapper_init,
- .uninit = mapper_uninit,
- .map = mapper_map,
- .unmap = mapper_unmap,
- },
-};
-
-const struct ra_hwdec_driver ra_hwdec_cuda_nvdec = {
.name = "cuda-nvdec",
- .api = HWDEC_NVDEC,
+ .api = HWDEC_CUDA,
.imgfmts = {IMGFMT_CUDA, 0},
.priv_size = sizeof(struct priv_owner),
.init = cuda_init,