|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Core::VKImage > MayaFlux::Kakshya::WindowContainer::region_to_image | ( | const Region & | region | ) | const |
Crop a region from the last readback and refresh its cached VKImage.
Performs a CPU-side crop via extract_region_data and uploads it. Region coordinates follow IMAGE_COLOR convention: [SPATIAL_Y, SPATIAL_X]. The returned image dimensions are derived from the region extent. The image is retained by the container and refreshed for any later region with the same width and height.
| region | Pixel rectangle. Must have at least 2 coordinates. |
Definition at line 277 of file WindowContainer.cpp.
References MayaFlux::Journal::ContainerProcessing, MayaFlux::Kakshya::Region::end_coordinates, format, get_image_format(), MayaFlux::Portal::Graphics::TextureLoom::instance(), MayaFlux::Journal::Kakshya, m_image_cache_lock, m_region_images, m_window, MF_RT_ERROR, pixels, MayaFlux::Portal::Graphics::TextureLoom::refresh_cached_image(), snapshot_pixels(), and MayaFlux::Kakshya::Region::start_coordinates.
Here is the call graph for this function: