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

◆ plm_video_decode_slice()

void fl::third_party::plm_video_decode_slice ( plm_video_t * self,
int slice )

Definition at line 2453 of file pl_mpeg.hpp.

2453 {
2454 self->slice_begin = TRUE;
2455 self->macroblock_address = (slice - 1) * self->mb_width - 1;
2456
2457 // Reset motion vectors and DC predictors
2458 self->motion_backward.h = self->motion_forward.h = 0;
2459 self->motion_backward.v = self->motion_forward.v = 0;
2460 self->dc_predictor[0] = 128;
2461 self->dc_predictor[1] = 128;
2462 self->dc_predictor[2] = 128;
2463
2464 self->quantizer_scale = plm_buffer_read(self->buffer, 5);
2465
2466 // Skip extra
2467 while (plm_buffer_read(self->buffer, 1)) {
2468 plm_buffer_skip(self->buffer, 8);
2469 }
2470
2471 do {
2473 } while (
2474 self->macroblock_address < self->mb_size - 1 &&
2476 );
2477}
int plm_buffer_read(plm_buffer_t *self, int count) FL_NOEXCEPT
Definition pl_mpeg.hpp:1017
int plm_buffer_peek_non_zero(plm_buffer_t *self, int bit_count) FL_NOEXCEPT
Definition pl_mpeg.hpp:1101
void plm_video_decode_macroblock(plm_video_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:2479
void plm_buffer_skip(plm_buffer_t *self, size_t count) FL_NOEXCEPT
Definition pl_mpeg.hpp:1044
plm_video_motion_t motion_backward
Definition pl_mpeg.hpp:2064
plm_video_motion_t motion_forward
Definition pl_mpeg.hpp:2063
#define TRUE
Definition pl_mpeg.hpp:174

References FL_NOEXCEPT, plm_buffer_peek_non_zero(), plm_buffer_read(), plm_buffer_skip(), plm_video_decode_macroblock(), and TRUE.

Referenced by plm_video_decode_picture().

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