MCPcopy Create free account
hub / github.com/FastLED/FastLED / Frame

Method Frame

src/fl/fx/frame.cpp.hpp:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace fl {
13
14Frame::Frame(int pixels_count) : 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}
20
21Frame::Frame(fl::u8* pixels, fl::u16 width, fl::u16 height, PixelFormat format, fl::u32 timestamp)
22 : mPixelsCount(static_cast<size_t>(width) * height), mRgb(),

Callers

nothing calls this directly

Calls 5

memsetFunction · 0.85
memcpyFunction · 0.50
resizeMethod · 0.45
dataMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected