FastLED 3.10.6
Loading...
Searching...
No Matches

◆ wave8_transpose_8_bf1()

void fl::detail::wave8_transpose_8_bf1 ( const u8 lanes[8],
u8 W0,
u8 W1,
u8 output[8 *sizeof(Wave8Byte)] )

Definition at line 205 of file wave8.cpp.hpp.

207 {
208 u8 d_mask[8];
209 u8 m0_mask[8];
210 const u8 D_byte = W0 ^ W1;
211 for (int p = 0; p < 8; ++p) {
212 const int shift = 7 - p;
213 d_mask[p] = ((D_byte >> shift) & 1) ? 0xFFu : 0x00u;
214 m0_mask[p] = ((W0 >> shift) & 1) ? 0xFFu : 0x00u;
215 }
216 u8 cols[8];
217 spread_transpose8_symbol(lanes, cols);
218 for (int s = 0; s < 8; ++s) {
219 const u8 col = cols[s];
220 for (int p = 0; p < 8; ++p) {
221 output[s * 8 + p] = m0_mask[p] ^ (col & d_mask[p]);
222 }
223 }
224}
FASTLED_FORCE_INLINE FL_IRAM FL_OPTIMIZE_FUNCTION void spread_transpose8_symbol(const u8 l[8], u8 out[8])
Transpose one symbol of 8 lanes (8 input bytes) into 8 output bytes: 8 pulses × 1 byte (bit L = lane ...
unsigned char u8
Definition stdint.h:131
@ W1
White is second.
Definition eorder.h:26
@ W0
White is first.
Definition eorder.h:27

References fl::FL_NO_EXCEPT, spread_transpose8_symbol(), fl::W0, and fl::W1.

Referenced by fl::wave8Transpose_8_bf1().

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