|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::Kakshya::DynamicVideoStream::append_frame | ( | const std::shared_ptr< Core::VKImage > & | image, |
| const std::shared_ptr< Buffers::VKBuffer > & | staging = nullptr |
||
| ) |
Download a GPU image straight into the next frame slot.
Blocking, like TextureContainer::from_image. The image must match the stream's width, height and format. Pass a persistent staging buffer (Buffers::create_image_staging_buffer(get_frame_byte_size())) to avoid a per-call Vulkan allocation.
| image | Initialised source image. |
| staging | Optional host-visible staging buffer. |
Definition at line 99 of file DynamicVideoStream.cpp.
References claim_frame_slot(), MayaFlux::Journal::ContainerProcessing, MayaFlux::Portal::Graphics::TextureLoom::download_data(), finish_frame(), MayaFlux::Kakshya::VideoStreamContainer::get_frame_byte_size(), image, MayaFlux::Portal::Graphics::TextureLoom::instance(), MayaFlux::Journal::Kakshya, and MF_ERROR.
Here is the call graph for this function: