1 | /* Configure library by modifying this file */ |
2 | |
3 | #ifndef SNES_NTSC_CONFIG_H |
4 | #define SNES_NTSC_CONFIG_H |
5 | |
6 | #if !defined(SNES9X_GTK) && !defined(_WIN32) && !defined(__LIBRETRO__) |
7 | /* Format of source pixels */ |
8 | #define SNES_NTSC_IN_FORMAT SNES_NTSC_RGB15 |
9 | /* #define SNES_NTSC_IN_FORMAT SNES_NTSC_RGB16 */ |
10 | /* #define SNES_NTSC_IN_FORMAT SNES_NTSC_BGR15 */ |
11 | |
12 | /* The following affect the built-in blitter only; a custom blitter can |
13 | handle things however it wants. */ |
14 | |
15 | /* Bits per pixel of output. Can be 15, 16, 32, or 24 (same as 32). */ |
16 | #define SNES_NTSC_OUT_DEPTH 15 |
17 | #else |
18 | #define SNES_NTSC_IN_FORMAT SNES_NTSC_RGB16 |
19 | #define SNES_NTSC_OUT_DEPTH 16 |
20 | #endif |
21 | |
22 | /* Type of input pixel values */ |
23 | #define SNES_NTSC_IN_T unsigned short |
24 | |
25 | /* Each raw pixel input value is passed through this. You might want to mask |
26 | the pixel index if you use the high bits as flags, etc. */ |
27 | #define SNES_NTSC_ADJ_IN( in ) in |
28 | |
29 | /* For each pixel, this is the basic operation: |
30 | output_color = SNES_NTSC_ADJ_IN( SNES_NTSC_IN_T ) */ |
31 | |
32 | #endif |
33 | |