MythTV
master
|
#include <QString>
#include "libavcodec/avcodec.h"
Go to the source code of this file.
Macros | |
#define | codec_is_std(id) ((id) < kCodec_NORMAL_END) |
#define | codec_is_std_mpeg(id) ((id) == kCodec_MPEG1 || (id) == kCodec_MPEG2) |
#define | codec_is_drmprime(id) |
#define | codec_is_vdpau(id) |
#define | codec_is_vdpau_hw(id) |
#define | codec_is_vdpau_dec(id) |
#define | codec_is_vdpau_dechw(id) |
#define | codec_is_vaapi(id) |
#define | codec_is_vaapi_dec(id) |
#define | codec_is_dxva2(id) |
#define | codec_is_dxva2_hw(id) |
#define | codec_is_mediacodec(id) |
#define | codec_is_mediacodec_dec(id) |
#define | codec_is_nvdec(id) |
#define | codec_is_nvdec_dec(id) |
#define | codec_is_vtb(id) |
#define | codec_is_vtb_dec(id) |
#define | codec_is_v4l2(id) (((id) > kCodec_V4L2_BEGIN) && ((id) < kCodec_V4L2_END)) |
#define | codec_is_v4l2_dec(id) (((id) > kCodec_V4L2_DEC_BEGIN) && ((id) < kCodec_V4L2_DEC_END)) |
#define | codec_is_mmal(id) (((id) > kCodec_MMAL_BEGIN) && ((id) < kCodec_MMAL_END)) |
#define | codec_is_mmal_dec(id) (((id) > kCodec_MMAL_DEC_BEGIN) && ((id) < kCodec_MMAL_DEC_END)) |
#define | codec_is_copyback(id) |
#define | codec_sw_copy(id) (codec_is_std(id) || codec_is_copyback(id)) |
#define | CODEC_IS_H264(id) (mpeg_version(id) == 5) |
#define | CODEC_IS_MPEG(id) (mpeg_version(id) && mpeg_version(id) <= 2) |
#define | CODEC_IS_FFMPEG_MPEG(id) (CODEC_IS_MPEG(id)) |
#define | CODEC_IS_VDPAU(codec, enc) ((codec) && ((enc)->pix_fmt == AV_PIX_FMT_VDPAU)) |
#define | CODEC_IS_VAAPI(codec, enc) ((codec) && ((enc)->pix_fmt == AV_PIX_FMT_VAAPI)) |
#define | CODEC_IS_DXVA2(codec, enc) (codec && (enc->pix_fmt == AV_PIX_FMT_DXVA2_VLD)) |
#define | CODEC_IS_MEDIACODEC(codec) (0) |
Functions | |
QString | get_encoding_type (MythCodecID codecid) |
QString | get_decoder_name (MythCodecID codec_id) |
QString | toString (MythCodecID codecid) |
AVCodecID | myth2av_codecid (MythCodecID codec_id) |
uint | mpeg_version (int codec_id) |
#define codec_is_std | ( | id | ) | ((id) < kCodec_NORMAL_END) |
Definition at line 293 of file mythcodecid.h.
#define codec_is_std_mpeg | ( | id | ) | ((id) == kCodec_MPEG1 || (id) == kCodec_MPEG2) |
Definition at line 294 of file mythcodecid.h.
#define codec_is_drmprime | ( | id | ) |
Definition at line 296 of file mythcodecid.h.
#define codec_is_vdpau | ( | id | ) |
Definition at line 298 of file mythcodecid.h.
#define codec_is_vdpau_hw | ( | id | ) |
Definition at line 300 of file mythcodecid.h.
#define codec_is_vdpau_dec | ( | id | ) |
Definition at line 304 of file mythcodecid.h.
#define codec_is_vdpau_dechw | ( | id | ) |
Definition at line 306 of file mythcodecid.h.
#define codec_is_vaapi | ( | id | ) |
Definition at line 311 of file mythcodecid.h.
#define codec_is_vaapi_dec | ( | id | ) |
Definition at line 313 of file mythcodecid.h.
#define codec_is_dxva2 | ( | id | ) |
Definition at line 316 of file mythcodecid.h.
#define codec_is_dxva2_hw | ( | id | ) |
Definition at line 318 of file mythcodecid.h.
#define codec_is_mediacodec | ( | id | ) |
Definition at line 323 of file mythcodecid.h.
#define codec_is_mediacodec_dec | ( | id | ) |
Definition at line 325 of file mythcodecid.h.
#define codec_is_nvdec | ( | id | ) |
Definition at line 328 of file mythcodecid.h.
#define codec_is_nvdec_dec | ( | id | ) |
Definition at line 330 of file mythcodecid.h.
#define codec_is_vtb | ( | id | ) |
Definition at line 333 of file mythcodecid.h.
#define codec_is_vtb_dec | ( | id | ) |
Definition at line 335 of file mythcodecid.h.
#define codec_is_v4l2 | ( | id | ) | (((id) > kCodec_V4L2_BEGIN) && ((id) < kCodec_V4L2_END)) |
Definition at line 338 of file mythcodecid.h.
#define codec_is_v4l2_dec | ( | id | ) | (((id) > kCodec_V4L2_DEC_BEGIN) && ((id) < kCodec_V4L2_DEC_END)) |
Definition at line 339 of file mythcodecid.h.
#define codec_is_mmal | ( | id | ) | (((id) > kCodec_MMAL_BEGIN) && ((id) < kCodec_MMAL_END)) |
Definition at line 341 of file mythcodecid.h.
#define codec_is_mmal_dec | ( | id | ) | (((id) > kCodec_MMAL_DEC_BEGIN) && ((id) < kCodec_MMAL_DEC_END)) |
Definition at line 342 of file mythcodecid.h.
#define codec_is_copyback | ( | id | ) |
Definition at line 344 of file mythcodecid.h.
#define codec_sw_copy | ( | id | ) | (codec_is_std(id) || codec_is_copyback(id)) |
Definition at line 349 of file mythcodecid.h.
#define CODEC_IS_H264 | ( | id | ) | (mpeg_version(id) == 5) |
Definition at line 358 of file mythcodecid.h.
#define CODEC_IS_MPEG | ( | id | ) | (mpeg_version(id) && mpeg_version(id) <= 2) |
Definition at line 359 of file mythcodecid.h.
#define CODEC_IS_FFMPEG_MPEG | ( | id | ) | (CODEC_IS_MPEG(id)) |
Definition at line 360 of file mythcodecid.h.
#define CODEC_IS_VDPAU | ( | codec, | |
enc | |||
) | ((codec) && ((enc)->pix_fmt == AV_PIX_FMT_VDPAU)) |
Definition at line 362 of file mythcodecid.h.
#define CODEC_IS_VAAPI | ( | codec, | |
enc | |||
) | ((codec) && ((enc)->pix_fmt == AV_PIX_FMT_VAAPI)) |
Definition at line 368 of file mythcodecid.h.
#define CODEC_IS_DXVA2 | ( | codec, | |
enc | |||
) | (codec && (enc->pix_fmt == AV_PIX_FMT_DXVA2_VLD)) |
Definition at line 374 of file mythcodecid.h.
#define CODEC_IS_MEDIACODEC | ( | codec | ) | (0) |
Definition at line 382 of file mythcodecid.h.
enum MythCodecID |
Definition at line 10 of file mythcodecid.h.
QString get_encoding_type | ( | MythCodecID | codecid | ) |
Definition at line 475 of file mythcodecid.cpp.
Referenced by MythVideoOutputGPU::Create(), and MythPlayer::GetEncodingType().
QString get_decoder_name | ( | MythCodecID | codec_id | ) |
Definition at line 714 of file mythcodecid.cpp.
Referenced by MythVideoOutputGPU::Create(), AvFormatDecoder::GetCodecDecoderName(), and AvFormatDecoder::ScanStreams().
QString toString | ( | MythCodecID | codecid | ) |
Definition at line 9 of file mythcodecid.cpp.
AVCodecID myth2av_codecid | ( | MythCodecID | codec_id | ) |
Definition at line 228 of file mythcodecid.cpp.
Referenced by MythVideoOutput::InputChanged(), and MythVideoOutputGPU::ProcessInputChange().
uint mpeg_version | ( | int | codec_id | ) |
Definition at line 455 of file mythcodecid.cpp.
Referenced by MythCodecContext::FindDecoder(), MythVDPAUContext::InitialiseContext(), MythVAAPIContext::InitialiseContext(), and AvFormatDecoder::ScanStreams().