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

◆ convert() [1/3]

void fl::Gamma8Impl::convert ( fl::span< const fl::ufixed_point< 8, 8 > > input,
fl::span< fl::ufixed_point< 8, 8 > > output ) const
inlineoverridevirtual

Implements fl::Gamma8.

Definition at line 436 of file ease.cpp.hpp.

437 {
439 const int n =
440 input.size() < output.size() ? input.size() : output.size();
441 for (int i = 0; i < n; ++i) {
442 output[i] = FP::from_raw(lerpLut(input[i]));
443 }
444 }
u16 lerpLut(const fl::ufixed_point< 8, 8 > &fp) const FL_NO_EXCEPT
Definition ease.cpp.hpp:447
constexpr fl::size size() const FL_NO_EXCEPT
Definition span.h:483
ufixed_integer< IntBits, FracBits > ufixed_point

References fl::FL_NO_EXCEPT, and lerpLut().

+ Here is the call graph for this function: