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

◆ plm_create_with_buffer()

plm_t * fl::third_party::plm_create_with_buffer ( plm_buffer_t * buffer,
int destroy_when_done )

Definition at line 249 of file pl_mpeg.hpp.

249 {
250 plm_t *self = (plm_t *)PLM_MALLOC(sizeof(plm_t));
251 fl::memset(self, 0, sizeof(plm_t));
252
253 self->demux = plm_demux_create(buffer, destroy_when_done);
254 self->video_enabled = TRUE;
255 self->audio_enabled = TRUE;
256 plm_init_decoders(self);
257
258 return self;
259}
plm_demux_t * plm_demux_create(plm_buffer_t *buffer, int destroy_when_done) FL_NOEXCEPT
Definition pl_mpeg.hpp:1159
int plm_init_decoders(plm_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:261
plm_demux_t * demux
Definition pl_mpeg.hpp:196
void * memset(void *s, int c, size_t n) FL_NOEXCEPT
#define PLM_MALLOC(sz)
Definition pl_mpeg.hpp:179
#define TRUE
Definition pl_mpeg.hpp:174

References fl::third_party::plm_t::audio_enabled, fl::third_party::plm_t::demux, FL_NOEXCEPT, fl::memset(), plm_demux_create(), plm_init_decoders(), PLM_MALLOC, TRUE, and fl::third_party::plm_t::video_enabled.

Referenced by plm_create_with_memory().

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