dxx-rebirth/include/rle.h

68 lines
2.1 KiB
C
Executable file

/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
*/
/*
* $Source: /cvsroot/dxx-rebirth/d1x-rebirth/include/rle.h,v $
* $Revision: 1.1.1.1 $
* $Author: zicodxx $
* $Date: 2006/03/17 19:46:22 $
*
* Protypes for rle functions.
*
* $Log: rle.h,v $
* Revision 1.1.1.1 2006/03/17 19:46:22 zicodxx
* initial import
*
* Revision 1.1.1.1 1999/06/14 22:02:19 donut
* Import of d1x 1.37 source.
*
* Revision 1.5 1995/01/14 11:32:20 john
* Added rle_cache_flush function.
*
* Revision 1.4 1994/11/10 13:16:01 matt
* Added includes
*
* Revision 1.3 1994/11/09 19:53:51 john
* Added texture rle caching.
*
* Revision 1.2 1994/11/09 16:35:18 john
* First version with working RLE bitmaps.
*
* Revision 1.1 1994/11/09 12:40:17 john
* Initial revision
*
*
*/
#ifndef _RLE_H
#define _RLE_H
#include "types.h"
#include "gr.h"
void gr_rle_decode( ubyte * src, ubyte * dest );
int gr_rle_encode( int org_size, ubyte *src, ubyte *dest );
int gr_rle_getsize( int org_size, ubyte *src );
ubyte * gr_rle_find_xth_pixel( ubyte *src, int x,int * count, ubyte color );
int gr_bitmap_rle_compress( grs_bitmap * bmp );
void gr_rle_expand_scanline_masked( ubyte *dest, ubyte *src, int x1, int x2, int cockpit_transparent );
void gr_rle_expand_scanline( ubyte *dest, ubyte *src, int x1, int x2 );
grs_bitmap * rle_expand_texture( grs_bitmap * bmp );
void rle_cache_flush();
#endif