src/video/ataricommon/SDL_ataric2p_s.h
author Ryan C. Gordon <icculus@icculus.org>
Fri, 06 Jan 2006 13:20:10 +0000
changeset 1234 73676c1f56ee
parent 1086 93207759e065
child 1312 c9b51268668f
permissions -rw-r--r--
For sanity's sake, removed the '&' when passing copy_row array to asm.
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
/*--- Functions pointers ---*/
slouken@281
    34
slouken@281
    35
/* Convert a chunky screen to bitplane screen */
slouken@281
    36
patmandin@734
    37
extern void (*SDL_Atari_C2pConvert)(
slouken@281
    38
	Uint8 *src,			/* Source screen (one byte=one pixel) */
slouken@281
    39
	Uint8 *dest,		/* Destination (4/8 bits planes) */
slouken@281
    40
	Uint32 width,		/* Dimensions of screen to convert */
slouken@281
    41
	Uint32 height,
slouken@281
    42
	Uint32 dblligne,	/* Double the lines when converting ? */
slouken@281
    43
	Uint32 srcpitch,	/* Length of one source line in bytes */
slouken@281
    44
	Uint32 dstpitch		/* Length of one destination line in bytes */
slouken@281
    45
);
slouken@281
    46
slouken@281
    47
/*--- 8 bits functions ---*/
slouken@281
    48
slouken@281
    49
/* Convert a chunky screen to bitplane screen */
slouken@281
    50
patmandin@734
    51
void SDL_Atari_C2pConvert8(
slouken@281
    52
	Uint8 *src,			/* Source screen (one byte=one pixel) */
slouken@281
    53
	Uint8 *dest,		/* Destination (8 bits planes) */
slouken@281
    54
	Uint32 width,		/* Dimensions of screen to convert */
slouken@281
    55
	Uint32 height,
slouken@281
    56
	Uint32 dblligne,	/* Double the lines when converting ? */
slouken@281
    57
	Uint32 srcpitch,	/* Length of one source line in bytes */
slouken@281
    58
	Uint32 dstpitch		/* Length of one destination line in bytes */
slouken@281
    59
);
slouken@281
    60
slouken@281
    61
/*--- 4 bits functions ---*/
slouken@281
    62
slouken@281
    63
/* Convert a chunky screen to bitplane screen */
slouken@281
    64
patmandin@734
    65
void SDL_Atari_C2pConvert4(
slouken@281
    66
	Uint8 *src,			/* Source screen (one byte=one pixel) */
slouken@281
    67
	Uint8 *dest,		/* Destination (4 bits planes) */
slouken@281
    68
	Uint32 width,		/* Dimensions of screen to convert */
slouken@281
    69
	Uint32 height,
slouken@281
    70
	Uint32 dblligne,	/* Double the lines when converting ? */
slouken@281
    71
	Uint32 srcpitch,	/* Length of one source line in bytes */
slouken@281
    72
	Uint32 dstpitch		/* Length of one destination line in bytes */
slouken@281
    73
);
slouken@281
    74
slouken@281
    75
/* Conversion palette */
slouken@281
    76
patmandin@734
    77
void SDL_Atari_C2pConvert4_pal(Uint16 *lightpalette);
slouken@281
    78
slouken@281
    79
#endif /* _ATARI_C2P_h */