5 #define MAX_PIPELINE_DEPTH 10 9 int add_filter(
unsigned int pos,
int (*
filter)(
unsigned char *,
unsigned char *,
unsigned int,
unsigned int))
16 void execute(
unsigned char *in,
unsigned char *out,
unsigned int x_size,
unsigned int y_size)
19 int (*
fun)(
unsigned char *,
unsigned char *,
unsigned int,
unsigned int);
23 fun = (int (*)(
unsigned char *,
unsigned char *,
unsigned int,
unsigned int))
pipeline[i];
24 int res =
fun(in, out, x_size, y_size);
27 unsigned char * tmp = in;
37 for (y = 0; y < y_size; y++) {
38 for (x = 0; x < x_size; x++) {
#define MAX_PIPELINE_DEPTH
void filter(int y, int input[][DIMENSION_X], int *output)
a 3x3 box filter. Filter an entire row of the matrix in one call.
void * pipeline[MAX_PIPELINE_DEPTH]
void execute(unsigned char *in, unsigned char *out, unsigned int x_size, unsigned int y_size)
int add_filter(unsigned int pos, int(*filter)(unsigned char *, unsigned char *, unsigned int, unsigned int))
x
Return the smallest n such that 2^n >= _x.
int fun(float *A, float *invA, float *b, float *x, float *I)