jabcode
 All Classes Files Functions Variables Enumerations Macros
ldpc.h File Reference

LDPC encoder/decoder header. More...

Go to the source code of this file.

Macros

#define LPDC_METADATA_SEED   38545
 
#define LPDC_MESSAGE_SEED   785465
 

Functions

jab_dataencodeLDPC (jab_data *data, jab_int32 *coderate_params)
 LDPC encoding. More...
 
jab_int32 decodeLDPChd (jab_byte *data, jab_int32 length, jab_int32 wc, jab_int32 wr)
 LDPC decoding to perform hard decision. More...
 
jab_int32 decodeLDPC (jab_float *enc, jab_int32 length, jab_int32 wc, jab_int32 wr, jab_byte *dec)
 LDPC decoding to performe soft decision. More...
 

Detailed Description

LDPC encoder/decoder header.

libjabcode - JABCode Encoding/Decoding Library

Copyright 2016 by Fraunhofer SIT. All rights reserved. See LICENSE file for full terms of use and distribution.

Contact: Huajian Liu liu@s.nosp@m.it.f.nosp@m.raunh.nosp@m.ofer.nosp@m..de Waldemar Berchtold walde.nosp@m.mar..nosp@m.berch.nosp@m.told.nosp@m.@sit..nosp@m.frau.nosp@m.nhofe.nosp@m.r.de

Function Documentation

jab_int32 decodeLDPC ( jab_float *  enc,
jab_int32  length,
jab_int32  wc,
jab_int32  wr,
jab_byte *  dec 
)

LDPC decoding to performe soft decision.

Parameters
encthe probability value for each bit position
lengththe encoded data length
wcthe number of '1's in each column
wrthe number of '1's in each row
decthe decoded data
Returns
the decoded data length | 0: decoding error
jab_int32 decodeLDPChd ( jab_byte *  data,
jab_int32  length,
jab_int32  wc,
jab_int32  wr 
)

LDPC decoding to perform hard decision.

Parameters
datathe encoded data
lengththe encoded data length
wcthe number of '1's in a column
wrthe number of '1's in a row
Returns
the decoded data length | 0: fatal error (out of memory)
jab_data* encodeLDPC ( jab_data data,
jab_int32 *  coderate_params 
)

LDPC encoding.

Parameters
datathe data to be encoded
coderate_paramsthe two code rate parameter wc and wr indicating how many '1' in a column (Wc) and how many '1' in a row of the parity check matrix
Returns
the encoded data | NULL if failed