MayaFlux 0.3.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 141 of file ImageReader.cpp.

142{
143 if (!m_is_open || !m_image_data) {
144 m_last_error = "No image open";
145 return {};
146 }
147
148 return { m_image_data->pixels };
149}
std::optional< ImageData > m_image_data

References m_image_data, m_is_open, and m_last_error.