RetroArch
|
#include "snes_ntsc_config.h"
Go to the source code of this file.
Classes | |
struct | snes_ntsc_setup_t |
struct | snes_ntsc_t |
Macros | |
#define | SNES_NTSC_OUT_WIDTH(in_width) ((((in_width) - 1) / snes_ntsc_in_chunk + 1) * snes_ntsc_out_chunk) |
#define | SNES_NTSC_IN_WIDTH(out_width) (((out_width) / snes_ntsc_out_chunk - 1) * snes_ntsc_in_chunk + 1) |
#define | SNES_NTSC_BEGIN_ROW(ntsc, burst, pixel0, pixel1, pixel2) |
#define | SNES_NTSC_COLOR_IN(index, color) SNES_NTSC_COLOR_IN_( index, color, SNES_NTSC_IN_FORMAT, ktable ) |
#define | SNES_NTSC_RGB_OUT(index, rgb_out, bits) SNES_NTSC_RGB_OUT_14_( index, rgb_out, bits, 1 ) |
#define | SNES_NTSC_HIRES_ROW(ntsc, burst, pixel1, pixel2, pixel3, pixel4, pixel5) |
#define | SNES_NTSC_HIRES_OUT(x, rgb_out, bits) |
#define | SNES_NTSC_RGB16(ktable, n) |
#define | SNES_NTSC_BGR15(ktable, n) |
#define | SNES_NTSC_BEGIN_ROW_6_(pixel0, pixel1, pixel2, ENTRY, table) |
#define | SNES_NTSC_RGB_OUT_14_(x, rgb_out, bits, shift) |
#define | snes_ntsc_rgb_builder ((1L << 21) | (1 << 11) | (1 << 1)) |
#define | snes_ntsc_clamp_mask (snes_ntsc_rgb_builder * 3 / 2) |
#define | snes_ntsc_clamp_add (snes_ntsc_rgb_builder * 0x101) |
#define | SNES_NTSC_CLAMP_(io, shift) |
#define | SNES_NTSC_COLOR_IN_(index, color, ENTRY, table) |
#define | SNES_NTSC_RGB_OUT_(rgb_out, bits, x) |
Typedefs | |
typedef struct snes_ntsc_setup_t | snes_ntsc_setup_t |
typedef struct snes_ntsc_t | snes_ntsc_t |
typedef unsigned long | snes_ntsc_rgb_t |
Enumerations | |
enum | { snes_ntsc_in_chunk = 3 } |
enum | { snes_ntsc_out_chunk = 7 } |
enum | { snes_ntsc_black = 0 } |
enum | { snes_ntsc_burst_count = 3 } |
enum | { snes_ntsc_entry_size = 128 } |
enum | { snes_ntsc_palette_size = 0x2000 } |
enum | { snes_ntsc_burst_size = snes_ntsc_entry_size / snes_ntsc_burst_count } |
Functions | |
void | snes_ntsc_init (snes_ntsc_t *ntsc, snes_ntsc_setup_t const *setup) |
void | snes_ntsc_blit (snes_ntsc_t const *ntsc, SNES_NTSC_IN_T const *input, long in_row_width, int burst_phase, int in_width, int in_height, void *rgb_out, long out_pitch, int first, int last) |
void | snes_ntsc_blit_hires (snes_ntsc_t const *ntsc, SNES_NTSC_IN_T const *input, long in_row_width, int burst_phase, int in_width, int in_height, void *rgb_out, long out_pitch, int first, int last) |
Variables | |
snes_ntsc_setup_t const | snes_ntsc_composite |
snes_ntsc_setup_t const | snes_ntsc_svideo |
snes_ntsc_setup_t const | snes_ntsc_rgb |
snes_ntsc_setup_t const | snes_ntsc_monochrome |
#define SNES_NTSC_BEGIN_ROW | ( | ntsc, | |
burst, | |||
pixel0, | |||
pixel1, | |||
pixel2 | |||
) |
#define SNES_NTSC_BEGIN_ROW_6_ | ( | pixel0, | |
pixel1, | |||
pixel2, | |||
ENTRY, | |||
table | |||
) |
#define SNES_NTSC_BGR15 | ( | ktable, | |
n | |||
) |
#define SNES_NTSC_CLAMP_ | ( | io, | |
shift | |||
) |
#define snes_ntsc_clamp_add (snes_ntsc_rgb_builder * 0x101) |
#define snes_ntsc_clamp_mask (snes_ntsc_rgb_builder * 3 / 2) |
#define SNES_NTSC_COLOR_IN | ( | index, | |
color | |||
) | SNES_NTSC_COLOR_IN_( index, color, SNES_NTSC_IN_FORMAT, ktable ) |
#define SNES_NTSC_HIRES_ROW | ( | ntsc, | |
burst, | |||
pixel1, | |||
pixel2, | |||
pixel3, | |||
pixel4, | |||
pixel5 | |||
) |
#define SNES_NTSC_IN_WIDTH | ( | out_width | ) | (((out_width) / snes_ntsc_out_chunk - 1) * snes_ntsc_in_chunk + 1) |
#define SNES_NTSC_OUT_WIDTH | ( | in_width | ) | ((((in_width) - 1) / snes_ntsc_in_chunk + 1) * snes_ntsc_out_chunk) |
#define SNES_NTSC_RGB16 | ( | ktable, | |
n | |||
) |
#define snes_ntsc_rgb_builder ((1L << 21) | (1 << 11) | (1 << 1)) |
#define SNES_NTSC_RGB_OUT | ( | index, | |
rgb_out, | |||
bits | |||
) | SNES_NTSC_RGB_OUT_14_( index, rgb_out, bits, 1 ) |
typedef unsigned long snes_ntsc_rgb_t |
typedef struct snes_ntsc_setup_t snes_ntsc_setup_t |
typedef struct snes_ntsc_t snes_ntsc_t |
void snes_ntsc_blit | ( | snes_ntsc_t const * | ntsc, |
SNES_NTSC_IN_T const * | input, | ||
long | in_row_width, | ||
int | burst_phase, | ||
int | in_width, | ||
int | in_height, | ||
void * | rgb_out, | ||
long | out_pitch, | ||
int | first, | ||
int | last | ||
) |
void snes_ntsc_blit_hires | ( | snes_ntsc_t const * | ntsc, |
SNES_NTSC_IN_T const * | input, | ||
long | in_row_width, | ||
int | burst_phase, | ||
int | in_width, | ||
int | in_height, | ||
void * | rgb_out, | ||
long | out_pitch, | ||
int | first, | ||
int | last | ||
) |
void snes_ntsc_init | ( | snes_ntsc_t * | ntsc, |
snes_ntsc_setup_t const * | setup | ||
) |
snes_ntsc_setup_t const snes_ntsc_composite |
snes_ntsc_setup_t const snes_ntsc_monochrome |
snes_ntsc_setup_t const snes_ntsc_rgb |
snes_ntsc_setup_t const snes_ntsc_svideo |