comparison src/video/ataricommon/SDL_ataric2p_s.h @ 281:c5010ab8ba35

Added initial support for Atari (thanks Patrice!)
author Sam Lantinga <slouken@libsdl.org>
date Sun, 17 Feb 2002 19:54:28 +0000
parents
children f6ffac90895c
comparison
equal deleted inserted replaced
280:0ddcea45d829 281:c5010ab8ba35
1 /*
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997, 1998, 1999, 2000, 2001 Sam Lantinga
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 Sam Lantinga
20 slouken@libsdl.org
21 */
22
23 #ifdef SAVE_RCSID
24 static char rcsid =
25 "@(#) $Id$";
26 #endif
27
28 #ifndef _ATARI_C2P_h
29 #define _ATARI_C2P_h
30
31 #include "SDL_types.h"
32
33 /*--- Variables ---*/
34
35 extern Uint8 Atari_table_c2p[2048]; /* Used by conversions routines */
36
37 /*--- Functions pointers ---*/
38
39 /* Initialize conversion table */
40
41 extern void (*Atari_C2pInit)(void);
42
43 /* Convert a chunky screen to bitplane screen */
44
45 extern void (*Atari_C2pConvert)(
46 Uint8 *src, /* Source screen (one byte=one pixel) */
47 Uint8 *dest, /* Destination (4/8 bits planes) */
48 Uint32 width, /* Dimensions of screen to convert */
49 Uint32 height,
50 Uint32 dblligne, /* Double the lines when converting ? */
51 Uint32 srcpitch, /* Length of one source line in bytes */
52 Uint32 dstpitch /* Length of one destination line in bytes */
53 );
54
55 /*--- 8 bits functions ---*/
56
57 /* Initialize conversion table */
58
59 void Atari_C2pInit8(void);
60
61 /* Convert a chunky screen to bitplane screen */
62
63 void Atari_C2pConvert8(
64 Uint8 *src, /* Source screen (one byte=one pixel) */
65 Uint8 *dest, /* Destination (8 bits planes) */
66 Uint32 width, /* Dimensions of screen to convert */
67 Uint32 height,
68 Uint32 dblligne, /* Double the lines when converting ? */
69 Uint32 srcpitch, /* Length of one source line in bytes */
70 Uint32 dstpitch /* Length of one destination line in bytes */
71 );
72
73 /*--- 4 bits functions ---*/
74
75 /* Initialize conversion table */
76
77 void Atari_C2pInit4(void);
78
79 /* Convert a chunky screen to bitplane screen */
80
81 void Atari_C2pConvert4(
82 Uint8 *src, /* Source screen (one byte=one pixel) */
83 Uint8 *dest, /* Destination (4 bits planes) */
84 Uint32 width, /* Dimensions of screen to convert */
85 Uint32 height,
86 Uint32 dblligne, /* Double the lines when converting ? */
87 Uint32 srcpitch, /* Length of one source line in bytes */
88 Uint32 dstpitch /* Length of one destination line in bytes */
89 );
90
91 /* Conversion palette */
92
93 void Atari_C2pConvert4_pal(Uint16 *lightpalette);
94
95 #endif /* _ATARI_C2P_h */