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

◆ WindowContainer() [1/3]

MayaFlux::Kakshya::WindowContainer::WindowContainer ( std::shared_ptr< Core::Window window,
uint32_t  frame_capacity = 60 
)
explicit

Construct from an existing managed window.

Parameters
windowLive window whose surface will be addressed as NDData.
frame_capacityNumber of rendered images to retain in m_data. Defaults to 1 (current behaviour).

Definition at line 49 of file WindowContainer.cpp.

51 : m_window(std::move(window))
52 , m_frame_capacity(frame_capacity)
53{
54 if (!m_window) {
55 error<std::invalid_argument>(
58 std::source_location::current(),
59 "WindowContainer requires a valid window");
60 }
61
63
65 "WindowContainer created for window '{}' ({}x{} frames={})",
66 m_window->get_create_info().title,
68}
#define MF_INFO(comp, ctx,...)
std::shared_ptr< Core::Window > m_window
@ ContainerProcessing
Container operations (Kakshya - file/stream/region processing)
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.
static uint64_t get_height(const std::vector< DataDimension > &dimensions)
Extract height from image/video dimensions.
static uint64_t get_width(const std::vector< DataDimension > &dimensions)
Extract width from image/video dimensions.

References MayaFlux::Journal::ContainerProcessing, MayaFlux::Kakshya::ContainerDataStructure::get_height(), MayaFlux::Kakshya::ContainerDataStructure::get_width(), MayaFlux::Journal::Kakshya, m_frame_capacity, m_structure, m_window, MF_INFO, and setup_dimensions().

+ Here is the call graph for this function: