mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-19 23:26:51 +00:00
28 lines
850 B
C
Executable File
28 lines
850 B
C
Executable File
/* Configure library by modifying this file */
|
|
|
|
#ifndef SNES_NTSC_CONFIG_H
|
|
#define SNES_NTSC_CONFIG_H
|
|
|
|
/* Format of source pixels */
|
|
/* #define SNES_NTSC_IN_FORMAT SNES_NTSC_RGB16 */
|
|
#define SNES_NTSC_IN_FORMAT SNES_NTSC_BGR15
|
|
|
|
/* The following affect the built-in blitter only; a custom blitter can
|
|
handle things however it wants. */
|
|
|
|
/* Bits per pixel of output. Can be 15, 16, 32, or 24 (same as 32). */
|
|
#define SNES_NTSC_OUT_DEPTH 15
|
|
|
|
/* Type of input pixel values */
|
|
#define SNES_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 SNES_NTSC_ADJ_IN( in ) (((in >> 10) & 0x1F) | (in & 0x3E0) | ((in << 10) & 0x7C00))
|
|
|
|
|
|
/* For each pixel, this is the basic operation:
|
|
output_color = SNES_NTSC_ADJ_IN( SNES_NTSC_IN_T ) */
|
|
|
|
#endif
|