src/video/ataricommon/SDL_ataric2p_s.h
author Sam Lantinga
Sun, 04 Jan 2004 16:49:27 +0000
changeset 769 b8d311d90021
parent 734 0310bb01091f
child 1086 93207759e065
permissions -rw-r--r--
Updated copyright information for 2004 (Happy New Year!)
slouken@281
     1
/*
slouken@281
     2
    SDL - Simple DirectMedia Layer
slouken@769
     3
    Copyright (C) 1997-2004 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
patmandin@734
    35
extern Uint8 SDL_Atari_table_c2p[2048];	/* Used by conversions routines */
slouken@281
    36
slouken@281
    37
/*--- Functions pointers ---*/
slouken@281
    38
slouken@281
    39
/* Convert a chunky screen to bitplane screen */
slouken@281
    40
patmandin@734
    41
extern void (*SDL_Atari_C2pConvert)(
slouken@281
    42
	Uint8 *src,			/* Source screen (one byte=one pixel) */
slouken@281
    43
	Uint8 *dest,		/* Destination (4/8 bits planes) */
slouken@281
    44
	Uint32 width,		/* Dimensions of screen to convert */
slouken@281
    45
	Uint32 height,
slouken@281
    46
	Uint32 dblligne,	/* Double the lines when converting ? */
slouken@281
    47
	Uint32 srcpitch,	/* Length of one source line in bytes */
slouken@281
    48
	Uint32 dstpitch		/* Length of one destination line in bytes */
slouken@281
    49
);
slouken@281
    50
slouken@281
    51
/*--- 8 bits functions ---*/
slouken@281
    52
slouken@281
    53
/* Convert a chunky screen to bitplane screen */
slouken@281
    54
patmandin@734
    55
void SDL_Atari_C2pConvert8(
slouken@281
    56
	Uint8 *src,			/* Source screen (one byte=one pixel) */
slouken@281
    57
	Uint8 *dest,		/* Destination (8 bits planes) */
slouken@281
    58
	Uint32 width,		/* Dimensions of screen to convert */
slouken@281
    59
	Uint32 height,
slouken@281
    60
	Uint32 dblligne,	/* Double the lines when converting ? */
slouken@281
    61
	Uint32 srcpitch,	/* Length of one source line in bytes */
slouken@281
    62
	Uint32 dstpitch		/* Length of one destination line in bytes */
slouken@281
    63
);
slouken@281
    64
slouken@281
    65
/*--- 4 bits functions ---*/
slouken@281
    66
slouken@281
    67
/* Convert a chunky screen to bitplane screen */
slouken@281
    68
patmandin@734
    69
void SDL_Atari_C2pConvert4(
slouken@281
    70
	Uint8 *src,			/* Source screen (one byte=one pixel) */
slouken@281
    71
	Uint8 *dest,		/* Destination (4 bits planes) */
slouken@281
    72
	Uint32 width,		/* Dimensions of screen to convert */
slouken@281
    73
	Uint32 height,
slouken@281
    74
	Uint32 dblligne,	/* Double the lines when converting ? */
slouken@281
    75
	Uint32 srcpitch,	/* Length of one source line in bytes */
slouken@281
    76
	Uint32 dstpitch		/* Length of one destination line in bytes */
slouken@281
    77
);
slouken@281
    78
slouken@281
    79
/* Conversion palette */
slouken@281
    80
patmandin@734
    81
void SDL_Atari_C2pConvert4_pal(Uint16 *lightpalette);
slouken@281
    82
slouken@281
    83
#endif /* _ATARI_C2P_h */