From bffd78748fb7fb1248424b1d4d2d67eb31c8762f Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 19 Aug 2015 21:33:18 +0200 Subject: vd_lavc: remove unneeded hwdec parameters All hwdec backends now use a single pixel format, and the format is always checked. Also, the init_decoder callback is now mandatory. --- video/decode/lavc.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'video/decode/lavc.h') diff --git a/video/decode/lavc.h b/video/decode/lavc.h index f37f9cc4e6..590697d056 100644 --- a/video/decode/lavc.h +++ b/video/decode/lavc.h @@ -43,12 +43,11 @@ struct vd_lavc_hwdec { int (*probe)(struct vd_lavc_hwdec *hwdec, struct mp_hwdec_info *info, const char *decoder); int (*init)(struct lavc_ctx *ctx); - int (*init_decoder)(struct lavc_ctx *ctx, int fmt, int w, int h); + int (*init_decoder)(struct lavc_ctx *ctx, int w, int h); void (*uninit)(struct lavc_ctx *ctx); // Note: if init_decoder is set, this will always use the values from the // last successful init_decoder call. Otherwise, it's up to you. - struct mp_image *(*allocate_image)(struct lavc_ctx *ctx, int fmt, - int w, int h); + struct mp_image *(*allocate_image)(struct lavc_ctx *ctx, int w, int h); // Process the image returned by the libavcodec decoder. struct mp_image *(*process_image)(struct lavc_ctx *ctx, struct mp_image *img); // For horrible Intel shit-drivers only -- cgit v1.2.3