summaryrefslogtreecommitdiffstats
path: root/video/decode/lavc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-19 21:33:18 +0200
committerwm4 <wm4@nowhere>2015-08-19 21:33:18 +0200
commitbffd78748fb7fb1248424b1d4d2d67eb31c8762f (patch)
tree92e1038645675c95d6fffb85b3a78ee5c299ee24 /video/decode/lavc.h
parentcab1f6439c201d877e709c45bb6a119feddc6a53 (diff)
downloadmpv-bffd78748fb7fb1248424b1d4d2d67eb31c8762f.tar.bz2
mpv-bffd78748fb7fb1248424b1d4d2d67eb31c8762f.tar.xz
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.
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r--video/decode/lavc.h5
1 files changed, 2 insertions, 3 deletions
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