17 #ifndef SOFTFILTER_API_H__ 18 #define SOFTFILTER_API_H__ 27 #define SOFTFILTER_SIMD_SSE (1 << 0) 28 #define SOFTFILTER_SIMD_SSE2 (1 << 1) 29 #define SOFTFILTER_SIMD_VMX (1 << 2) 30 #define SOFTFILTER_SIMD_VMX128 (1 << 3) 31 #define SOFTFILTER_SIMD_AVX (1 << 4) 32 #define SOFTFILTER_SIMD_NEON (1 << 5) 33 #define SOFTFILTER_SIMD_SSE3 (1 << 6) 34 #define SOFTFILTER_SIMD_SSSE3 (1 << 7) 35 #define SOFTFILTER_SIMD_MMX (1 << 8) 36 #define SOFTFILTER_SIMD_MMXEXT (1 << 9) 37 #define SOFTFILTER_SIMD_SSE4 (1 << 10) 38 #define SOFTFILTER_SIMD_SSE42 (1 << 11) 39 #define SOFTFILTER_SIMD_AVX2 (1 << 12) 40 #define SOFTFILTER_SIMD_VFPU (1 << 13) 41 #define SOFTFILTER_SIMD_PS (1 << 14) 51 const char *key,
float *
value,
float default_value);
54 const char *key,
int *
value,
int default_value);
59 float **
values,
unsigned *out_num_values,
60 const float *default_values,
unsigned num_default_values);
63 int **
values,
unsigned *out_num_values,
64 const int *default_values,
unsigned num_default_values);
67 const char *key,
char **
output,
const char *default_output);
96 #define SOFTFILTER_API_VERSION 2 100 #define SOFTFILTER_FMT_NONE 0 101 #define SOFTFILTER_FMT_RGB565 (1 << 0) 102 #define SOFTFILTER_FMT_XRGB8888 (1 << 1) 105 #define SOFTFILTER_FMT_RGB4444 (1 << 2) 107 #define SOFTFILTER_BPP_RGB565 2 108 #define SOFTFILTER_BPP_XRGB8888 4 133 unsigned in_fmt,
unsigned out_fmt,
143 unsigned *out_width,
unsigned *out_height,
154 void *
output,
size_t output_stride,
const GLvoid * ptr
Definition: nx_glsym.h:242
softfilter_create_t create
Definition: softfilter.h:168
softfilter_get_work_packets_t get_work_packets
Definition: softfilter.h:173
softfilter_config_get_float_t get_float
Definition: softfilter.h:75
GLboolean GLenum GLenum GLvoid * values
Definition: glext.h:6318
void(* softfilter_destroy_t)(void *data)
Definition: softfilter.h:137
const char * short_ident
Definition: softfilter.h:181
void(* softfilter_get_work_packets_t)(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: softfilter.h:152
int(* softfilter_config_get_int_array_t)(void *userdata, const char *key, int **values, unsigned *out_num_values, const int *default_values, unsigned num_default_values)
Definition: softfilter.h:62
int(* softfilter_config_get_string_t)(void *userdata, const char *key, char **output, const char *default_output)
Definition: softfilter.h:66
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
GLenum GLenum GLenum input
Definition: glext.h:9938
int(* softfilter_config_get_int_t)(void *userdata, const char *key, int *value, int default_value)
Definition: softfilter.h:53
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:6303
softfilter_work_t work
Definition: softfilter.h:123
softfilter_config_get_int_t get_int
Definition: softfilter.h:76
void(* softfilter_query_output_size_t)(void *data, unsigned *out_width, unsigned *out_height, unsigned width, unsigned height)
Definition: softfilter.h:142
softfilter_query_output_size_t query_output_size
Definition: softfilter.h:172
const char * ident
Definition: softfilter.h:178
Definition: softfilter.h:121
softfilter_config_get_string_t get_string
Definition: softfilter.h:81
softfilter_query_output_formats_t query_output_formats
Definition: softfilter.h:166
softfilter_query_input_formats_t query_input_formats
Definition: softfilter.h:165
void(* softfilter_work_t)(void *data, void *thread_data)
Definition: softfilter.h:120
static unsigned max_height
Definition: gx_gfx.c:278
unsigned softfilter_simd_mask_t
Definition: softfilter.h:46
Definition: softfilter.h:73
void(* softfilter_config_free_t)(void *ptr)
Definition: softfilter.h:71
Definition: rthreads.c:72
Definition: softfilter.h:163
void *(* softfilter_create_t)(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: softfilter.h:132
std::string output
Definition: Config.FromFile.cpp:44
softfilter_config_get_int_array_t get_int_array
Definition: softfilter.h:79
softfilter_destroy_t destroy
Definition: softfilter.h:169
unsigned(* softfilter_query_output_formats_t)(unsigned input_format)
Definition: softfilter.h:116
int(* softfilter_config_get_float_array_t)(void *userdata, const char *key, float **values, unsigned *out_num_values, const float *default_values, unsigned num_default_values)
Definition: softfilter.h:57
GLint GLint GLsizei width
Definition: glext.h:6293
GLsizei const GLfloat * value
Definition: glext.h:6709
void * thread_data
Definition: softfilter.h:124
int(* softfilter_config_get_float_t)(void *userdata, const char *key, float *value, float default_value)
Definition: softfilter.h:50
unsigned api_version
Definition: softfilter.h:176
unsigned(* softfilter_query_input_formats_t)(void)
Definition: softfilter.h:112
unsigned(* softfilter_query_num_threads_t)(void *data)
Definition: softfilter.h:161
softfilter_query_num_threads_t query_num_threads
Definition: softfilter.h:171
softfilter_config_free_t free
Definition: softfilter.h:84
const struct softfilter_implementation * softfilter_get_implementation(softfilter_simd_mask_t simd)
Definition: 2xbr.c:762
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293
softfilter_config_get_float_array_t get_float_array
Definition: softfilter.h:78