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

◆ read_all()

std::vector< Kakshya::DataVariant > MayaFlux::IO::ImageReader::read_all ( )
overridevirtual

Read all data from the file into memory.

Returns
DataVariant vector containing the file data.

Implements MayaFlux::IO::FileReader.

Definition at line 108 of file ImageReader.cpp.

109{
110 if (!m_is_open || !m_image_data) {
111 m_last_error = "No image open";
112 return {};
113 }
114
115 return { m_image_data->pixels };
116}
std::optional< ImageData > m_image_data

References m_image_data, m_is_open, and m_last_error.