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

◆ Frame() [1/3]

fl::Frame::Frame ( int pixels_per_frame)
explicit

Definition at line 14 of file frame.cpp.hpp.

14 : mPixelsCount(pixels_count), mRgb(), mIsFromCodec(false) {
15 mRgb.resize(pixels_count);
16 if (pixels_count > 0) {
17 fl::memset((u8*)mRgb.data(), 0, pixels_count * sizeof(CRGB));
18 }
19}
fl::vector_psram< CRGB > mRgb
Definition frame.h:65
bool mIsFromCodec
Definition frame.h:72
const size_t mPixelsCount
Definition frame.h:64
unsigned char u8
Definition stdint.h:131
fl::CRGB CRGB
Definition video.h:15
void * memset(void *s, int c, size_t n) FL_NOEXCEPT

References fl::memset(), mIsFromCodec, mPixelsCount, and mRgb.

Referenced by Frame(), copy(), interpolate(), interpolate(), and operator=().

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