comparison src/video/ataricommon/SDL_ataric2p_s.h @ 734:0310bb01091f

New C2P conversion routine
author Patrice Mandin <patmandin@gmail.com>
date Wed, 12 Nov 2003 18:45:48 +0000
parents f6ffac90895c
children b8d311d90021
comparison
equal deleted inserted replaced
733:9557ac1857a3 734:0310bb01091f
30 30
31 #include "SDL_types.h" 31 #include "SDL_types.h"
32 32
33 /*--- Variables ---*/ 33 /*--- Variables ---*/
34 34
35 extern Uint8 Atari_table_c2p[2048]; /* Used by conversions routines */ 35 extern Uint8 SDL_Atari_table_c2p[2048]; /* Used by conversions routines */
36 36
37 /*--- Functions pointers ---*/ 37 /*--- Functions pointers ---*/
38 38
39 /* Initialize conversion table */
40
41 extern void (*Atari_C2pInit)(void);
42
43 /* Convert a chunky screen to bitplane screen */ 39 /* Convert a chunky screen to bitplane screen */
44 40
45 extern void (*Atari_C2pConvert)( 41 extern void (*SDL_Atari_C2pConvert)(
46 Uint8 *src, /* Source screen (one byte=one pixel) */ 42 Uint8 *src, /* Source screen (one byte=one pixel) */
47 Uint8 *dest, /* Destination (4/8 bits planes) */ 43 Uint8 *dest, /* Destination (4/8 bits planes) */
48 Uint32 width, /* Dimensions of screen to convert */ 44 Uint32 width, /* Dimensions of screen to convert */
49 Uint32 height, 45 Uint32 height,
50 Uint32 dblligne, /* Double the lines when converting ? */ 46 Uint32 dblligne, /* Double the lines when converting ? */
52 Uint32 dstpitch /* Length of one destination line in bytes */ 48 Uint32 dstpitch /* Length of one destination line in bytes */
53 ); 49 );
54 50
55 /*--- 8 bits functions ---*/ 51 /*--- 8 bits functions ---*/
56 52
57 /* Initialize conversion table */
58
59 void Atari_C2pInit8(void);
60
61 /* Convert a chunky screen to bitplane screen */ 53 /* Convert a chunky screen to bitplane screen */
62 54
63 void Atari_C2pConvert8( 55 void SDL_Atari_C2pConvert8(
64 Uint8 *src, /* Source screen (one byte=one pixel) */ 56 Uint8 *src, /* Source screen (one byte=one pixel) */
65 Uint8 *dest, /* Destination (8 bits planes) */ 57 Uint8 *dest, /* Destination (8 bits planes) */
66 Uint32 width, /* Dimensions of screen to convert */ 58 Uint32 width, /* Dimensions of screen to convert */
67 Uint32 height, 59 Uint32 height,
68 Uint32 dblligne, /* Double the lines when converting ? */ 60 Uint32 dblligne, /* Double the lines when converting ? */
70 Uint32 dstpitch /* Length of one destination line in bytes */ 62 Uint32 dstpitch /* Length of one destination line in bytes */
71 ); 63 );
72 64
73 /*--- 4 bits functions ---*/ 65 /*--- 4 bits functions ---*/
74 66
75 /* Initialize conversion table */
76
77 void Atari_C2pInit4(void);
78
79 /* Convert a chunky screen to bitplane screen */ 67 /* Convert a chunky screen to bitplane screen */
80 68
81 void Atari_C2pConvert4( 69 void SDL_Atari_C2pConvert4(
82 Uint8 *src, /* Source screen (one byte=one pixel) */ 70 Uint8 *src, /* Source screen (one byte=one pixel) */
83 Uint8 *dest, /* Destination (4 bits planes) */ 71 Uint8 *dest, /* Destination (4 bits planes) */
84 Uint32 width, /* Dimensions of screen to convert */ 72 Uint32 width, /* Dimensions of screen to convert */
85 Uint32 height, 73 Uint32 height,
86 Uint32 dblligne, /* Double the lines when converting ? */ 74 Uint32 dblligne, /* Double the lines when converting ? */
88 Uint32 dstpitch /* Length of one destination line in bytes */ 76 Uint32 dstpitch /* Length of one destination line in bytes */
89 ); 77 );
90 78
91 /* Conversion palette */ 79 /* Conversion palette */
92 80
93 void Atari_C2pConvert4_pal(Uint16 *lightpalette); 81 void SDL_Atari_C2pConvert4_pal(Uint16 *lightpalette);
94 82
95 #endif /* _ATARI_C2P_h */ 83 #endif /* _ATARI_C2P_h */