|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| uint32_t MayaFlux::IO::IOManager::capture_spatial | ( | const std::string & | filepath, |
| std::vector< IO::SpatialCaptureSource > | sources, | ||
| uint32_t | max_frames = 0, |
||
| uint64_t | frame_interval = 1 |
||
| ) |
Begin (or join) recording time-sampled streams into an Alembic archive.
Resolves filepath to a shared SpatialCache: the first call for a given path opens it, and a later call passing the same path reuses the cache already open, so several independent captures can each record their own streams into one archive. Unlike capture_volume, nothing is numbered per frame: Alembic carries time natively, so every sample of every stream lands in the one file across the whole recording.
Spawns a SpatialCapture on the engine scheduler and retains it, the same GraphicsRoutine/FrameDelay shape capture_volume uses. For a capture the caller owns and drives itself, construct IO::SpatialCapture directly against a SpatialCache of its own.
| filepath | Destination .abc path. |
| sources | Streams to tick together every frame. Build one with IO::make_network_geometry_source() or a hand-written IO::SpatialCaptureSource. |
| max_frames | Stop after this many frames. Zero is unbounded. |
| frame_interval | Frames between captures. |
Definition at line 1345 of file IOManager.cpp.
References MayaFlux::IO::IOManager::SpatialCaptureEntry::capture, MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, m_next_spatial_capture_id, m_scheduler, m_spatial_cache_refcounts, m_spatial_caches, m_spatial_captures, m_spatial_captures_mutex, and MF_ERROR.