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

◆ byte_size()

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

Total byte size of pixel storage, dispatched on variant.

Definition at line 70 of file ImageData.hpp.

71 {
72 return std::visit(
73 [](const auto& vec) { return vec.size() * sizeof(typename std::decay_t<decltype(vec)>::value_type); },
74 pixels);
75 }

References pixels.