RetroArch
Classes | Macros | Functions | Variables
lq2x.c File Reference
#include "softfilter.h"
#include <stdlib.h>
Include dependency graph for lq2x.c:

Classes

struct  softfilter_thread_data
 
struct  filter_data
 

Macros

#define LQ2X_SCALE   2
 

Functions

static unsigned lq2x_generic_input_fmts (void)
 
static unsigned lq2x_generic_output_fmts (unsigned input_fmts)
 
static unsigned lq2x_generic_threads (void *data)
 
static voidlq2x_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 lq2x_generic_output (void *data, unsigned *out_width, unsigned *out_height, unsigned width, unsigned height)
 
static void lq2x_generic_destroy (void *data)
 
static void lq2x_generic_rgb565 (unsigned width, unsigned height, int first, int last, uint16_t *src, unsigned src_stride, uint16_t *dst, unsigned dst_stride)
 
static void lq2x_generic_xrgb8888 (unsigned width, unsigned height, int first, int last, uint32_t *src, unsigned src_stride, uint32_t *dst, unsigned dst_stride)
 
static void lq2x_work_cb_rgb565 (void *data, void *thread_data)
 
static void lq2x_work_cb_xrgb8888 (void *data, void *thread_data)
 
static void lq2x_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 lq2x_generic
 

Macro Definition Documentation

◆ LQ2X_SCALE

#define LQ2X_SCALE   2

Function Documentation

◆ lq2x_generic_create()

static void* lq2x_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:

◆ lq2x_generic_destroy()

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

◆ lq2x_generic_input_fmts()

static unsigned lq2x_generic_input_fmts ( void  )
static

◆ lq2x_generic_output()

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

◆ lq2x_generic_output_fmts()

static unsigned lq2x_generic_output_fmts ( unsigned  input_fmts)
static

◆ lq2x_generic_packets()

static void lq2x_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:

◆ lq2x_generic_rgb565()

static void lq2x_generic_rgb565 ( 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:

◆ lq2x_generic_threads()

static unsigned lq2x_generic_threads ( void data)
static

◆ lq2x_generic_xrgb8888()

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

◆ lq2x_work_cb_rgb565()

static void lq2x_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:

◆ lq2x_work_cb_xrgb8888()

static void lq2x_work_cb_xrgb8888 ( 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

◆ lq2x_generic

const struct softfilter_implementation lq2x_generic
static
Initial value:
= {
"LQ2x",
"lq2x",
}
static void * lq2x_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: lq2x.c:64
static void lq2x_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: lq2x.c:229
#define SOFTFILTER_API_VERSION
Definition: softfilter.h:96
static unsigned lq2x_generic_threads(void *data)
Definition: lq2x.c:58
static unsigned lq2x_generic_input_fmts(void)
Definition: lq2x.c:48
static unsigned lq2x_generic_output_fmts(unsigned input_fmts)
Definition: lq2x.c:53
static void lq2x_generic_destroy(void *data)
Definition: lq2x.c:95
static void lq2x_generic_output(void *data, unsigned *out_width, unsigned *out_height, unsigned width, unsigned height)
Definition: lq2x.c:87