MythTV
master
|
#include <mythavutil.h>
Public Member Functions | |
MythCodecMap ()=default | |
~MythCodecMap () | |
AVCodecContext * | GetCodecContext (const AVStream *Stream, const AVCodec *Codec=nullptr, bool NullCodec=false) |
AVCodecContext * | FindCodecContext (const AVStream *Stream) |
void | FreeCodecContext (const AVStream *Stream) |
void | FreeAllContexts () |
Private Attributes | |
QMap< const AVStream *, AVCodecContext * > | m_streamMap |
QRecursiveMutex | m_mapLock |
Utility class that keeps pointers to an AVStream and its AVCodecContext. The codec member of AVStream was previously used for this but is now deprecated.
Definition at line 29 of file mythavutil.h.
|
default |
MythCodecMap::~MythCodecMap | ( | ) |
Definition at line 282 of file mythavutil.cpp.
AVCodecContext * MythCodecMap::GetCodecContext | ( | const AVStream * | Stream, |
const AVCodec * | Codec = nullptr , |
||
bool | NullCodec = false |
||
) |
Definition at line 287 of file mythavutil.cpp.
Referenced by MythAVFormatWriter::AddAudioStream(), MythAVFormatWriter::AddVideoStream(), MythMediaCodecContext::GetBestSupportedCodec(), MPEG2fixup::getCodecContext(), getFileInfo(), AvFormatDecoder::GetFrame(), AvFormatDecoder::GetSubHeader(), MythMMALContext::GetSupportedCodec(), AvFormatDecoder::GetTrackDesc(), grabThumbnail(), AvFormatDecoder::H264PreProcessPkt(), ThumbFinder::initAVCodec(), avfDecoder::initialize(), AvFormatDecoder::MpegPreProcessPkt(), MythAVFormatWriter::OpenAudio(), AvFormatDecoder::OpenFile(), MythAVFormatWriter::OpenVideo(), AvFormatDecoder::PreProcessVideoPacket(), AvFormatDecoder::ProcessAudioPacket(), AvFormatDecoder::ProcessSubtitlePacket(), AvFormatDecoder::ProcessVideoFrame(), AvFormatDecoder::ProcessVideoPacket(), AvFormatDecoder::ScanStreams(), AvFormatDecoder::SetupAudioStream(), MythAVFormatWriter::WriteAudioFrame(), and MythAVFormatWriter::WriteVideoFrame().
AVCodecContext * MythCodecMap::FindCodecContext | ( | const AVStream * | Stream | ) |
Definition at line 327 of file mythavutil.cpp.
Referenced by AvFormatDecoder::RemoveAudioStreams(), AvFormatDecoder::ScanStreams(), and AvFormatDecoder::SeekReset().
void MythCodecMap::FreeCodecContext | ( | const AVStream * | Stream | ) |
Definition at line 335 of file mythavutil.cpp.
Referenced by MythAVFormatWriter::AddVideoStream(), ThumbFinder::closeAVCodec(), AvFormatDecoder::CloseCodecs(), avfDecoder::deinit(), FreeAllContexts(), MythMediaCodecContext::GetBestSupportedCodec(), getFileInfo(), MythMMALContext::GetSupportedCodec(), grabThumbnail(), AvFormatDecoder::RemoveAudioStreams(), and AvFormatDecoder::ScanStreams().
void MythCodecMap::FreeAllContexts | ( | ) |
Definition at line 347 of file mythavutil.cpp.
Referenced by ~MythCodecMap().
|
private |
Definition at line 42 of file mythavutil.h.
Referenced by FindCodecContext(), FreeAllContexts(), FreeCodecContext(), and GetCodecContext().
|
private |
Definition at line 46 of file mythavutil.h.
Referenced by FreeAllContexts(), FreeCodecContext(), and GetCodecContext().