diff options
author | wm4 <wm4@nowhere> | 2014-03-17 18:21:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-17 18:21:11 +0100 |
commit | 638950731451cbef616015bd81d411e7cdbb9ff0 (patch) | |
tree | fe19c24135e89048df777b163474936afe8b2902 /video/vdpau.h | |
parent | 4e70335c2fa3eaea6f8f2d11fb7981f55a582fa5 (diff) | |
download | mpv-638950731451cbef616015bd81d411e7cdbb9ff0.tar.bz2 mpv-638950731451cbef616015bd81d411e7cdbb9ff0.tar.xz |
vdpau: remove legacy pixel formats
They were used by ancient libavcodec versions. This also removes the
need to distinguish vdpau image formats at all (since there is only
one), and some code can be simplified.
Diffstat (limited to 'video/vdpau.h')
-rw-r--r-- | video/vdpau.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/vdpau.h b/video/vdpau.h index 7b8d4099b5..24615529d2 100644 --- a/video/vdpau.h +++ b/video/vdpau.h @@ -49,7 +49,7 @@ struct mp_vdpau_ctx { // Surface pool struct surface_entry { VdpVideoSurface surface; - int fmt, w, h; + int w, h; VdpChromaType chroma; bool in_use; } video_surfaces[MAX_VIDEO_SURFACES]; @@ -63,7 +63,7 @@ void mp_vdpau_destroy(struct mp_vdpau_ctx *ctx); bool mp_vdpau_status_ok(struct mp_vdpau_ctx *ctx); -struct mp_image *mp_vdpau_get_video_surface(struct mp_vdpau_ctx *ctx, int fmt, +struct mp_image *mp_vdpau_get_video_surface(struct mp_vdpau_ctx *ctx, VdpChromaType chroma, int w, int h); bool mp_vdpau_get_format(int imgfmt, VdpChromaType *out_chroma_type, |