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

◆ hold_frame()

std::shared_ptr< Core::VKImage > MayaFlux::Yantra::VisionAnalyzer::hold_frame ( const std::shared_ptr< Core::VKImage > &  image)
private

Copy image into this analyzer's own frame image.

Null on failure.

Definition at line 483 of file VisionAnalyzer.cpp.

484{
486 auto held = loom.acquire_cached_image(m_frame_cache, {
487 .width = image->get_width(),
488 .height = image->get_height(),
489 .format = Portal::Graphics::ImageFormat::RGBA32F,
491 });
492
493 constexpr auto filter = Portal::Graphics::FilterMode::NEAREST;
494 if (!held || !loom.can_blit(image, held, filter) || !loom.blit_layer(image, held, { .filter = filter }))
495 return nullptr;
496 return held;
497}
IO::ImageData image
Definition Decoder.cpp:47
uint32_t height
Portal::Graphics::ImageCacheEntry m_frame_cache
@ NEAREST
Nearest neighbor (pixelated)

References height, image, MayaFlux::Portal::Graphics::TextureLoom::instance(), m_frame_cache, MayaFlux::Portal::Graphics::NEAREST, and MayaFlux::Portal::Graphics::ImageKey::STORAGE_2D.

Referenced by advance().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: