MythTV
master
|
#include <libmythtv/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 27 of file mythavutil.h.
|
default |
MythCodecMap::~MythCodecMap | ( | ) |
Definition at line 283 of file mythavutil.cpp.
AVCodecContext * MythCodecMap::GetCodecContext | ( | const AVStream * | Stream, |
const AVCodec * | Codec = nullptr , |
||
bool | NullCodec = false |
||
) |
Definition at line 288 of file mythavutil.cpp.
Referenced by MythAVFormatWriter::AddAudioStream(), MythAVFormatWriter::AddVideoStream(), AvFormatDecoder::autoSelectVideoTrack(), 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 328 of file mythavutil.cpp.
Referenced by AvFormatDecoder::RemoveAudioStreams(), AvFormatDecoder::ScanStreams(), and AvFormatDecoder::SeekReset().
void MythCodecMap::FreeCodecContext | ( | const AVStream * | Stream | ) |
Definition at line 336 of file mythavutil.cpp.
Referenced by MythAVFormatWriter::AddVideoStream(), AvFormatDecoder::autoSelectVideoTrack(), ThumbFinder::closeAVCodec(), AvFormatDecoder::CloseCodecs(), avfDecoder::deinit(), FreeAllContexts(), MythMediaCodecContext::GetBestSupportedCodec(), getFileInfo(), MythMMALContext::GetSupportedCodec(), grabThumbnail(), AvFormatDecoder::RemoveAudioStreams(), and AvFormatDecoder::ScanStreams().
void MythCodecMap::FreeAllContexts | ( | ) |
Definition at line 348 of file mythavutil.cpp.
Referenced by ~MythCodecMap().
|
private |
Definition at line 40 of file mythavutil.h.
Referenced by FindCodecContext(), FreeAllContexts(), FreeCodecContext(), and GetCodecContext().
|
private |
Definition at line 41 of file mythavutil.h.
Referenced by FreeAllContexts(), FreeCodecContext(), and GetCodecContext().