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