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

◆ readFrame()

bool fl::video::PixelStream::readFrame ( Frame * frame)

Definition at line 114 of file pixel_stream.cpp.hpp.

114 {
115 if (!frame) {
116 return false;
117 }
118 if (mType == kFile && !framesRemaining()) {
119 return false;
120 }
121 size_t n = mHandle->readRGB8(frame->rgb());
122 if (mType == kFile) {
123 DBG("pos: " << mHandle->pos());
124 }
125 return n * 3 == size_t(mbytesPerFrame);
126}
fl::filebuf_ptr mHandle
fl::size size_t
Definition s16x16x4.h:223
#define DBG
Definition time.cpp.hpp:7

References DBG, framesRemaining(), kFile, mbytesPerFrame, mHandle, mType, and fl::Frame::rgb().

+ Here is the call graph for this function: