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

◆ plm_decode_video()

plm_frame_t * fl::third_party::plm_decode_video ( plm_t * self)

Definition at line 533 of file pl_mpeg.hpp.

533 {
534 if (!plm_init_decoders(self)) {
535 return NULL;
536 }
537
538 if (!self->video_packet_type) {
539 return NULL;
540 }
541
542 plm_frame_t *frame = plm_video_decode(self->video_decoder);
543 if (frame) {
544 self->time = frame->time;
545 }
546 else if (plm_demux_has_ended(self->demux)) {
547 plm_handle_end(self);
548 }
549 return frame;
550}
#define NULL
void plm_handle_end(plm_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:571
int plm_init_decoders(plm_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:261
plm_frame_t * plm_video_decode(plm_video_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:2197
int plm_demux_has_ended(plm_demux_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:1293
plm_video_t * video_decoder
Definition pl_mpeg.hpp:205
plm_demux_t * demux
Definition pl_mpeg.hpp:196

References FL_NOEXCEPT, NULL, plm_demux_has_ended(), plm_handle_end(), plm_init_decoders(), plm_video_decode(), and fl::third_party::plm_frame_t::time.

+ Here is the call graph for this function: