MayaFlux 0.2.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 85 of file FrameAccessProcessor.cpp.

86{
90 std::source_location::current(),
91 "FrameAccessProcessor requires VIDEO_COLOR or IMAGE_COLOR modality, got {}",
92 static_cast<int>(m_structure.modality));
93 }
94
95 if (m_width == 0 || m_height == 0) {
97 std::source_location::current(),
98 "Frame dimensions cannot be zero ({}×{})",
100 }
101
102 if (m_channels == 0) {
104 std::source_location::current(),
105 "Channel count cannot be zero");
106 }
107
108 if (m_total_frames == 0) {
110 "FrameAccessProcessor: container has zero frames");
111 }
112
115 "FrameAccessProcessor: batch size {} exceeds total frames {}, clamping",
118 }
119
121 "FrameAccessProcessor validated: {}×{}×{}, {} total frames, batch {}",
123}
#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.
@ VIDEO_COLOR
4D video (time + 2D + color)
@ IMAGE_COLOR
2D RGB/RGBA image

References MayaFlux::Journal::ContainerProcessing, 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, and MayaFlux::Kakshya::VIDEO_COLOR.

Referenced by on_attach().

+ Here is the caller graph for this function: