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

◆ append_frame() [1/3]

bool MayaFlux::Kakshya::DynamicVideoStream::append_frame ( const ImageData &  image)

Write one image, for example one read back from a GPU image.

Width, height and format must match the stream.

Returns
True if the frame was stored.

Definition at line 118 of file DynamicVideoStream.cpp.

119{
120 if (image.width != m_width || image.height != m_height || image.format != m_format) {
122 "DynamicVideoStream::append_frame image {}x{} does not match stream {}x{}",
123 image.width, image.height, m_width, m_height);
124 return false;
125 }
126
127 return append_frame(std::span<const uint8_t>(
128 static_cast<const uint8_t*>(image.data()), image.byte_size()));
129}
#define MF_WARN(comp, ctx,...)
IO::ImageData image
Definition Decoder.cpp:47
bool append_frame(std::span< const uint8_t > pixels)
Write one frame at the write head and advance it.
@ ContainerProcessing
Container operations (Kakshya - file/stream/region processing)
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.

References append_frame(), MayaFlux::Journal::ContainerProcessing, image, MayaFlux::Journal::Kakshya, MayaFlux::Kakshya::VideoStreamContainer::m_format, MayaFlux::Kakshya::VideoStreamContainer::m_height, MayaFlux::Kakshya::VideoStreamContainer::m_width, and MF_WARN.

+ Here is the call graph for this function: