RetroArch
|
Classes | |
struct | softfilter_thread_data |
struct | filter_data |
Macros | |
#define | TWOXBR_SCALE 2 |
#define | RED_MASK565 0xF800 |
#define | GREEN_MASK565 0x07E0 |
#define | BLUE_MASK565 0x001F |
#define | PG_LBMASK565 0xF7DE |
#define | RED_MASK8888 0x000000FF |
#define | GREEN_MASK8888 0x0000FF00 |
#define | BLUE_MASK8888 0x00FF0000 |
#define | PG_LBMASK8888 0xFEFEFEFE |
#define | ALPHA_MASK8888 0xFF000000 |
#define | ALPHA_BLEND_128_W(dst, src) dst = ((src & pg_lbmask) >> 1) + ((dst & pg_lbmask) >> 1) |
#define | ALPHA_BLEND_32_W(dst, src) |
#define | ALPHA_BLEND_8888_32_W(dst, src) |
#define | ALPHA_BLEND_64_W(dst, src) |
#define | ALPHA_BLEND_8888_64_W(dst, src) |
#define | ALPHA_BLEND_192_W(dst, src) |
#define | ALPHA_BLEND_8888_192_W(dst, src) |
#define | ALPHA_BLEND_224_W(dst, src) |
#define | ALPHA_BLEND_8888_224_W(dst, src) |
#define | LEFT_UP_2_2X(N3, N2, N1, PIXEL) |
#define | LEFT_2_2X(N3, N2, PIXEL) |
#define | UP_2_2X(N3, N1, PIXEL) |
#define | DIA_2X(N3, PIXEL) ALPHA_BLEND_128_W(E[N3], PIXEL); \ |
#define | LEFT_UP_2_8888_2X(N3, N2, N1, PIXEL) |
#define | LEFT_2_8888_2X(N3, N2, PIXEL) |
#define | UP_2_8888_2X(N3, N1, PIXEL) |
#define | DIA_8888_2X(N3, PIXEL) ALPHA_BLEND_128_W(E[N3], PIXEL); \ |
#define | df(Z, A, B) abs(Z->RGBtoYUV[A] - Z->RGBtoYUV[B])\ |
#define | eq(Z, A, B) (df(Z, A, B) < 155)\ |
#define | FILTRO_RGB565(Z, PE, _PI, PH, PF, PG, PC, PD, PB, PA, G5, C4, G0, D0, C1, B1, F4, I4, H5, I5, A0, A1, N0, N1, N2, N3, pg_red_mask, pg_green_mask, pg_blue_mask) |
#define | FILTRO_RGB8888(Z, PE, _PI, PH, PF, PG, PC, PD, PB, PA, G5, C4, G0, D0, C1, B1, F4, I4, H5, I5, A0, A1, N0, N1, N2, N3, pg_red_mask, pg_green_mask, pg_blue_mask) |
#define | twoxbr_function(FILTRO, Z) |
Functions | |
static unsigned | twoxbr_generic_input_fmts (void) |
static unsigned | twoxbr_generic_output_fmts (unsigned input_fmts) |
static unsigned | twoxbr_generic_threads (void *data) |
static void | SetupFormat (void *data) |
static void * | twoxbr_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 | twoxbr_generic_output (void *data, unsigned *out_width, unsigned *out_height, unsigned width, unsigned height) |
static void | twoxbr_generic_destroy (void *data) |
float | df8 (uint32_t A, uint32_t B, uint32_t pg_red_mask, uint32_t pg_green_mask, uint32_t pg_blue_mask) |
int | eq8 (uint32_t A, uint32_t B, uint32_t pg_red_mask, uint32_t pg_green_mask, uint32_t pg_blue_mask) |
static void | twoxbr_generic_xrgb8888 (void *data, unsigned width, unsigned height, int first, int last, uint32_t *src, unsigned src_stride, uint32_t *dst, unsigned dst_stride) |
static void | twoxbr_generic_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 | twoxbr_work_cb_rgb565 (void *data, void *thread_data) |
static void | twoxbr_work_cb_xrgb8888 (void *data, void *thread_data) |
static void | twoxbr_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_implementation * | softfilter_get_implementation (softfilter_simd_mask_t simd) |
Variables | |
static const struct softfilter_implementation | twoxbr_generic |
#define ALPHA_MASK8888 0xFF000000 |
#define BLUE_MASK565 0x001F |
#define BLUE_MASK8888 0x00FF0000 |
#define DIA_2X | ( | N3, | |
PIXEL | |||
) | ALPHA_BLEND_128_W(E[N3], PIXEL); \ |
#define DIA_8888_2X | ( | N3, | |
PIXEL | |||
) | ALPHA_BLEND_128_W(E[N3], PIXEL); \ |
#define FILTRO_RGB565 | ( | Z, | |
PE, | |||
_PI, | |||
PH, | |||
PF, | |||
PG, | |||
PC, | |||
PD, | |||
PB, | |||
PA, | |||
G5, | |||
C4, | |||
G0, | |||
D0, | |||
C1, | |||
B1, | |||
F4, | |||
I4, | |||
H5, | |||
I5, | |||
A0, | |||
A1, | |||
N0, | |||
N1, | |||
N2, | |||
N3, | |||
pg_red_mask, | |||
pg_green_mask, | |||
pg_blue_mask | |||
) |
#define FILTRO_RGB8888 | ( | Z, | |
PE, | |||
_PI, | |||
PH, | |||
PF, | |||
PG, | |||
PC, | |||
PD, | |||
PB, | |||
PA, | |||
G5, | |||
C4, | |||
G0, | |||
D0, | |||
C1, | |||
B1, | |||
F4, | |||
I4, | |||
H5, | |||
I5, | |||
A0, | |||
A1, | |||
N0, | |||
N1, | |||
N2, | |||
N3, | |||
pg_red_mask, | |||
pg_green_mask, | |||
pg_blue_mask | |||
) |
#define GREEN_MASK565 0x07E0 |
#define GREEN_MASK8888 0x0000FF00 |
#define LEFT_2_2X | ( | N3, | |
N2, | |||
PIXEL | |||
) |
#define LEFT_2_8888_2X | ( | N3, | |
N2, | |||
PIXEL | |||
) |
#define LEFT_UP_2_2X | ( | N3, | |
N2, | |||
N1, | |||
PIXEL | |||
) |
#define LEFT_UP_2_8888_2X | ( | N3, | |
N2, | |||
N1, | |||
PIXEL | |||
) |
#define PG_LBMASK565 0xF7DE |
#define PG_LBMASK8888 0xFEFEFEFE |
#define RED_MASK565 0xF800 |
#define RED_MASK8888 0x000000FF |
#define twoxbr_function | ( | FILTRO, | |
Z | |||
) |
#define TWOXBR_SCALE 2 |
#define UP_2_2X | ( | N3, | |
N1, | |||
PIXEL | |||
) |
#define UP_2_8888_2X | ( | N3, | |
N1, | |||
PIXEL | |||
) |
float df8 | ( | uint32_t | A, |
uint32_t | B, | ||
uint32_t | pg_red_mask, | ||
uint32_t | pg_green_mask, | ||
uint32_t | pg_blue_mask | ||
) |
int eq8 | ( | uint32_t | A, |
uint32_t | B, | ||
uint32_t | pg_red_mask, | ||
uint32_t | pg_green_mask, | ||
uint32_t | pg_blue_mask | ||
) |
const struct softfilter_implementation* softfilter_get_implementation | ( | softfilter_simd_mask_t | simd | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |