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

◆ updateBufferIfNecessary()

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

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

335 {
336 const bool forward = now >= prev;
337
338 PixelStream::Type type = mStream->getType();
339 switch (type) {
341 return updateBufferFromFile(now, forward);
343 return updateBufferFromStream(now);
344 default:
345 FL_WARN("Unknown type: " << fl::u32(type));
346 return false;
347 }
348}
bool updateBufferFromStream(fl::u32 now)
bool updateBufferFromFile(fl::u32 now, bool forward)
PixelStreamPtr mStream
Definition video_impl.h:67
#define FL_WARN(X)
Definition log.h:276
constexpr T && forward(typename remove_reference< T >::type &t) FL_NOEXCEPT

References FL_WARN, fl::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: