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