AminetAminet
Search:
84504 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/asm/noe_ppc_c2p.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
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
Architecture:m68k-amigaos
Date:1999-03-30
Download:http://aminet.net/dev/asm/noe_ppc_c2p.lha - View contents
Readme:http://aminet.net/dev/asm/noe_ppc_c2p.readme
Downloads:698

 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.


Contents of dev/asm/noe_ppc_c2p.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                35867   64000  56.0% -lh5- c8cd Feb 17  1999 ppc_c2p/data/test_image.chunky
[generic]                 1248    3080  40.5% -lh5- 113b Feb 17  1999 ppc_c2p/data/test_image.palette
[generic]               135864  192512  70.6% -lh5- d558 Nov 17  1997 ppc_c2p/data/test_image.sgi
[generic]                 1909    6122  31.2% -lh5- 4484 Mar 29  1999 ppc_c2p/HowToUse.c
[generic]                20352   45221  45.0% -lh5- ff5b Mar 29  1999 ppc_c2p/HowToUse.elf
[generic]                  401    2081  19.3% -lh5- a0b3 Mar 29  1999 ppc_c2p/macros.i
[generic]                  654    1118  58.5% -lh5- aa30 Mar 29  1999 ppc_c2p/NOE_ppc_c2p.readme
[generic]                  185     314  58.9% -lh5- 2039 Mar 29  1999 ppc_c2p/ppc_c2p.h
[generic]                 1292    5243  24.6% -lh5- 48de Mar 29  1999 ppc_c2p/ppc_c2p_12bit.s
[generic]                 1208    5023  24.0% -lh5- 7844 Mar 29  1999 ppc_c2p/ppc_c2p_8bit.s
[generic]                  223     450  49.6% -lh5- 43f6 Mar 29  1999 ppc_c2p/smakefile
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        11 files  199203  325164  61.3%            Mar 30  1999

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>