RetroArch
|
#include "softfilter.h"
#include <boolean.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <retro_inline.h>
Classes | |
struct | softfilter_thread_data |
struct | filter_data |
Macros | |
#define | PHOSPHOR2X_SCALE 2 |
#define | clamp8(x) ((x) > 255 ? 255 : ((x < 0) ? 0 : (uint32_t)x)) |
#define | clamp6(x) ((x) > 63 ? 63 : ((x < 0) ? 0 : (uint32_t)x)) |
#define | red_rgb565(x) (((x) >> 10) & 0x3e) |
#define | green_rgb565(x) (((x) >> 5) & 0x3f) |
#define | blue_rgb565(x) (((x) << 1) & 0x3e) |
#define | red_xrgb8888(x) (((x) >> 16) & 0xff) |
#define | green_xrgb8888(x) (((x) >> 8) & 0xff) |
#define | blue_xrgb8888(x) (((x) >> 0) & 0xff) |
#define | set_red_rgb565(var, x) (var = ((var) & 0x07FF) | ((x&0x3e) << 10)) |
#define | set_green_rgb565(var, x) (var = ((var) & 0xF81F) | ((x&0x3f) << 5)) |
#define | set_blue_rgb565(var, x) (var = ((var) & 0xFFE0) | ((x&0x3e) >> 1)) |
#define | set_red_xrgb8888(var, x) (var = ((var) & 0x00ffff) | ((x) << 16)) |
#define | set_green_xrgb8888(var, x) (var = ((var) & 0xff00ff) | ((x) << 8)) |
#define | set_blue_xrgb8888(var, x) (var = ((var) & 0xffff00) | ((x) << 0)) |
#define | blend_pixels_xrgb8888(a, b) (((a >> 1) & 0x7f7f7f7f) + ((b >> 1) & 0x7f7f7f7f)) |
#define | blend_pixels_rgb565(a, b) (((a&0xF7DE) >> 1) + ((b&0xF7DE) >> 1)) |
Variables | |
static const struct softfilter_implementation | phosphor2x_generic |
#define PHOSPHOR2X_SCALE 2 |
#define set_blue_rgb565 | ( | var, | |
x | |||
) | (var = ((var) & 0xFFE0) | ((x&0x3e) >> 1)) |
#define set_blue_xrgb8888 | ( | var, | |
x | |||
) | (var = ((var) & 0xffff00) | ((x) << 0)) |
#define set_green_rgb565 | ( | var, | |
x | |||
) | (var = ((var) & 0xF81F) | ((x&0x3f) << 5)) |
#define set_green_xrgb8888 | ( | var, | |
x | |||
) | (var = ((var) & 0xff00ff) | ((x) << 8)) |
#define set_red_rgb565 | ( | var, | |
x | |||
) | (var = ((var) & 0x07FF) | ((x&0x3e) << 10)) |
#define set_red_xrgb8888 | ( | var, | |
x | |||
) | (var = ((var) & 0x00ffff) | ((x) << 16)) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
const struct softfilter_implementation* softfilter_get_implementation | ( | softfilter_simd_mask_t | simd | ) |
|
static |