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

◆ write() [1/5]

void MayaFlux::IO::VideoFileWriter::write ( const std::shared_ptr< Buffers::TextureBuffer > &  buffer)

Definition at line 330 of file VideoFileWriter.cpp.

331{
332 if (!m_open.load(std::memory_order_acquire) || !buffer)
333 return;
334
335 if (buffer->get_pixel_data().empty() && !buffer->has_texture()) {
337 "VideoFileWriter::write(TextureBuffer): no CPU pixels and no GPU texture");
338 return;
339 }
340
341 post(DownloadCmd { .buffer = buffer });
342}
#define MF_WARN(comp, ctx,...)
bool post(const WorkItem &item)
@ FileIO
Filesystem I/O operations.
@ IO
Networking, file handling, streaming.

References MayaFlux::IO::VideoFileWriter::DownloadCmd::buffer, MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, m_open, MF_WARN, and post().

+ Here is the call graph for this function: