1088 {
1089#if defined(FL_IS_AVR)
1090
1093
1094 for (
int x = 0;
x < w; ++
x) {
1095
1096 {
1097 const RGB_T *src = pixels +
x;
1098 RGB_T *dst = scratch + R;
1099 for (int i = 0; i < h; ++i) {
1100 *dst++ = *src;
1101 src += w;
1102 }
1103 }
1104 if (ApplyAlpha)
1105 apply_pass_alpha_1ch<R>(scratch, pixels +
x, h, w, alpha);
1106 else
1107 apply_pass_1ch<R>(scratch, pixels +
x, h, w);
1108 }
1109#else
1110
1111
1112 if (ApplyAlpha) {
1114 pixels, w, h, scratch, alpha);
1115 } else {
1117 pixels, w, h, scratch, alpha);
1118 }
1119#endif
1120}
static FL_OPTIMIZE_FUNCTION void vpass_rowmajor_impl(RGB_T *pixels, int w, int h, RGB_T *scratch, AlphaT alpha)
#define FL_BUILTIN_MEMSET(dest, val, n)