| 1 | /* |
| 2 | SDL - Simple DirectMedia Layer |
| 3 | Copyright (C) 1997-2009 Sam Lantinga |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2.1 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 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with this library; if not, write to the Free Software |
| 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | |
| 19 | Sam Lantinga |
| 20 | slouken@libsdl.org |
| 21 | */ |
| 22 | #include "SDL_config.h" |
| 23 | |
| 24 | #ifndef _ATARI_C2P_h |
| 25 | #define _ATARI_C2P_h |
| 26 | |
| 27 | #include "SDL_stdinc.h" |
| 28 | |
| 29 | /*--- Functions pointers ---*/ |
| 30 | |
| 31 | /* Convert a chunky screen to bitplane screen */ |
| 32 | |
| 33 | extern void (*SDL_Atari_C2pConvert)( |
| 34 | Uint8 *src, /* Source screen (one byte=one pixel) */ |
| 35 | Uint8 *dest, /* Destination (4/8 bits planes) */ |
| 36 | Uint32 width, /* Dimensions of screen to convert */ |
| 37 | Uint32 height, |
| 38 | Uint32 dblligne, /* Double the lines when converting ? */ |
| 39 | Uint32 srcpitch, /* Length of one source line in bytes */ |
| 40 | Uint32 dstpitch /* Length of one destination line in bytes */ |
| 41 | ); |
| 42 | |
| 43 | /*--- 8 bits functions ---*/ |
| 44 | |
| 45 | /* Convert a chunky screen to bitplane screen */ |
| 46 | |
| 47 | void SDL_Atari_C2pConvert8( |
| 48 | Uint8 *src, /* Source screen (one byte=one pixel) */ |
| 49 | Uint8 *dest, /* Destination (8 bits planes) */ |
| 50 | Uint32 width, /* Dimensions of screen to convert */ |
| 51 | Uint32 height, |
| 52 | Uint32 dblligne, /* Double the lines when converting ? */ |
| 53 | Uint32 srcpitch, /* Length of one source line in bytes */ |
| 54 | Uint32 dstpitch /* Length of one destination line in bytes */ |
| 55 | ); |
| 56 | |
| 57 | /*--- 4 bits functions ---*/ |
| 58 | |
| 59 | /* Convert a chunky screen to bitplane screen */ |
| 60 | |
| 61 | void SDL_Atari_C2pConvert4( |
| 62 | Uint8 *src, /* Source screen (one byte=one pixel) */ |
| 63 | Uint8 *dest, /* Destination (4 bits planes) */ |
| 64 | Uint32 width, /* Dimensions of screen to convert */ |
| 65 | Uint32 height, |
| 66 | Uint32 dblligne, /* Double the lines when converting ? */ |
| 67 | Uint32 srcpitch, /* Length of one source line in bytes */ |
| 68 | Uint32 dstpitch /* Length of one destination line in bytes */ |
| 69 | ); |
| 70 | |
| 71 | /* Conversion palette */ |
| 72 | |
| 73 | void SDL_Atari_C2pConvert4_pal(Uint16 *lightpalette); |
| 74 | |
| 75 | #endif /* _ATARI_C2P_h */ |