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

◆ allocateFrameBuffers()

void fl::third_party::SoftwareMpeg1Decoder::allocateFrameBuffers ( )
private

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

419 {
420 fl::size frameSize = decoderData_->width * decoderData_->height * 3; // RGB888
421 decoderData_->rgbFrameSize = frameSize;
422
423 // Allocate RGB frame buffer for converted frames
424 decoderData_->rgbFrameBuffer.reset(new fl::u8[frameSize]);
425
426 if (config_.mode == Mpeg1Config::Streaming && !config_.immediateMode) {
427 frameBuffer_.resize(config_.bufferFrames);
428 for (fl::u8 i = 0; i < config_.bufferFrames; ++i) {
429 // Create Frame objects with shared_ptr (initially empty)
431 }
432 }
433}
fl::vector< fl::shared_ptr< Frame > > frameBuffer_
unsigned char u8
Definition coder.h:132
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414

References config_, decoderData_, FL_NOEXCEPT, frameBuffer_, fl::make_shared(), and fl::third_party::Mpeg1Config::Streaming.

Referenced by initializeDecoder().

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