|
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 26 of file mythavutil.h.
|
default |
| MythCodecMap::~MythCodecMap | ( | ) |
Definition at line 287 of file mythavutil.cpp.
| AVCodecContext * MythCodecMap::FindCodecContext | ( | const AVStream * | Stream | ) |
Definition at line 329 of file mythavutil.cpp.
Referenced by AvFormatDecoder::RemoveAudioStreams(), AvFormatDecoder::ScanStreams(), and AvFormatDecoder::SeekReset().
| void MythCodecMap::FreeAllContexts | ( | ) |
Definition at line 349 of file mythavutil.cpp.
Referenced by ~MythCodecMap().
| void MythCodecMap::FreeCodecContext | ( | const AVStream * | Stream | ) |
Definition at line 337 of file mythavutil.cpp.
Referenced by MythAVFormatWriter::AddVideoStream(), AvFormatDecoder::autoSelectVideoTrack(), ThumbFinder::closeAVCodec(), AvFormatDecoder::CloseCodecs(), avfDecoder::deinit(), FreeAllContexts(), getFileInfo(), MythMMALContext::GetSupportedCodec(), grabThumbnail(), AvFormatDecoder::RemoveAudioStreams(), and AvFormatDecoder::ScanStreams().
| AVCodecContext * MythCodecMap::GetCodecContext | ( | const AVStream * | Stream, |
| const AVCodec * | Codec = nullptr, |
||
| bool | NullCodec = false |
||
| ) |
Definition at line 292 of file mythavutil.cpp.
Referenced by MythAVFormatWriter::AddAudioStream(), MythAVFormatWriter::AddVideoStream(), AvFormatDecoder::autoSelectVideoTrack(), MPEG2fixup::getCodecContext(), getFileInfo(), AvFormatDecoder::GetFrame(), AvFormatDecoder::GetSubHeader(), MythMMALContext::GetSupportedCodec(), AvFormatDecoder::GetTrackDesc(), grabThumbnail(), ThumbFinder::initAVCodec(), avfDecoder::initialize(), MythAVFormatWriter::OpenAudio(), AvFormatDecoder::OpenFile(), MythAVFormatWriter::OpenVideo(), AvFormatDecoder::ScanStreams(), AvFormatDecoder::SetupAudioStream(), MythAVFormatWriter::WriteAudioFrame(), and MythAVFormatWriter::WriteVideoFrame().
|
private |
Definition at line 40 of file mythavutil.h.
Referenced by FreeAllContexts(), FreeCodecContext(), and GetCodecContext().
|
private |
Definition at line 39 of file mythavutil.h.
Referenced by FindCodecContext(), FreeAllContexts(), FreeCodecContext(), and GetCodecContext().