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

◆ apply_pass_alpha()

template<int R, typename RGB_T, typename acc_t, typename AlphaT>
FL_NO_INLINE_IF_AVR static FL_OPTIMIZE_FUNCTION void fl::gfx::blur_detail::apply_pass_alpha ( const RGB_T * pad,
RGB_T * out,
int count,
int stride,
AlphaT alpha )
static

Definition at line 579 of file blur.cpp.hpp.

580 {
581 constexpr int shift = 2 * R;
582 using P = pixel_ops<RGB_T>;
583 for (int i = 0; i < count; ++i) {
584 acc_t r, g, b;
585 interior_row<R, RGB_T, acc_t>::apply(pad, R + i, r, g, b);
586 *out = P::make(static_cast<acc_t>(r >> shift),
587 static_cast<acc_t>(g >> shift),
588 static_cast<acc_t>(b >> shift), alpha);
589 out += stride;
590 }
591}
FASTLED_FORCE_INLINE fl::u8 P(fl::u8 x) FL_NO_EXCEPT
InputGamut g
Definition rgbw.h:125

References fl::FL_NO_EXCEPT, fl::g, and fl::P().

Referenced by hpass_row().

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