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

◆ build_metadata()

void MayaFlux::IO::VideoFileReader::build_metadata ( const std::shared_ptr< FFmpegDemuxContext > &  demux,
const std::shared_ptr< VideoStreamContext > &  video 
) const
private

Definition at line 180 of file VideoFileReader.cpp.

183{
184 FileMetadata meta;
185 meta.mime_type = "video";
186 demux->extract_container_metadata(meta);
187 video->extract_stream_metadata(*demux, meta);
188
189 std::lock_guard lock(m_metadata_mutex);
190 m_cached_metadata = std::move(meta);
191}
std::optional< FileMetadata > m_cached_metadata

References m_cached_metadata, m_metadata_mutex, and MayaFlux::IO::FileMetadata::mime_type.

Referenced by open().

+ Here is the caller graph for this function: