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

◆ element_type()

std::type_index MayaFlux::Kakshya::FrameView::element_type ( ) const
inline

Runtime query for the native element type of this frame.

Returns std::type_index of the active span's value_type. Typical values:

  • typeid(uint8_t) — 8-bit image/video (RGBA, etc.)
  • typeid(uint16_t) — 16-bit image (UNORM or half-float encoded)
  • typeid(float) — HDR image (R32F/RGBA32F)
  • typeid(double) — audio

Use this to branch once before calling as<T>() when the container type is not statically known at the call site.

Definition at line 659 of file NDData.hpp.

660 {
661 return std::visit([](const auto& s) {
662 return std::type_index(typeid(typename std::decay_t<decltype(s)>::value_type));
663 },
664 m_span);
665 }

References m_span.