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

◆ in_state()

static bool MayaFlux::Core::TabletFrame::in_state ( std::span< const double >  frame,
TabletState  bit 
)
inlinestaticnoexcept

Test a state bit on a frame.

Definition at line 101 of file TabletFrame.hpp.

103 {
104 return (static_cast<uint32_t>(state_of(frame))
105 & static_cast<uint32_t>(bit))
106 != 0U;
107 }
static TabletState state_of(std::span< const double > frame) noexcept
Decode the state slot of a frame.