summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-31 14:18:35 +0100
committerwm4 <wm4@nowhere>2017-10-31 14:18:35 +0100
commite0f42bdc5d7208a7aebc4e0f75a4f4ba18ed49f2 (patch)
tree90e95ac93841fa1bfe41715cca5bbd6615831181 /video
parent078a3ed996f6bd4cfaf1e277347057cf1fcc46c5 (diff)
downloadmpv-e0f42bdc5d7208a7aebc4e0f75a4f4ba18ed49f2.tar.bz2
mpv-e0f42bdc5d7208a7aebc4e0f75a4f4ba18ed49f2.tar.xz
vd_lavc: remove dead legacy code
Diffstat (limited to 'video')
-rw-r--r--video/decode/lavc.h10
-rw-r--r--video/decode/vd_lavc.c12
2 files changed, 0 insertions, 22 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h
index f3cebd0f20..e4db1f5f79 100644
--- a/video/decode/lavc.h
+++ b/video/decode/lavc.h
@@ -140,14 +140,4 @@ enum {
HWDEC_ERR_EMULATED = -4, // probing successful, but emulated API detected
};
-struct hwdec_profile_entry {
- enum AVCodecID av_codec;
- int ff_profile;
- uint64_t hw_profile;
-};
-
-int hwdec_get_max_refs(struct lavc_ctx *ctx);
-int hwdec_setup_hw_frames_ctx(struct lavc_ctx *ctx, AVBufferRef *device_ctx,
- int av_sw_format, int initial_pool_size);
-
#endif
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 824eb12a11..e3b5018d7c 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -313,18 +313,6 @@ static bool hwdec_codec_allowed(struct dec_video *vd, const char *codec)
return false;
}
-int hwdec_get_max_refs(struct lavc_ctx *ctx)
-{
- switch (ctx->avctx->codec_id) {
- case AV_CODEC_ID_H264:
- case AV_CODEC_ID_HEVC:
- return 16;
- case AV_CODEC_ID_VP9:
- return 8;
- }
- return 2;
-}
-
// This is intended to return the name of a decoder for a given wrapper API.
// Decoder wrappers are usually added to libavcodec with a specific suffix.
// For example the mmal h264 decoder is named h264_mmal.