Lines Matching defs:color
68 uint32_t color;
152 bytestream_put_be32(&p, s->hclr.color);
190 // 0x00, 0x00, 0x00, 0x00, // uint8_t background-color-rgba[4]
203 // 0xFF, 0xFF, 0xFF, 0xFF, // uint8_t text-color-rgba[4]
423 static void mov_text_color_set(MovTextContext *s, uint32_t color)
425 if ((s->style_attributes_temp.style_color & 0xffffff00) == color) {
426 // color hasn't changed
430 s->style_attributes_temp.style_color = (color & 0xffffff00) |
434 static void mov_text_color_cb(void *priv, unsigned int color, unsigned int color_id)
438 color = BGR_TO_RGB(color) << 8;
439 if (color_id == 1) { //primary color changes
440 mov_text_color_set(s, color);
441 } else if (color_id == 2) { //secondary color changes
444 s->hclr.color = s->style_attributes_temp.style_color;
449 s->hclr.color = color | (s->hclr.color & 0xFF);
453 /* If there are more than one secondary color changes in ASS,
464 // color hasn't changed
481 // Highlight color not set yet, use current primary color
482 s->hclr.color = s->style_attributes_temp.style_color;
487 s->hclr.color = (s->hclr.color & 0xffffff00) | alpha;
511 // color hasn't changed
527 // color hasn't changed
548 uint32_t color;
555 color = BGR_TO_RGB(style->primary_color & 0xffffff) << 8;
556 mov_text_color_set(s, color);
628 .color = mov_text_color_cb,