Go to the documentation of this file. 1 #ifndef MYTH_CODEC_ID_H
2 #define MYTH_CODEC_ID_H
7 #include "libavcodec/avcodec.h"
386 static inline bool CODEC_IS_VDPAU(
const struct AVCodec *codec,
const AVCodecContext *enc)
387 {
return (codec !=
nullptr) && (enc->pix_fmt == AV_PIX_FMT_VDPAU); };
394 static inline bool CODEC_IS_VAAPI(
const struct AVCodec *codec,
const AVCodecContext *enc)
395 {
return (codec !=
nullptr) && (enc->pix_fmt == AV_PIX_FMT_VAAPI); };
397 static inline bool CODEC_IS_VAAPI(
const struct AVCodec *,
const AVCodecContext *)
402 static inline bool CODEC_IS_DXVA2(
const struct AVCodec *codec,
const AVCodecContext *enc)
403 {
return (codec !=
nullptr) && (enc->pix_fmt == AV_PIX_FMT_DXVA2_VLD); };
405 static inline bool CODEC_IS_DXVA2(
const struct AVCodec *,
const AVCodecContext *)
409 #ifdef USING_MEDIACODEC
411 {
return (codec !=
nullptr) && (QString(
"mediacodec") == codec->wrapper_name); };
417 #endif // MYTH_CODEC_ID_H
static bool codec_is_vdpau_hw(MythCodecID id)
@ kCodec_AV1_MEDIACODEC_DEC
static bool codec_is_vdpau_dec(MythCodecID id)
@ kCodec_WMV3_MEDIACODEC_DEC
static bool codec_is_v4l2(MythCodecID id)
static bool codec_is_vdpau_dechw(MythCodecID id)
AVCodecID myth2av_codecid(MythCodecID codec_id)
@ kCodec_H263_MEDIACODEC_DEC
static bool codec_is_nvdec(MythCodecID id)
@ kCodec_MPEG2_MEDIACODEC
@ kCodec_MPEG1_MEDIACODEC_DEC
@ kCodec_MPEG4_MEDIACODEC_DEC
static bool codec_is_vaapi(MythCodecID id)
static bool codec_is_vtb(MythCodecID id)
static bool codec_is_vaapi_dec(MythCodecID id)
static bool codec_is_mmal_dec(MythCodecID id)
static bool codec_sw_copy(MythCodecID id)
uint mpeg_version(AVCodecID codec_id)
@ kCodec_VC1_MEDIACODEC_DEC
@ kCodec_HEVC_MEDIACODEC_DEC
static bool codec_is_dxva2_hw(MythCodecID id)
static bool codec_is_dxva2(MythCodecID id)
@ kCodec_VP8_MEDIACODEC_DEC
@ kCodec_VP9_MEDIACODEC_DEC
@ kCodec_MPEG2_MEDIACODEC_DEC
QString get_decoder_name(MythCodecID codec_id)
static bool codec_is_nvdec_dec(MythCodecID id)
@ kCodec_MPEG1_MEDIACODEC
@ kCodec_MEDIACODEC_BEGIN
static bool CODEC_IS_DXVA2(const struct AVCodec *codec, const AVCodecContext *enc)
@ kCodec_H264_MEDIACODEC_DEC
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 *)
@ kCodec_MEDIACODEC_DEC_BEGIN
static bool codec_is_mmal(MythCodecID id)
static bool codec_is_v4l2_dec(MythCodecID id)
QString toString(MythCodecID codecid)
static bool codec_is_mediacodec(MythCodecID id)
static bool codec_is_drmprime(MythCodecID id)
static bool codec_is_std(MythCodecID id)
@ kCodec_MEDIACODEC_DEC_END
QString get_encoding_type(MythCodecID codecid)
static bool codec_is_vdpau(MythCodecID id)
static bool CODEC_IS_VAAPI(const struct AVCodec *codec, const AVCodecContext *enc)
static bool codec_is_copyback(MythCodecID id)
static bool CODEC_IS_VDPAU(const struct AVCodec *codec, const AVCodecContext *enc)
@ kCodec_MPEG4_MEDIACODEC
static bool CODEC_IS_MPEG(AVCodecID id)