diff options
author | wm4 <wm4@nowhere> | 2017-10-30 18:31:20 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-30 18:31:20 +0100 |
commit | b7ce3ac44575d82b5b23f10477b1158b84394b8f (patch) | |
tree | 612bae68b23a427a34fa5700fc309e819b3410bb /video/decode/lavc.h | |
parent | 694157e024e52e6fcb01cfd2e9c6d50b85f9621f (diff) | |
download | mpv-b7ce3ac44575d82b5b23f10477b1158b84394b8f.tar.bz2 mpv-b7ce3ac44575d82b5b23f10477b1158b84394b8f.tar.xz |
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/decode/lavc.h')
-rw-r--r-- | video/decode/lavc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h index 8383c0a67f..6287dc8577 100644 --- a/video/decode/lavc.h +++ b/video/decode/lavc.h @@ -85,6 +85,8 @@ typedef struct lavc_ctx { struct vd_lavc_hwdec { enum hwdec_type type; + // If non-0, get this hwdec type from the VO (for the AVHWDeviceContext). + enum hwdec_type interop_type; // If not-0: the IMGFMT_ format that should be accepted in the libavcodec // get_format callback. int image_format; |