Lines Matching refs:palette
91 PGSSubPalette palette[MAX_EPOCH_PALETTES];
132 if (palettes->palette[i].id == id)
133 return &palettes->palette[i];
318 * Parse the palette segment packet.
320 * The palette segment contains details of the palette,
331 PGSSubPalette *palette;
341 palette = find_palette(id, &ctx->palettes);
342 if (!palette) {
347 palette = &ctx->palettes.palette[ctx->palettes.count++];
348 palette->id = id;
351 /* Skip palette version */
372 /* Store color in palette */
373 palette->clut[color_id] = RGBA(r,g,b,alpha);
502 PGSSubPalette *palette;
523 palette = find_palette(ctx->presentation.palette_id, &ctx->palettes);
524 if (!palette) {
525 // Missing palette. Should only happen with damaged streams.
526 av_log(avctx, AV_LOG_ERROR, "Invalid palette id %d\n",
587 memcpy(rect->data[1], palette->clut, rect->nb_colors * sizeof(uint32_t));