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

◆ validate()

void FrameAccessProcessor::validate ( )
private

Validate that the container is suitable for frame-based processing.

Definition at line 93 of file FrameAccessProcessor.cpp.

94{
100 std::source_location::current(),
101 "FrameAccessProcessor requires a frame-structured modality "
102 "(VIDEO_COLOR, IMAGE_COLOR, VIDEO_DEPTH, DEPTH_MAP), got {}",
103 static_cast<int>(m_structure.modality));
104 }
105
106 if (m_width == 0 || m_height == 0) {
108 std::source_location::current(),
109 "Frame dimensions cannot be zero ({}×{})",
111 }
112
113 if (m_channels == 0) {
115 std::source_location::current(),
116 "Channel count cannot be zero");
117 }
118
119 if (m_total_frames == 0) {
121 "FrameAccessProcessor: container has zero frames");
122 }
123
126 "FrameAccessProcessor: batch size {} exceeds total frames {}, clamping",
129 }
130
132 "FrameAccessProcessor validated: {}×{}×{}, {} total frames, batch {}",
134}
#define MF_INFO(comp, ctx,...)
#define MF_WARN(comp, ctx,...)
@ ContainerProcessing
Container operations (Kakshya - file/stream/region processing)
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.
@ DEPTH_MAP
[height, width, components] - range/disparity image
@ VIDEO_DEPTH
[frames, height, width, components] - streaming range data
@ VIDEO_COLOR
4D video (time + 2D + color)
@ IMAGE_COLOR
2D RGB/RGBA image

References MayaFlux::Journal::ContainerProcessing, MayaFlux::Kakshya::DEPTH_MAP, MayaFlux::Kakshya::IMAGE_COLOR, MayaFlux::Journal::Kakshya, m_channels, m_frames_per_batch, m_height, m_structure, m_total_frames, m_width, MF_INFO, MF_WARN, MayaFlux::Kakshya::ContainerDataStructure::modality, MayaFlux::Kakshya::VIDEO_COLOR, and MayaFlux::Kakshya::VIDEO_DEPTH.

Referenced by on_attach().

+ Here is the caller graph for this function: