From 638950731451cbef616015bd81d411e7cdbb9ff0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 17 Mar 2014 18:21:11 +0100 Subject: 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. --- video/vdpau.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/vdpau.h') 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, -- cgit v1.2.3