DFDL4S (DFDL for Space Library)
Static Public Member Functions | List of all members
org.esa.s2g.dfdllib.quality.ReedSolomonDecoder Class Reference

Static Public Member Functions

static RSDecodeState decode (byte[] data, boolean correct)

Detailed Description

The ReedSolomonDecoder class provided functionality for validating the ReedSolomon of a data frame

Member Function Documentation

◆ decode()

static RSDecodeState org.esa.s2g.dfdllib.quality.ReedSolomonDecoder.decode ( byte[]  data,
boolean  correct 

Do Reed Solomon decoding on one frame

  • Calculate the syndrome vector from the received RS codeword.
  • Calculate the coefficients of the error locator polynomial.

Calculate the roots of the error locator polynomial.

  • Calculate the error magnitudes.
  • Correct the symbols in error with the previously calculated information.

The algorithm used is described in [1].

[1] https://public.ccsds.org/Pubs/130x1g3.pdf (section 5)

dataThe data frame to be decoded
correctFlag indicating if correction is to be applied
RSDecodeState object after the decoding containing the:
  • state of RS decode; OK=0 , CORRECTED=-1 or UNCORRECTABLE=-2
  • list containing information about the errors detect during the decode (empty list is return if no error is detected)

The documentation for this class was generated from the following file: