changeset 11854:8a393a20349f libavcodec

Add ff_ega_palette
author pross
date Tue, 08 Jun 2010 11:42:21 +0000
parents 1547c744b8d4
children 677c51ca528d
files cga_data.c cga_data.h
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cga_data.c	Tue Jun 08 09:20:12 2010 +0000
+++ b/cga_data.c	Tue Jun 08 11:42:21 2010 +0000
@@ -155,3 +155,14 @@
     0x000000, 0x0000AA, 0x00AA00, 0x00AAAA, 0xAA0000, 0xAA00AA, 0xAA5500, 0xAAAAAA,
     0x555555, 0x5555FF, 0x55FF55, 0x55FFFF, 0xFF5555, 0xFF55FF, 0xFFFF55, 0xFFFFFF,
 };
+
+const uint32_t ff_ega_palette[64] = {
+    0x000000, 0x0000AA, 0x00AA00, 0x00AAAA, 0xAA0000, 0xAA00AA, 0xAAAA00, 0xAAAAAA,
+    0x000055, 0x0000FF, 0x00AA55, 0x00AAFF, 0xAA0055, 0xAA00FF, 0xAAAA55, 0xAAAAFF,
+    0x005500, 0x0055AA, 0x00FF00, 0x00FFAA, 0xAA5500, 0xAA55AA, 0xAAFF00, 0xAAFFAA,
+    0x005555, 0x0055FF, 0x00FF55, 0x00FFFF, 0xAA5555, 0xAA55FF, 0xAAFF55, 0xAAFFFF,
+    0x550000, 0x5500AA, 0x55AA00, 0x55AAAA, 0xFF0000, 0xFF00AA, 0xFFAA00, 0xFFAAAA,
+    0x550055, 0x5500FF, 0x55AA55, 0x55AAFF, 0xFF0055, 0xFF00FF, 0xFFAA55, 0xFFAAFF,
+    0x555500, 0x5555AA, 0x55FF00, 0x55FFAA, 0xFF5500, 0xFF55AA, 0xFFFF00, 0xFFFFAA,
+    0x555555, 0x5555FF, 0x55FF55, 0x55FFFF, 0xFF5555, 0xFF55FF, 0xFFFF55, 0xFFFFFF
+};
--- a/cga_data.h	Tue Jun 08 09:20:12 2010 +0000
+++ b/cga_data.h	Tue Jun 08 11:42:21 2010 +0000
@@ -25,5 +25,6 @@
 
 extern const uint8_t ff_cga_font[2048];
 extern const uint32_t ff_cga_palette[16];
+extern const uint32_t ff_ega_palette[64];
 
 #endif