diff options
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r-- | video/decode/lavc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h index 32b827b964..9e2533cbd5 100644 --- a/video/decode/lavc.h +++ b/video/decode/lavc.h @@ -22,6 +22,7 @@ enum hwdec_type { }; typedef struct lavc_ctx { + struct MPOpts *opts; AVCodecContext *avctx; AVFrame *pic; struct vd_lavc_hwdec *hwdec; @@ -73,6 +74,18 @@ enum { HWDEC_ERR_NO_CODEC = -3, }; +struct hwdec_profile_entry { + enum AVCodecID av_codec; + int ff_profile; + uint64_t hw_profile; +}; + +const struct hwdec_profile_entry *hwdec_find_profile( + struct lavc_ctx *ctx, const struct hwdec_profile_entry *table); +bool hwdec_check_codec_support(const char *decoder, + const struct hwdec_profile_entry *table); +int hwdec_get_max_refs(struct lavc_ctx *ctx); + // lavc_dr1.c int mp_codec_get_buffer(AVCodecContext *s, AVFrame *frame); void mp_codec_release_buffer(AVCodecContext *s, AVFrame *frame); |