4#include "libmythbase/mythconfig.h"
10#include "libavcodec/avcodec.h"
389static inline bool CODEC_IS_VDPAU(
const struct AVCodec *codec,
const AVCodecContext *enc)
390 {
return (codec !=
nullptr) && (enc->pix_fmt == AV_PIX_FMT_VDPAU); };
397static inline bool CODEC_IS_VAAPI(
const struct AVCodec *codec,
const AVCodecContext *enc)
398 {
return (codec !=
nullptr) && (enc->pix_fmt == AV_PIX_FMT_VAAPI); };
405static inline bool CODEC_IS_DXVA2(
const struct AVCodec *codec,
const AVCodecContext *enc)
406 {
return (codec !=
nullptr) && (enc->pix_fmt == AV_PIX_FMT_DXVA2_VLD); };
414 {
return (codec !=
nullptr) && (QString(
"mediacodec") == codec->wrapper_name); };
QString toString(MythCodecID codecid)
QString get_decoder_name(MythCodecID codec_id)
static bool codec_is_v4l2_dec(MythCodecID id)
static bool codec_is_vdpau_dechw(MythCodecID id)
static bool codec_is_vdpau_hw(MythCodecID id)
static bool codec_is_mediacodec_dec(MythCodecID id)
static bool codec_is_std(MythCodecID id)
@ kCodec_H264_MEDIACODEC_DEC
@ kCodec_MPEG2_MEDIACODEC_DEC
@ kCodec_HEVC_MEDIACODEC_DEC
@ kCodec_MPEG1_MEDIACODEC_DEC
@ kCodec_AV1_MEDIACODEC_DEC
@ kCodec_VP9_MEDIACODEC_DEC
@ kCodec_MPEG4_MEDIACODEC
@ kCodec_VC1_MEDIACODEC_DEC
@ kCodec_H263_MEDIACODEC_DEC
@ kCodec_MPEG1_MEDIACODEC
@ kCodec_MEDIACODEC_DEC_END
@ kCodec_MPEG4_MEDIACODEC_DEC
@ kCodec_MEDIACODEC_BEGIN
@ kCodec_VP8_MEDIACODEC_DEC
@ kCodec_MPEG2_MEDIACODEC
@ kCodec_WMV3_MEDIACODEC_DEC
@ kCodec_MEDIACODEC_DEC_BEGIN
static bool codec_is_vdpau(MythCodecID id)
static bool codec_is_mediacodec(MythCodecID id)
static bool codec_is_vtb_dec(MythCodecID id)
static bool codec_is_dxva2_hw(MythCodecID id)
static bool CODEC_IS_DXVA2(const struct AVCodec *, const AVCodecContext *)
static bool codec_is_dxva2(MythCodecID id)
static bool codec_is_std_mpeg(MythCodecID id)
static bool CODEC_IS_VDPAU(const struct AVCodec *)
static bool codec_is_vdpau_dec(MythCodecID id)
static bool codec_is_mmal_dec(MythCodecID id)
static bool codec_sw_copy(MythCodecID id)
uint mpeg_version(AVCodecID codec_id)
static bool codec_is_drmprime(MythCodecID id)
static bool CODEC_IS_VAAPI(const struct AVCodec *, const AVCodecContext *)
AVCodecID myth2av_codecid(MythCodecID codec_id)
static bool CODEC_IS_H264(AVCodecID id)
static bool codec_is_mmal(MythCodecID id)
static bool codec_is_nvdec(MythCodecID id)
static bool codec_is_vtb(MythCodecID id)
QString get_encoding_type(MythCodecID codecid)
static bool codec_is_v4l2(MythCodecID id)
static bool CODEC_IS_MEDIACODEC(const struct AVCodec *)
static bool codec_is_copyback(MythCodecID id)
static bool CODEC_IS_MPEG(AVCodecID id)
static bool codec_is_nvdec_dec(MythCodecID id)
static bool codec_is_vaapi(MythCodecID id)
static bool codec_is_vaapi_dec(MythCodecID id)