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

◆ plm_demux_get_packet()

plm_packet_t * fl::third_party::plm_demux_get_packet ( plm_demux_t * self)

Definition at line 1608 of file pl_mpeg.hpp.

1608 {
1609 if (!plm_buffer_has(self->buffer, self->next_packet.length << 3)) {
1610 return NULL;
1611 }
1612
1613 self->current_packet.data = self->buffer->bytes + (self->buffer->bit_index >> 3);
1615 self->current_packet.type = self->next_packet.type;
1616 self->current_packet.pts = self->next_packet.pts;
1617
1618 self->next_packet.length = 0;
1619 return &self->current_packet;
1620}
#define NULL
int plm_buffer_has(plm_buffer_t *self, size_t count) FL_NOEXCEPT
Definition pl_mpeg.hpp:998

References FL_NOEXCEPT, NULL, and plm_buffer_has().

Referenced by plm_demux_decode(), and plm_demux_decode_packet().

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