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

◆ plm_video_create_with_buffer()

plm_video_t * fl::third_party::plm_video_create_with_buffer ( plm_buffer_t * buffer,
int destroy_when_done )

Definition at line 2121 of file pl_mpeg.hpp.

2121 {
2122 plm_video_t *self = (plm_video_t *)PLM_MALLOC(sizeof(plm_video_t));
2123 fl::memset(self, 0, sizeof(plm_video_t));
2124
2125 self->buffer = buffer;
2126 self->destroy_buffer_when_done = destroy_when_done;
2127
2128 // Attempt to decode the sequence header
2130 if (self->start_code != -1) {
2132 }
2133 return self;
2134}
int plm_video_decode_sequence_header(plm_video_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:2282
int plm_buffer_find_start_code(plm_buffer_t *self, int code) FL_NOEXCEPT
Definition pl_mpeg.hpp:1078
static const int PLM_START_SEQUENCE
Definition pl_mpeg.hpp:1634
void * memset(void *s, int c, size_t n) FL_NOEXCEPT
#define PLM_MALLOC(sz)
Definition pl_mpeg.hpp:179

References fl::third_party::plm_video_t::buffer, fl::third_party::plm_video_t::destroy_buffer_when_done, FL_NOEXCEPT, fl::memset(), plm_buffer_find_start_code(), PLM_MALLOC, PLM_START_SEQUENCE, plm_video_decode_sequence_header(), and fl::third_party::plm_video_t::start_code.

Referenced by plm_init_decoders().

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