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

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