Create a capture builder for a video file.
200{
201 auto [video, audio] = io_manager->load_video(filepath, config);
202 if (!video) {
204 std::source_location::current(), "Failed to load video file: {}", filepath);
205 }
206
207 auto buffer = io_manager->hook_video_container_to_buffer(video);
210 std::source_location::current(), "Failed to hook video file to graphics buffer: {}", filepath);
211 }
212
213 if (render) {
215 }
216
217 return CaptureBuilder(
buffer);
218}
std::shared_ptr< NetworkGeometryBuffer > buffer
@ AsyncIO
Async I/O operations ( network, streaming)
@ Kriya
Automatable tasks and fluent scheduling api for Nodes and Buffers.
bool ensure_rendering(const std::shared_ptr< Buffers::VKBuffer > &buffer, const Portal::Graphics::RenderConfig &config)
Make a buffer draw to the window in a render config, unless it already does.