From 2e125e7984496c104c790ec8bddc406ccc8bdc10 Mon Sep 17 00:00:00 2001 From: mplayer-svn Date: Sun, 24 Jun 2012 12:17:03 +0000 Subject: subassconvert: order colour names alphabetically / better match W3 list Order colour names alphabetically / better match W3 list. Patch by Federico Kereki, fkereki gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35006 b3059339-0415-0410-9bf9-f77b7e298cf2 Add a few new CSS colors. Patch by Federico Kereki, fkereki gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35007 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: cehoyos --- sub/subassconvert.c | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) (limited to 'sub') diff --git a/sub/subassconvert.c b/sub/subassconvert.c index e958bb9d49..c391ad7c86 100644 --- a/sub/subassconvert.c +++ b/sub/subassconvert.c @@ -95,13 +95,29 @@ static const struct { char *s; uint32_t v; } subrip_web_colors[] = { - /* 16 named HTML colors in BGR format */ - {"red", 0x0000ff}, {"blue", 0xff0000}, {"lime", 0x00ff00}, - {"aqua", 0xffff00}, {"purple", 0x800080}, {"yellow", 0x00ffff}, - {"fuchsia", 0xff00ff}, {"white", 0xffffff}, {"gray", 0x808080}, - {"maroon", 0x000080}, {"olive", 0x008080}, {"black", 0x000000}, - {"silver", 0xc0c0c0}, {"teal", 0x808000}, {"green", 0x008000}, - {"navy", 0x800000} + /* Named CSS3 colors in BGR format; a subset of those + at http://www.w3.org/TR/css3-color/#svg-color */ + {"aqua", 0xffff00}, + {"black", 0x000000}, + {"blue", 0xff0000}, + {"cyan", 0xffff00}, + {"fuchsia", 0xff00ff}, + {"gray", 0x808080}, + {"green", 0x008000}, + {"grey", 0x808080}, + {"lime", 0x00ff00}, + {"magenta", 0xff00ff}, + {"maroon", 0x000080}, + {"navy", 0x800000}, + {"olive", 0x008080}, + {"orange", 0x00a5ff}, + {"pink", 0xcbc0ff}, + {"purple", 0x800080}, + {"red", 0x0000ff}, + {"silver", 0xc0c0c0}, + {"teal", 0x808000}, + {"white", 0xffffff}, + {"yellow", 0x00ffff}, }; #define SUBRIP_MAX_STACKED_FONT_TAGS 16 -- cgit v1.2.3