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

◆ plm_buffer_next_start_code()

int fl::third_party::plm_buffer_next_start_code ( plm_buffer_t * self)

Definition at line 1060 of file pl_mpeg.hpp.

1060 {
1061 plm_buffer_align(self);
1062
1063 while (plm_buffer_has(self, (5 << 3))) {
1064 size_t byte_index = (self->bit_index) >> 3;
1065 if (
1066 self->bytes[byte_index] == 0x00 &&
1067 self->bytes[byte_index + 1] == 0x00 &&
1068 self->bytes[byte_index + 2] == 0x01
1069 ) {
1070 self->bit_index = (byte_index + 4) << 3;
1071 return self->bytes[byte_index + 3];
1072 }
1073 self->bit_index += 8;
1074 }
1075 return -1;
1076}
int plm_buffer_has(plm_buffer_t *self, size_t count) FL_NOEXCEPT
Definition pl_mpeg.hpp:998
void plm_buffer_align(plm_buffer_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:1040

References FL_NOEXCEPT, plm_buffer_align(), and plm_buffer_has().

Referenced by plm_buffer_find_start_code(), plm_demux_decode(), plm_demux_probe(), and plm_video_decode_picture().

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