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

◆ allocateFrameBuffer()

void fl::third_party::TJpgInstanceDecoder::allocateFrameBuffer ( fl::u16 width,
fl::u16 height )
private

Definition at line 271 of file driver.cpp.hpp.

271 {
272 frame_buffer_size_ = static_cast<fl::size>(width) * height * getBytesPerPixel();
273 if (frame_buffer_size_ > 0) {
276 }
277}
fl::size getBytesPerPixel() const FL_NOEXCEPT
fl::unique_ptr< fl::u8[]> frame_buffer_
Definition driver.h:76
unsigned char u8
Definition coder.h:132
u8 u8 height
Definition blur.h:186
void * memset(void *s, int c, size_t n) FL_NOEXCEPT
u8 width
Definition blur.h:186

References FL_NOEXCEPT, frame_buffer_, frame_buffer_size_, fl::getBytesPerPixel(), fl::height, fl::memset(), and fl::width.

Referenced by initializeDecoder().

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