MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ create_container()

std::shared_ptr< Kakshya::SignalSourceContainer > MayaFlux::IO::VideoFileReader::create_container ( )
overridevirtual

Create and initialize a container from the file.

Returns
Initialized container appropriate for the file type.

The specific container type returned depends on the file format:

  • Audio files -> SoundFileContainer
  • Video files -> VideoContainer (future)
  • Image files -> ImageContainer (future)
  • Data files -> DataContainer variants

Implements MayaFlux::IO::FileReader.

Definition at line 242 of file VideoFileReader.cpp.

243{
244 std::shared_lock lock(m_context_mutex);
245 if (!m_demux || !m_video) {
246 set_error("File not open");
247 return nullptr;
248 }
249 return std::make_shared<Kakshya::VideoFileContainer>();
250}
void set_error(const std::string &msg) const
std::shared_ptr< FFmpegDemuxContext > m_demux
std::shared_ptr< VideoStreamContext > m_video

References m_context_mutex, m_demux, m_video, and set_error().

+ Here is the call graph for this function: