00001
00002
00003
00004
00005
00006
00007 void encode_rs_char(void *rs,unsigned char *data,unsigned char *parity);
00008 int decode_rs_char(void *rs,unsigned char *data,int *eras_pos,
00009 int no_eras);
00010 void *init_rs_char(unsigned int symsize,unsigned int gfpoly,
00011 unsigned int fcr,unsigned int prim,unsigned int nroots);
00012 void free_rs_char(void *rs);
00013
00014
00015 void encode_rs_int(void *rs,int *data,int *parity);
00016 int decode_rs_int(void *rs,int *data,int *eras_pos,int no_eras);
00017 void *init_rs_int(unsigned int symsize,unsigned int gfpoly,unsigned int fcr,
00018 unsigned int prim,unsigned int nroots);
00019 void free_rs_int(void *rs);
00020
00021
00022
00023
00024 void encode_rs_8(unsigned char *data,unsigned char *parity);
00025 int decode_rs_8(unsigned char *data,int *eras_pos,int no_eras);
00026
00027
00028
00029
00030 extern unsigned char Taltab[],Tal1tab[];