2011-07-14 00:49:52 +02:00
|
|
|
/* Configure library by modifying this file */
|
|
|
|
|
|
|
|
#ifndef MD_NTSC_CONFIG_H
|
|
|
|
#define MD_NTSC_CONFIG_H
|
|
|
|
|
2012-02-01 23:55:42 +01:00
|
|
|
/* Format of source & output pixels (RGB555 or RGB565 only)*/
|
2012-02-01 01:37:11 +01:00
|
|
|
#ifdef USE_15BPP_RENDERING
|
|
|
|
#define MD_NTSC_IN_FORMAT MD_NTSC_RGB15
|
2012-02-01 23:55:42 +01:00
|
|
|
#define MD_NTSC_OUT_DEPTH 15
|
2012-02-01 01:37:11 +01:00
|
|
|
#else
|
|
|
|
#define MD_NTSC_IN_FORMAT MD_NTSC_RGB16
|
2012-02-01 23:55:42 +01:00
|
|
|
#define MD_NTSC_OUT_DEPTH 16
|
2012-02-01 01:37:11 +01:00
|
|
|
#endif
|
2011-07-14 00:49:52 +02:00
|
|
|
|
2012-02-01 23:55:42 +01:00
|
|
|
/* Original CRAM format (not used) */
|
2012-02-01 01:37:11 +01:00
|
|
|
/* #define MD_NTSC_IN_FORMAT MD_NTSC_BGR9 */
|
2011-07-14 00:49:52 +02:00
|
|
|
|
2012-02-01 23:55:42 +01:00
|
|
|
/* The following affect the built-in blitter only; a custom blitter can
|
|
|
|
handle things however it wants. */
|
|
|
|
|
|
|
|
/* Type of input pixel values (fixed to 16-bit) */
|
2011-07-14 00:49:52 +02:00
|
|
|
#define MD_NTSC_IN_T unsigned short
|
|
|
|
|
|
|
|
/* Each raw pixel input value is passed through this. You might want to mask
|
|
|
|
the pixel index if you use the high bits as flags, etc. */
|
|
|
|
#define MD_NTSC_ADJ_IN( in ) in
|
|
|
|
|
|
|
|
/* For each pixel, this is the basic operation:
|
|
|
|
output_color = MD_NTSC_ADJ_IN( MD_NTSC_IN_T ) */
|
|
|
|
|
|
|
|
#endif
|