Go to the documentation of this file. 1 #ifndef MYTH_CODEC_ID_H
2 #define MYTH_CODEC_ID_H
8 #include "libavcodec/avcodec.h"
387 static inline bool CODEC_IS_VDPAU(
const struct AVCodec *codec,
const AVCodecContext *enc)
388 {
return (codec !=
nullptr) && (enc->pix_fmt == AV_PIX_FMT_VDPAU); };
395 static inline bool CODEC_IS_VAAPI(
const struct AVCodec *codec,
const AVCodecContext *enc)
396 {
return (codec !=
nullptr) && (enc->pix_fmt == AV_PIX_FMT_VAAPI); };
398 static inline bool CODEC_IS_VAAPI(
const struct AVCodec *,
const AVCodecContext *)
403 static inline bool CODEC_IS_DXVA2(
const struct AVCodec *codec,
const AVCodecContext *enc)
404 {
return (codec !=
nullptr) && (enc->pix_fmt == AV_PIX_FMT_DXVA2_VLD); };
406 static inline bool CODEC_IS_DXVA2(
const struct AVCodec *,
const AVCodecContext *)
410 #ifdef USING_MEDIACODEC
412 {
return (codec !=
nullptr) && (QString(
"mediacodec") == codec->wrapper_name); };
418 #endif // MYTH_CODEC_ID_H
@ kCodec_VC1_MEDIACODEC_DEC
static bool codec_is_vdpau_hw(MythCodecID id)
static bool codec_is_vdpau_dec(MythCodecID id)
static bool codec_is_v4l2(MythCodecID id)
static bool codec_is_vdpau_dechw(MythCodecID id)
AVCodecID myth2av_codecid(MythCodecID codec_id)
@ kCodec_MPEG2_MEDIACODEC_DEC
static bool codec_is_nvdec(MythCodecID id)
@ kCodec_MPEG4_MEDIACODEC
static bool codec_is_vaapi(MythCodecID id)
static bool codec_is_vtb(MythCodecID id)
static bool codec_is_vaapi_dec(MythCodecID id)
@ kCodec_AV1_MEDIACODEC_DEC
static bool codec_is_mmal_dec(MythCodecID id)
static bool codec_sw_copy(MythCodecID id)
uint mpeg_version(AVCodecID codec_id)
@ kCodec_MPEG2_MEDIACODEC
static bool codec_is_dxva2_hw(MythCodecID id)
static bool codec_is_dxva2(MythCodecID id)
@ kCodec_VP8_MEDIACODEC_DEC
QString get_decoder_name(MythCodecID codec_id)
@ kCodec_VP9_MEDIACODEC_DEC
@ kCodec_MEDIACODEC_DEC_BEGIN
static bool codec_is_nvdec_dec(MythCodecID id)
@ kCodec_WMV3_MEDIACODEC_DEC
static bool CODEC_IS_DXVA2(const struct AVCodec *codec, const AVCodecContext *enc)
static bool codec_is_std_mpeg(MythCodecID id)
static bool codec_is_vtb_dec(MythCodecID id)
static bool CODEC_IS_H264(AVCodecID id)
static bool codec_is_mediacodec_dec(MythCodecID id)
static bool CODEC_IS_MEDIACODEC(const struct AVCodec *)
static bool codec_is_mmal(MythCodecID id)
@ kCodec_MEDIACODEC_BEGIN
static bool codec_is_v4l2_dec(MythCodecID id)
QString toString(MythCodecID codecid)
static bool codec_is_mediacodec(MythCodecID id)
@ kCodec_MPEG1_MEDIACODEC
static bool codec_is_drmprime(MythCodecID id)
static bool codec_is_std(MythCodecID id)
QString get_encoding_type(MythCodecID codecid)
static bool codec_is_vdpau(MythCodecID id)
@ kCodec_H264_MEDIACODEC_DEC
@ kCodec_H263_MEDIACODEC_DEC
@ kCodec_MPEG4_MEDIACODEC_DEC
static bool CODEC_IS_VAAPI(const struct AVCodec *codec, const AVCodecContext *enc)
@ kCodec_MPEG1_MEDIACODEC_DEC
static bool codec_is_copyback(MythCodecID id)
@ kCodec_HEVC_MEDIACODEC_DEC
static bool CODEC_IS_VDPAU(const struct AVCodec *codec, const AVCodecContext *enc)
static bool CODEC_IS_MPEG(AVCodecID id)
@ kCodec_MEDIACODEC_DEC_END