C# Класс zxingwp7.common.reedsolomon.ReedSolomonDecoder

Implements Reed-Solomon decoding, as the name implies.

The algorithm will not be explained here, but the following references were helpful in creating this implementation:

Much credit is due to William Rucklidge since portions of this code are an indirect port of his C++ Reed-Solomon implementation.

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ReedSolomonDecoder ( GF256 field )
decode ( int received, int twoS ) : void

Decodes given set of received codewords, which include both data and error-correction codewords. Really, this means it uses Reed-Solomon to detect and correct errors, in-place, in the input.

Приватные методы

Метод Описание
findErrorLocations ( GF256Poly errorLocator ) : int[]
findErrorMagnitudes ( GF256Poly errorEvaluator, int errorLocations, bool dataMatrix ) : int[]
runEuclideanAlgorithm ( GF256Poly a, GF256Poly b, int R ) : zxingwp7.common.reedsolomon.GF256Poly[]

Описание методов

ReedSolomonDecoder() публичный Метод

public ReedSolomonDecoder ( GF256 field )
field GF256

decode() публичный Метод

Decodes given set of received codewords, which include both data and error-correction codewords. Really, this means it uses Reed-Solomon to detect and correct errors, in-place, in the input.

public decode ( int received, int twoS ) : void
received int data and error-correction codewords ///
twoS int number of error-correction codewords available ///
Результат void