[FFmpeg-cvslog] r23530 - in trunk/libavcodec: cga_data.c cga_data.h

pross subversion
Tue Jun 8 13:42:22 CEST 2010


Author: pross
Date: Tue Jun  8 13:42:21 2010
New Revision: 23530

Log:
Add ff_ega_palette

Modified:
   trunk/libavcodec/cga_data.c
   trunk/libavcodec/cga_data.h

Modified: trunk/libavcodec/cga_data.c
==============================================================================
--- trunk/libavcodec/cga_data.c	Tue Jun  8 13:18:22 2010	(r23529)
+++ trunk/libavcodec/cga_data.c	Tue Jun  8 13:42:21 2010	(r23530)
@@ -155,3 +155,14 @@ const uint32_t ff_cga_palette[16] = {
     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
+};

Modified: trunk/libavcodec/cga_data.h
==============================================================================
--- trunk/libavcodec/cga_data.h	Tue Jun  8 13:18:22 2010	(r23529)
+++ trunk/libavcodec/cga_data.h	Tue Jun  8 13:42:21 2010	(r23530)
@@ -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



More information about the ffmpeg-cvslog mailing list