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

◆ byte_size()

size_t MayaFlux::IO::ImageData::byte_size ( ) const
inline

Total byte size of pixel storage, dispatched on variant.

Definition at line 41 of file ImageReader.hpp.

42 {
43 return std::visit(
44 [](const auto& vec) { return vec.size() * sizeof(typename std::decay_t<decltype(vec)>::value_type); },
45 pixels);
46 }

References pixels.