|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| VideoLoadResult MayaFlux::IO::IOManager::load_video | ( | const std::string & | filepath, |
| LoadConfig | config | ||
| ) |
Load a video file into a VideoFileContainer.
Performs can_read check, opens with metadata and region extraction, registers the reader (assigning a globally unique reader_id), calls setup_io_service(), loads into container, and configures the default FrameAccessProcessor with auto_advance enabled.
Passing VideoReadOptions::EXTRACT_AUDIO also extracts the embedded SoundFileContainer, configures its ContiguousAccessProcessor identically to load_audio_file() in Depot, and populates VideoLoadResult::audio.
| filepath | Path to the video file. |
| config | LoadConfig struct containing options and target dimensions. |
Definition at line 83 of file IOManager.cpp.
References MayaFlux::Journal::API, MayaFlux::IO::VideoLoadResult::audio, MayaFlux::IO::LoadConfig::audio_options, configure_audio_processor(), configure_frame_processor(), MayaFlux::IO::EXTRACT_AUDIO, MayaFlux::IO::LoadConfig::file_options, MayaFlux::Journal::FileIO, m_extracted_audio, m_sample_rate, MF_ERROR, MF_INFO, MF_WARN, register_video_reader(), release_video_reader(), MayaFlux::Journal::Runtime, MayaFlux::IO::LoadConfig::target_height, MayaFlux::IO::LoadConfig::target_width, MayaFlux::IO::VideoLoadResult::video, and MayaFlux::IO::LoadConfig::video_options.
Here is the call graph for this function: