jabcode
 All Classes Files Functions Variables Enumerations Macros
ldpc.h
Go to the documentation of this file.
1 
14 #ifndef JABCODE_LDPC_H
15 #define JABCODE_LDPC_H
16 
17 #define LPDC_METADATA_SEED 38545
18 #define LPDC_MESSAGE_SEED 785465
19 
20 //#define LDPC_DEFAULT_WC 4 //default error correction level 3
21 //#define LDPC_DEFAULT_WR 9 //default error correction level 3
22 
23 //static const jab_vector2d default_ecl = {4, 7}; //default (wc, wr) for LDPC, corresponding to ecc level 5.
24 //static const jab_vector2d default_ecl = {5, 6}; //This (wc, wr) could be used, if higher robustness is preferred to capacity.
25 
26 extern jab_data *encodeLDPC(jab_data* data, jab_int32* coderate_params);
27 extern jab_int32 decodeLDPChd(jab_byte* data, jab_int32 length, jab_int32 wc, jab_int32 wr);
28 extern jab_int32 decodeLDPC(jab_float* enc, jab_int32 length, jab_int32 wc, jab_int32 wr, jab_byte* dec);
29 
30 
31 #endif
jab_int32 decodeLDPC(jab_float *enc, jab_int32 length, jab_int32 wc, jab_int32 wr, jab_byte *dec)
LDPC decoding to performe soft decision.
Definition: ldpc.c:1171
Data structure.
Definition: jabcode.h:87
jab_int32 decodeLDPChd(jab_byte *data, jab_int32 length, jab_int32 wc, jab_int32 wr)
LDPC decoding to perform hard decision.
Definition: ldpc.c:652
jab_data * encodeLDPC(jab_data *data, jab_int32 *coderate_params)
LDPC encoding.
Definition: ldpc.c:379