/** ALOE headers */ #include #include #include #include "typetools.h" #include "itf_types.h" #include "inputs.h" #include "outputs.h" #include "stats.h" int configured; struct interleaver_h cur_ctrl; int input_i[INPUT_MAX_DATA*8],output_i[OUTPUT_MAX_DATA*8]; int process_input(int len) { int i; char *inc; short *ins; int *ini; float *inf; if (!configured) { if (!rows) { rows = typeNsamplesArray(datatype,len)/cols; } else if (!cols) { cols = typeNsamplesArray(datatype,len)/rows; } else if (!rows && !cols) { Log("Interleaver: Error not configured %d rows %d cols\n",rows,cols); return 0; } cur_ctrl.input_length=typeNsamplesArray(datatype,len); cur_ctrl.output_length=rows*cols; cur_ctrl.permutation = NONE; cur_ctrl.rows = rows; cur_ctrl.cols = cols; } if (len