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

◆ videoDecodeCallback()

void fl::third_party::SoftwareMpeg1Decoder::videoDecodeCallback ( fl::third_party::plm_t * plm,
fl::third_party::plm_frame_t * frame,
void * user )
static

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

96 {
97 FL_UNUSED(plm_ptr);
98 auto* decoder = static_cast<SoftwareMpeg1Decoder*>(user);
99
100 if (decoder && decoder->decoderData_ && frame) {
101 decoder->decoderData_->hasNewFrame = true;
102 decoder->decoderData_->lastFrameTime = frame->time;
103
104 // Convert YUV to RGB and store in buffer
105 if (decoder->decoderData_->rgbFrameBuffer.get()) {
106 yuv_to_rgb(frame, decoder->decoderData_->rgbFrameBuffer.get());
107 }
108 }
109}
SoftwareMpeg1Decoder(const Mpeg1Config &config) FL_NO_EXCEPT
#define FL_UNUSED(x)
static void yuv_to_rgb(const fl::third_party::plm_frame_t *frame, fl::u8 *rgb_buffer) FL_NO_EXCEPT

References SoftwareMpeg1Decoder(), fl::FL_NO_EXCEPT, FL_UNUSED, and fl::third_party::yuv_to_rgb().

Referenced by initializeDecoder().

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