MayaFlux 0.4.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 243 of file VideoFileReader.cpp.

244{
245 std::shared_lock lock(m_context_mutex);
246 if (!m_demux || !m_video) {
247 set_error("File not open");
248 return nullptr;
249 }
250 return std::make_shared<Kakshya::VideoFileContainer>();
251}
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: