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

◆ write() [3/5]

void MayaFlux::IO::VideoFileWriter::write ( const std::shared_ptr< Kakshya::VideoStreamContainer > &  container,
uint64_t  frame_index = 0 
)

Definition at line 306 of file VideoFileWriter.cpp.

308{
309 if (!m_open.load(std::memory_order_acquire) || !container)
310 return;
311
312 auto span = container->get_frame_pixels(frame_index);
313 if (span.empty()) {
315 "VideoFileWriter::write(VideoStreamContainer): get_frame_pixels({}) returned empty",
316 frame_index);
317 return;
318 }
319
320 post(RawFrame {
321 .pixels = std::vector<uint8_t>(span.begin(), span.end()),
322 .width = container->get_width(),
323 .height = container->get_height() });
324}
#define MF_WARN(comp, ctx,...)
bool post(const WorkItem &item)
@ FileIO
Filesystem I/O operations.
@ IO
Networking, file handling, streaming.

References MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, m_open, MF_WARN, MayaFlux::IO::VideoFileWriter::RawFrame::pixels, and post().

+ Here is the call graph for this function: