summaryrefslogtreecommitdiffstats
path: root/video/decode/lavc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-31 17:11:45 +0100
committerwm4 <wm4@nowhere>2017-10-31 17:11:52 +0100
commit95c6a482eb9d97f180b54e45d2c5aa360b218cba (patch)
treef54e4c7353bd0a1351f5c8eae07dd6904aca5a50 /video/decode/lavc.h
parentf27a9aaa17eaced765718d096d0b3284c3f15b1f (diff)
downloadmpv-95c6a482eb9d97f180b54e45d2c5aa360b218cba.tar.bz2
mpv-95c6a482eb9d97f180b54e45d2c5aa360b218cba.tar.xz
vd_lavc: clean out more hwdec legacy code
All this code used to be required by the old variants of the libavcodec hw decoding APIs. Almost all of that is gone, although the mediacodec API unfortunately still pulls in some old stuff (but not all of it). (mediacodec build/functionality is untested, but should work.)
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r--video/decode/lavc.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h
index cf5485d3b6..70ff4cde97 100644
--- a/video/decode/lavc.h
+++ b/video/decode/lavc.h
@@ -31,7 +31,6 @@ typedef struct lavc_ctx {
AVFrame *pic;
struct vd_lavc_hwdec *hwdec;
AVRational codec_timebase;
- enum AVPixelFormat pix_fmt;
enum AVDiscard skip_frame;
bool flushing;
const char *decoder;
@@ -62,11 +61,6 @@ typedef struct lavc_ctx {
struct mp_hwdec_ctx *hwdec_dev;
bool owns_hwdec_dev;
- int hwdec_fmt;
- int hwdec_w;
- int hwdec_h;
- int hwdec_profile;
-
bool hwdec_request_reinit;
int hwdec_fail_count;
@@ -102,7 +96,7 @@ struct vd_lavc_hwdec {
int (*probe)(struct lavc_ctx *ctx, struct vd_lavc_hwdec *hwdec,
const char *codec);
int (*init)(struct lavc_ctx *ctx);
- int (*init_decoder)(struct lavc_ctx *ctx, int w, int h);
+ int (*init_decoder)(struct lavc_ctx *ctx);
void (*uninit)(struct lavc_ctx *ctx);
// Process the image returned by the libavcodec decoder.
struct mp_image *(*process_image)(struct lavc_ctx *ctx, struct mp_image *img);