• Home
  • Raw
  • Download

Lines Matching refs:kp

428 gst_kate_spu_create_spu_palette (GstKateEnc * ke, kate_palette * kp)  in gst_kate_spu_create_spu_palette()  argument
432 kate_palette_init (kp); in gst_kate_spu_create_spu_palette()
433 kp->ncolors = 4; in gst_kate_spu_create_spu_palette()
434 kp->colors = (kate_color *) g_malloc (kp->ncolors * sizeof (kate_color)); in gst_kate_spu_create_spu_palette()
435 if (G_UNLIKELY (!kp->colors)) { in gst_kate_spu_create_spu_palette()
440 for (n = 0; n < kp->ncolors; ++n) { in gst_kate_spu_create_spu_palette()
448 kp->colors[n].r = r; in gst_kate_spu_create_spu_palette()
449 kp->colors[n].g = g; in gst_kate_spu_create_spu_palette()
450 kp->colors[n].b = b; in gst_kate_spu_create_spu_palette()
451 kp->colors[n].a = ke->spu_alpha[n] * 17; in gst_kate_spu_create_spu_palette()
455 for (n = 0; n < kp->ncolors; ++n) in gst_kate_spu_create_spu_palette()
459 for (n = 0; n < kp->ncolors; ++n) { in gst_kate_spu_create_spu_palette()
460 kp->colors[n].r = luma; in gst_kate_spu_create_spu_palette()
461 kp->colors[n].g = luma; in gst_kate_spu_create_spu_palette()
462 kp->colors[n].b = luma; in gst_kate_spu_create_spu_palette()
463 kp->colors[n].a = ke->spu_alpha[n] * 17; in gst_kate_spu_create_spu_palette()
474 kate_bitmap * kb, kate_palette * kp) in gst_kate_spu_decode_spu() argument
541 rflow = gst_kate_spu_create_spu_palette (ke, kp); in gst_kate_spu_decode_spu()
667 const kate_palette * kp) in gst_kate_spu_make_palette() argument
687 gst_kate_spu_rgb2yuv (kp->colors[n].r, kp->colors[n].g, kp->colors[n].b, in gst_kate_spu_make_palette()
717 const kate_palette *kp; in gst_kate_spu_encode_spu() local
726 kp = ev->palette; in gst_kate_spu_encode_spu()
731 if (kp->ncolors != 4) in gst_kate_spu_encode_spu()
827 gst_kate_spu_make_palette (kd, palette, kp); in gst_kate_spu_encode_spu()
845 ((kp->colors[palette[3]].a / 17) << 4) | (kp->colors[palette[2]].a / 17); in gst_kate_spu_encode_spu()
847 ((kp->colors[palette[1]].a / 17) << 4) | (kp->colors[palette[0]].a / 17); in gst_kate_spu_encode_spu()