MayaFlux 0.4.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 329 of file VideoFileWriter.cpp.

330{
331 if (!m_open.load(std::memory_order_acquire) || !buffer)
332 return;
333
334 if (buffer->get_pixel_data().empty() && !buffer->has_texture()) {
336 "VideoFileWriter::write(TextureBuffer): no CPU pixels and no GPU texture");
337 return;
338 }
339
340 post(DownloadCmd { .buffer = buffer });
341}
#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: