MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_last_frame

std::function<std::shared_ptr<std::vector<uint8_t> >( const std::shared_ptr<void>& window_handle)> MayaFlux::Registry::Service::DisplayService::get_last_frame

Returns the last completed full-surface pixel readback for a window.

Published by the per-window readback thread once a capture copy completes. Lock-free: the readback thread stores the buffer with release, callers load with acquire via an atomic shared_ptr, so the pointer is safe to read from any thread. Returns nullptr if no frame has completed yet or capture is unavailable on this surface.

Raw bytes in swapchain pixel format. Width and height match the current swapchain extent from get_swapchain_extent().

Definition at line 177 of file DisplayService.hpp.