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

◆ plm_video_init_frame()

void fl::third_party::plm_video_init_frame ( plm_video_t * self,
plm_frame_t * frame,
uint8_t * base )

Definition at line 2363 of file pl_mpeg.hpp.

2363 {
2364 size_t luma_plane_size = self->luma_width * self->luma_height;
2365 size_t chroma_plane_size = self->chroma_width * self->chroma_height;
2366
2367 frame->width = self->width;
2368 frame->height = self->height;
2369 frame->y.width = self->luma_width;
2370 frame->y.height = self->luma_height;
2371 frame->y.data = base;
2372
2373 frame->cr.width = self->chroma_width;
2374 frame->cr.height = self->chroma_height;
2375 frame->cr.data = base + luma_plane_size;
2376
2377 frame->cb.width = self->chroma_width;
2378 frame->cb.height = self->chroma_height;
2379 frame->cb.data = base + luma_plane_size + chroma_plane_size;
2380}

References FL_NOEXCEPT.

Referenced by plm_video_decode_sequence_header().

+ Here is the caller graph for this function: