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

◆ decodeNextFrame()

bool fl::third_party::SoftwareMpeg1Decoder::decodeNextFrame ( )
private

Definition at line 356 of file software_decoder.cpp.hpp.

356 {
357 if (!decoderData_->headerParsed || !decoderData_->plmpeg) {
358 return false;
359 }
360
361 // Reset the new frame flag
362 decoderData_->hasNewFrame = false;
363
364 // Decode using pl_mpeg
365 fl::third_party::plm_decode(decoderData_->plmpeg, decoderData_->targetFrameDuration);
366
367 // Check if we have reached the end
369 return false;
370 }
371
372 // If we have a new frame, create the Frame objects
373 if (decoderData_->hasNewFrame) {
374 return decodeFrame();
375 }
376
377 return false;
378}
void plm_decode(plm_t *self, double seconds) FL_NOEXCEPT
Definition pl_mpeg.hpp:474
int plm_has_ended(plm_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:460

References decodeFrame(), decoderData_, FL_NOEXCEPT, fl::third_party::plm_decode(), and fl::third_party::plm_has_ended().

Referenced by decode().

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