From e0f42bdc5d7208a7aebc4e0f75a4f4ba18ed49f2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 31 Oct 2017 14:18:35 +0100 Subject: vd_lavc: remove dead legacy code --- video/decode/lavc.h | 10 ---------- video/decode/vd_lavc.c | 12 ------------ 2 files changed, 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. -- cgit v1.2.3