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

Method begin

src/fl/fx/video.cpp.hpp:38–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36Video &Video::operator=(const Video &) FL_NOEXCEPT = default;
37
38bool Video::begin(filebuf_ptr handle) {
39 if (!mImpl) {
40 FL_WARN("Video::begin: mImpl is null, manually constructed videos "
41 "must include full parameters.");
42 return false;
43 }
44 if (!handle) {
45 mError = "filebuf is null";
46 FL_DBG(mError.c_str());
47 return false;
48 }
49 if (mError.size()) {
50 FL_DBG(mError.c_str());
51 return false;
52 }
53 mError.clear();
54 mImpl->begin(handle);
55 return true;
56}
57
58bool Video::draw(fl::u32 now, fl::span<CRGB> leds) {
59 if (!mImpl) {

Callers 3

VideoFxWrapperMethod · 0.45
drawMethod · 0.45
FontImplMethod · 0.45

Calls 3

c_strMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected