fec.h

Go to the documentation of this file.
00001 
00035 /*
00036  * The following parameter defines how many bits are used for
00037  * field elements. The code supports any value from 2 to 16
00038  * but fastest operation is achieved with 8 bit elements.
00039  */
00040 
00041 #define GF_BITS  8      /* code over GF(2^^GF_BITS) - change to suit */
00042 #define GF_SIZE ((1 << GF_BITS) - 1)    /* powers of \alpha */
00043 
00044 extern void fec_free(void *p) ;
00045 extern void* fec_new(int k, int n) ;
00046 
00047 extern void init_fec(void) ;
00048 extern void fec_encode(void *code, void **src, void *dst, int index, int sz) ;
00049 extern int  fec_decode(void *code, void **pkt, int index[], int sz) ;

Generated on Fri Mar 9 20:08:51 2007 for MAD-FCL by  doxygen 1.5.0