RetroArch
Classes | Functions | Variables
blargg_ntsc_snes.c File Reference
#include "softfilter.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <boolean.h>
#include <string/stdstring.h>
#include "snes_ntsc/snes_ntsc.h"
#include "snes_ntsc/snes_ntsc.c"
Include dependency graph for blargg_ntsc_snes.c:

Classes

struct  softfilter_thread_data
 
struct  filter_data
 

Functions

static unsigned blargg_ntsc_snes_generic_input_fmts (void)
 
static unsigned blargg_ntsc_snes_generic_output_fmts (unsigned input_fmts)
 
static unsigned blargg_ntsc_snes_generic_threads (void *data)
 
static void blargg_ntsc_snes_initialize (void *data, const struct softfilter_config *config, void *userdata)
 
static voidblargg_ntsc_snes_generic_create (const struct softfilter_config *config, unsigned in_fmt, unsigned out_fmt, unsigned max_width, unsigned max_height, unsigned threads, softfilter_simd_mask_t simd, void *userdata)
 
static void blargg_ntsc_snes_generic_output (void *data, unsigned *out_width, unsigned *out_height, unsigned width, unsigned height)
 
static void blargg_ntsc_snes_generic_destroy (void *data)
 
static void blargg_ntsc_snes_render_rgb565 (void *data, int width, int height, int first, int last, uint16_t *input, int pitch, uint16_t *output, int outpitch)
 
static void blargg_ntsc_snes_rgb565 (void *data, unsigned width, unsigned height, int first, int last, uint16_t *src, unsigned src_stride, uint16_t *dst, unsigned dst_stride)
 
static void blargg_ntsc_snes_work_cb_rgb565 (void *data, void *thread_data)
 
static void blargg_ntsc_snes_generic_packets (void *data, struct softfilter_work_packet *packets, void *output, size_t output_stride, const void *input, unsigned width, unsigned height, size_t input_stride)
 
const struct softfilter_implementationsoftfilter_get_implementation (softfilter_simd_mask_t simd)
 

Variables

static const struct softfilter_implementation blargg_ntsc_snes_generic
 

Function Documentation

◆ blargg_ntsc_snes_generic_create()

static void* blargg_ntsc_snes_generic_create ( const struct softfilter_config config,
unsigned  in_fmt,
unsigned  out_fmt,
unsigned  max_width,
unsigned  max_height,
unsigned  threads,
softfilter_simd_mask_t  simd,
void userdata 
)
static
Here is the call graph for this function:

◆ blargg_ntsc_snes_generic_destroy()

static void blargg_ntsc_snes_generic_destroy ( void data)
static
Here is the call graph for this function:

◆ blargg_ntsc_snes_generic_input_fmts()

static unsigned blargg_ntsc_snes_generic_input_fmts ( void  )
static

◆ blargg_ntsc_snes_generic_output()

static void blargg_ntsc_snes_generic_output ( void data,
unsigned *  out_width,
unsigned *  out_height,
unsigned  width,
unsigned  height 
)
static

◆ blargg_ntsc_snes_generic_output_fmts()

static unsigned blargg_ntsc_snes_generic_output_fmts ( unsigned  input_fmts)
static

◆ blargg_ntsc_snes_generic_packets()

static void blargg_ntsc_snes_generic_packets ( void data,
struct softfilter_work_packet packets,
void output,
size_t  output_stride,
const void input,
unsigned  width,
unsigned  height,
size_t  input_stride 
)
static
Here is the call graph for this function:

◆ blargg_ntsc_snes_generic_threads()

static unsigned blargg_ntsc_snes_generic_threads ( void data)
static

◆ blargg_ntsc_snes_initialize()

static void blargg_ntsc_snes_initialize ( void data,
const struct softfilter_config config,
void userdata 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ blargg_ntsc_snes_render_rgb565()

static void blargg_ntsc_snes_render_rgb565 ( void data,
int  width,
int  height,
int  first,
int  last,
uint16_t input,
int  pitch,
uint16_t output,
int  outpitch 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ blargg_ntsc_snes_rgb565()

static void blargg_ntsc_snes_rgb565 ( void data,
unsigned  width,
unsigned  height,
int  first,
int  last,
uint16_t src,
unsigned  src_stride,
uint16_t dst,
unsigned  dst_stride 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ blargg_ntsc_snes_work_cb_rgb565()

static void blargg_ntsc_snes_work_cb_rgb565 ( void data,
void thread_data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ softfilter_get_implementation()

const struct softfilter_implementation* softfilter_get_implementation ( softfilter_simd_mask_t  simd)
Here is the call graph for this function:

Variable Documentation

◆ blargg_ntsc_snes_generic

const struct softfilter_implementation blargg_ntsc_snes_generic
static
Initial value:
= {
"Blargg NTSC SNES",
"blargg_ntsc_snes",
}
static unsigned blargg_ntsc_snes_generic_input_fmts(void)
Definition: blargg_ntsc_snes.c:58
static unsigned blargg_ntsc_snes_generic_output_fmts(unsigned input_fmts)
Definition: blargg_ntsc_snes.c:63
#define SOFTFILTER_API_VERSION
Definition: softfilter.h:96
static void blargg_ntsc_snes_generic_output(void *data, unsigned *out_width, unsigned *out_height, unsigned width, unsigned height)
Definition: blargg_ntsc_snes.c:147
static unsigned blargg_ntsc_snes_generic_threads(void *data)
Definition: blargg_ntsc_snes.c:68
static void blargg_ntsc_snes_generic_destroy(void *data)
Definition: blargg_ntsc_snes.c:155
static void blargg_ntsc_snes_generic_packets(void *data, struct softfilter_work_packet *packets, void *output, size_t output_stride, const void *input, unsigned width, unsigned height, size_t input_stride)
Definition: blargg_ntsc_snes.c:211
static void * blargg_ntsc_snes_generic_create(const struct softfilter_config *config, unsigned in_fmt, unsigned out_fmt, unsigned max_width, unsigned max_height, unsigned threads, softfilter_simd_mask_t simd, void *userdata)
Definition: blargg_ntsc_snes.c:122