libgpac
Documentation of the core library of GPAC
reedsolomon.h File Reference
+ This graph shows which files directly or indirectly include this file:

Macros

#define NPAR   64
 
#define TRUE   1
 
#define FALSE   0
 
#define MAXDEG   (NPAR*2)
 

Typedefs

typedef unsigned long BIT32
 
typedef unsigned short BIT16
 

Functions

void initialize_ecc (void)
 
int check_syndrome (void)
 
void decode_data (unsigned char data[], int nbytes)
 
void encode_data (unsigned char msg[], int nbytes, unsigned char dst[])
 
void init_galois_tables (void)
 
int ginv (int elt)
 
int gmult (int a, int b)
 
int correct_errors_erasures (unsigned char codeword[], int csize, int nerasures, int erasures[])
 
void add_polys (int dst[], int src[])
 
void scale_poly (int k, int poly[])
 
void mult_polys (int dst[], int p1[], int p2[])
 
void copy_poly (int dst[], int src[])
 
void zero_poly (int poly[])
 

Variables

int pBytes [MAXDEG]
 
int synBytes [MAXDEG]
 
int RS_DEBUG
 
int gexp []
 
int glog []
 

Macro Definition Documentation

◆ NPAR

#define NPAR   64

◆ TRUE

#define TRUE   1

◆ FALSE

#define FALSE   0

◆ MAXDEG

#define MAXDEG   (NPAR*2)

Typedef Documentation

◆ BIT32

typedef unsigned long BIT32

◆ BIT16

typedef unsigned short BIT16

Function Documentation

◆ initialize_ecc()

void initialize_ecc ( void  )

◆ check_syndrome()

int check_syndrome ( void  )

◆ decode_data()

void decode_data ( unsigned char  data[],
int  nbytes 
)

◆ encode_data()

void encode_data ( unsigned char  msg[],
int  nbytes,
unsigned char  dst[] 
)

◆ init_galois_tables()

void init_galois_tables ( void  )

◆ ginv()

int ginv ( int  elt)

◆ gmult()

int gmult ( int  a,
int  b 
)

◆ correct_errors_erasures()

int correct_errors_erasures ( unsigned char  codeword[],
int  csize,
int  nerasures,
int  erasures[] 
)

◆ add_polys()

void add_polys ( int  dst[],
int  src[] 
)

◆ scale_poly()

void scale_poly ( int  k,
int  poly[] 
)

◆ mult_polys()

void mult_polys ( int  dst[],
int  p1[],
int  p2[] 
)

◆ copy_poly()

void copy_poly ( int  dst[],
int  src[] 
)

◆ zero_poly()

void zero_poly ( int  poly[])

Variable Documentation

◆ pBytes

int pBytes[MAXDEG]
extern

◆ synBytes

int synBytes[MAXDEG]
extern

◆ RS_DEBUG

int RS_DEBUG
extern

◆ gexp

int gexp[]
extern

◆ glog

int glog[]
extern