RetroArch
Macros | Functions | Variables
snes_ntsc.c File Reference
#include "snes_ntsc.h"
#include "snes_ntsc_impl.h"
Include dependency graph for snes_ntsc.c:
This graph shows which files directly or indirectly include this file:

Macros

#define _BLARGG_SNES_NTSC_IMPLEMENTATION_H
 
#define alignment_count   3
 
#define burst_count   3
 
#define rescale_in   8
 
#define rescale_out   7
 
#define artifacts_mid   1.0f
 
#define fringing_mid   1.0f
 
#define std_decoder_hue   0
 
#define rgb_bits   7 /* half normal range to allow for doubled hires pixels */
 
#define gamma_size   32
 

Functions

static void merge_kernel_fields (snes_ntsc_rgb_t *io)
 
static void correct_errors (snes_ntsc_rgb_t color, snes_ntsc_rgb_t *out)
 
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_monochrome = { 0,-1, 0, 0,.2, 0,.2,-.2,-.2,-1, 1, 0, 0 }
 
snes_ntsc_setup_t const snes_ntsc_composite = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 }
 
snes_ntsc_setup_t const snes_ntsc_svideo = { 0, 0, 0, 0,.2, 0,.2, -1, -1, 0, 1, 0, 0 }
 
snes_ntsc_setup_t const snes_ntsc_rgb = { 0, 0, 0, 0,.2, 0,.7, -1, -1,-1, 1, 0, 0 }
 
pixel_info_t const snes_ntsc_pixels [alignment_count]
 

Macro Definition Documentation

◆ _BLARGG_SNES_NTSC_IMPLEMENTATION_H

#define _BLARGG_SNES_NTSC_IMPLEMENTATION_H

◆ alignment_count

#define alignment_count   3

◆ artifacts_mid

#define artifacts_mid   1.0f

◆ burst_count

#define burst_count   3

◆ fringing_mid

#define fringing_mid   1.0f

◆ gamma_size

#define gamma_size   32

◆ rescale_in

#define rescale_in   8

◆ rescale_out

#define rescale_out   7

◆ rgb_bits

#define rgb_bits   7 /* half normal range to allow for doubled hires pixels */

◆ std_decoder_hue

#define std_decoder_hue   0

Function Documentation

◆ correct_errors()

static void correct_errors ( snes_ntsc_rgb_t  color,
snes_ntsc_rgb_t out 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ merge_kernel_fields()

static void merge_kernel_fields ( snes_ntsc_rgb_t io)
static
Here is the caller graph for this function:

◆ snes_ntsc_blit()

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 
)
Here is the caller graph for this function:

◆ snes_ntsc_blit_hires()

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 
)
Here is the caller graph for this function:

◆ snes_ntsc_init()

void snes_ntsc_init ( snes_ntsc_t ntsc,
snes_ntsc_setup_t const setup 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ snes_ntsc_composite

snes_ntsc_setup_t const snes_ntsc_composite = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 }

◆ snes_ntsc_monochrome

snes_ntsc_setup_t const snes_ntsc_monochrome = { 0,-1, 0, 0,.2, 0,.2,-.2,-.2,-1, 1, 0, 0 }

◆ snes_ntsc_pixels

pixel_info_t const snes_ntsc_pixels[alignment_count]
Initial value:
= {
{ PIXEL_OFFSET( -4, -9 ), { 1, 1, .6667f, 0 } },
{ PIXEL_OFFSET( -2, -7 ), { .3333f, 1, 1, .3333f } },
{ PIXEL_OFFSET( 0, -5 ), { 0, .6667f, 1, 1 } },
}
#define PIXEL_OFFSET(ntsc, scaled)
Definition: snes_ntsc_impl.h:309

◆ snes_ntsc_rgb

snes_ntsc_setup_t const snes_ntsc_rgb = { 0, 0, 0, 0,.2, 0,.7, -1, -1,-1, 1, 0, 0 }

◆ snes_ntsc_svideo

snes_ntsc_setup_t const snes_ntsc_svideo = { 0, 0, 0, 0,.2, 0,.2, -1, -1, 0, 1, 0, 0 }