48 const auto result = ioContext->Open(path,
false);
92 const auto result = ioContext->Open(path,
true);
117 if (stream ==
nullptr)
140 if (index < GetStreamsCount())
141 return GetStreams()[index].get();
struct AVDictionary AVDictionary
AVDictionary * Release() noexcept
std::unique_ptr< AVOutputFormatWrapper > mOutputFormat
AVFormatContextWrapper(const AVFormatContextWrapper &)=delete
virtual ~AVFormatContextWrapper()
virtual const AVStreamWrapper * GetStream(int index) const noexcept
const AVOutputFormatWrapper * GetOutputFormat() const noexcept
virtual void SetAVIOContext(std::unique_ptr< AVIOContextWrapper > pb) noexcept=0
const FFmpegFunctions & mFFmpeg
AVIOContextWrapper::OpenResult OpenInputContext(const wxString &path, const AVInputFormatWrapper *inputFormat, AVDictionaryWrapper options)
std::unique_ptr< AVPacketWrapper > ReadNextPacket()
AVFormatContext * GetWrappedValue() noexcept
std::unique_ptr< AVStreamWrapper > CreateStream()
const AVInputFormatWrapper * GetInputFormat() const noexcept
std::unique_ptr< AVInputFormatWrapper > mInputFormat
virtual void UpdateStreamList() noexcept=0
virtual AVInputFormat * GetIFormat() const noexcept=0
AVIOContextWrapper::OpenResult OpenOutputContext(const wxString &path)
AVFormatContext * mAVFormatContext
std::unique_ptr< AVInputFormatWrapper > CreateAVInputFormatWrapper(AVInputFormat *inputFormat) const
std::unique_ptr< AVIOContextWrapper > CreateAVIOContext() const
std::unique_ptr< AVStreamWrapper > CreateAVStreamWrapper(AVStream *stream, bool forEncoding) const
std::unique_ptr< AVPacketWrapper > CreateAVPacketWrapper() const