FastLED 3.9.15
Loading...
Searching...
No Matches

◆ apply_pass()

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

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

563 {
564 constexpr int shift = 2 * R;
565 using P = pixel_ops<RGB_T>;
566 for (int i = 0; i < count; ++i) {
567 acc_t r, g, b;
568 interior_row<R, RGB_T, acc_t>::apply(pad, R + i, r, g, b);
569 *out = P::make(static_cast<acc_t>(r >> shift),
570 static_cast<acc_t>(g >> shift),
571 static_cast<acc_t>(b >> shift));
572 out += stride;
573 }
574}
FASTLED_FORCE_INLINE fl::u8 P(fl::u8 x)

References fl::P().

Referenced by hpass_row().

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