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

◆ copy()

template<EOrder RGB_ORDER, int LANES = 1, uint32_t MASK = 0xFFFFFFFF>
template<typename PixelControllerT>
void PixelController< RGB_ORDER, LANES, MASK >::copy ( const PixelControllerT & other)
inline

Definition at line 109 of file pixel_controller.h.

109 {
110 static_assert(int(kLanes) == int(PixelControllerT::kLanes), "PixelController lanes must match or mOffsets will be wrong");
111 static_assert(int(kMask) == int(PixelControllerT::kMask), "PixelController mask must match or else one or the other controls different lanes");
112 d[0] = other.d[0];
113 d[1] = other.d[1];
114 d[2] = other.d[2];
115 e[0] = other.e[0];
116 e[1] = other.e[1];
117 e[2] = other.e[2];
118 mData = other.mData;
122 for(int i = 0; i < LANES; ++i) { mOffsets[i] = other.mOffsets[i]; }
123 }
int8_t mAdvance
how many bytes to advance the pointer by each time. For CRGB this is 3.
int mLenRemaining
counter for the number of LEDs left to process
const uint8_t * mData
pointer to the underlying LED data
uint8_t d[3]
values for the scaled dither signal
int mOffsets[LANES]
the number of bytes to offset each lane from the starting pointer
ColorAdjustment mColorAdjustment
int mLen
number of LEDs in the data for one lane
uint8_t e[3]
values for the unscaled dither signal
Pixel controller class.

References d, e, kLanes, kMask, mAdvance, mColorAdjustment, mData, mLen, mLenRemaining, and mOffsets.

Referenced by PixelController(), and PixelController().

+ Here is the caller graph for this function: