Short: Ppc c2p converters (8bpp and 15bpp) Author: Jacek Cybularczyk (noe^venus art) Uploader: elf^va (bjsebo@jota.ii.tuniv.szczecin.pl) Type: dev/asm This archive contains 2 c2p converters written by Noe. Both are very fast (actually I did not find any faster c2p for ppc). Two functions are included: VOID RGB15_TO_HAM6_NI(UWORD *RGB15, ULONG **Planes,ULONG Width, ULONG Height); Chunky buffer must be filled with 15bit rgb values (0rrrrrgggggbbbbb). Conversion is done to first 4 planes plane 5 and 6 should be filled with mask values: plane5 = 0x77777777 plane7 = 0xeeeeeeee; Remember that you need to open HAM6 screen (depth = 6), to use this c2p() VOID C2P_NI(UBYTE *Chunky, ULONG **Planes,ULONG Width, ULONG Height); Nothing fancy here. Simple (but fast) c2p routine. Converts 8 bit chunky (paletized mode) to planar display. Also look at HowToUse.c. There is an example (and a speed test) in C. And if you can make this c2p routines faster - please contact us. You can use this c2p routines for any purposes. But if you use it, please put my name in credit part. Jacek Cybularczyk. ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 64000 35867 43.9% 17-Feb-99 20:46:52 +test_image.chunky 3080 1248 59.4% 17-Feb-99 20:47:18 +test_image.palette 192512 135864 29.4% 17-Nov-97 02:56:06 +test_image.sgi 6122 1909 68.8% 29-Mar-99 19:30:28 +HowToUse.c 45221 20352 54.9% 29-Mar-99 19:31:12 +HowToUse.elf 2081 401 80.7% 29-Mar-99 18:34:04 +macros.i 1118 654 41.5% 29-Mar-99 19:32:40 +NOE_ppc_c2p.readme 314 185 41.0% 29-Mar-99 19:02:22 +ppc_c2p.h 5243 1292 75.3% 29-Mar-99 18:39:52 +ppc_c2p_12bit.s 5023 1208 75.9% 29-Mar-99 18:40:22 +ppc_c2p_8bit.s 450 223 50.4% 29-Mar-99 19:10:06 +smakefile -------- ------- ----- --------- -------- 325164 199203 38.7% 30-Mar-99 22:11:46 11 files