| 36 | Video &Video::operator=(const Video &) FL_NOEXCEPT = default; |
| 37 | |
| 38 | bool 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 | |
| 58 | bool Video::draw(fl::u32 now, fl::span<CRGB> leds) { |
| 59 | if (!mImpl) { |