FastLED 3.10.8
Loading...
Searching...
No Matches

◆ getu8()

u8 fl::WaveSimulation1D::getu8 ( fl::size x) const

Definition at line 361 of file wave_simulation.cpp.hpp.

361 {
362 i16 value = geti16(x);
363 if (mSim->getHalfDuplex()) {
364 u16 v2 = static_cast<u16>(value);
365 switch (mU8Mode) {
367 return half_duplex_blend_linear(v2);
370 }
371 }
372 return static_cast<u8>(((static_cast<u16>(value) + 32768)) >> 8);
373}
i16 geti16(fl::size x) const FL_NO_EXCEPT
fl::unique_ptr< WaveSimulation1D_Real > mSim
U8EasingFunction mU8Mode
fl::u8 half_duplex_blend_sqrt_q15(fl::u16 x) FL_NO_EXCEPT
fl::u8 half_duplex_blend_linear(fl::u16 x) FL_NO_EXCEPT
unsigned char u8
Definition stdint.h:131
constexpr int type_rank< T >::value

References fl::FL_NO_EXCEPT, geti16(), mSim, mU8Mode, fl::type_rank< T >::value, fl::WAVE_U8_MODE_LINEAR, fl::WAVE_U8_MODE_SQRT, and fl::x.

Referenced by ~WaveSimulation1D().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: