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

◆ Frame() [3/3]

fl::Frame::Frame ( const Frame & other)

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

35 : mPixelsCount(other.mPixelsCount), mRgb(),
36 mWidth(other.mWidth), mHeight(other.mHeight), mFormat(other.mFormat),
37 mTimestamp(other.mTimestamp), mIsFromCodec(other.mIsFromCodec) {
38
39 mRgb.resize(mPixelsCount);
40 if (!other.mRgb.empty()) {
41 fl::memcpy(mRgb.data(), other.mRgb.data(), mPixelsCount * sizeof(CRGB));
42 }
43}
PixelFormat mFormat
Definition frame.h:70
fl::u16 mHeight
Definition frame.h:69
fl::vector_psram< CRGB > mRgb
Definition frame.h:65
bool mIsFromCodec
Definition frame.h:72
const size_t mPixelsCount
Definition frame.h:64
fl::u32 mTimestamp
Definition frame.h:71
fl::u16 mWidth
Definition frame.h:68
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT
fl::CRGB CRGB
Definition video.h:15

References Frame(), mFormat, mHeight, mIsFromCodec, mPixelsCount, mRgb, mTimestamp, and mWidth.

+ Here is the call graph for this function: