Hangar.La tienda de software del Amiga

fw_c2p_p2c 1.1

Portable C2P and P2C functions

Short:        Portable C2P and P2C functions
Author:       Fredrik Wikstrom
Uploader:     Fredrik Wikstrom <fredrik a500 org>
Type:         dev/lib
Version:      1.1
Replaces:     dev/lib/ppc_c2p_p2c.lha
Architecture: generic

Usage:

c2p.h:
void chunky2planar (uint8 *chunky, uint16 *planar, uint32 plane_size,
	uint32 width, uint32 height, uint32 depth);

p2c.h:
void planar2chunky (uint16 *planar, uint32 plane_size, uint8 *chunky,
	uint32 width, uint32 height, uint32 depth);

Usage of functions should be pretty straight forward. Planar data must be non-
interleaved with each plane following directly after the previous one. All
depths 1-8 are supported. Width must be a multiple of 16 pixels.

For examples on how to use these functions in a program see the CDXLPlay
(Source/cdxlplay.c) and/or SRec (Source/formats/cdxl.c) source code that can
be downloaded from OS4Depot/Aminet.

Compiling:

To compile PPC assembler versions:
cd ppc
make

To compile generic C versions:
cd generic
make

Changes:

1.1 (19-Nov-2009)
 - Added generic C versions

1.0 (11-Nov-2009)
 - First released version

Gratis

Descargar 30 KB

Desde el Amiga: abre Hangar y busca fw_c2p_p2c.

AutorFredrik Wikstrom
Categoríadev/lib
Tamaño30 KB
Fecha2024-07-17
Parageneric
OrigenAminet