FastLED 3.10.8
Loading...
Searching...
No Matches

◆ updateBufferIfNecessary()

bool fl::video::VideoImpl::updateBufferIfNecessary ( fl::u32 prev,
fl::u32 now )
private

Definition at line 358 of file video_impl.cpp.hpp.

358 {
359 const bool forward = now >= prev;
360
361 PixelStream::Type type = mStream->getType();
362 switch (type) {
364 return updateBufferFromFile(now, forward);
366 return updateBufferFromStream(now);
367 default:
368 FL_WARN("Unknown type: " << (fl::u32(type)));
369 return false;
370 }
371}
bool updateBufferFromStream(fl::u32 now) FL_NO_EXCEPT
bool updateBufferFromFile(fl::u32 now, bool forward) FL_NO_EXCEPT
PixelStreamPtr mStream
Definition video_impl.h:72
#define FL_WARN(...)
Definition log.h:437
constexpr T && forward(typename remove_reference< T >::type &t) FL_NO_EXCEPT

References fl::FL_NO_EXCEPT, FL_WARN, fl::adl_barrier::forward(), fl::video::PixelStream::kFile, fl::video::PixelStream::kStreaming, mStream, updateBufferFromFile(), and updateBufferFromStream().

Referenced by draw().

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