|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.zxing.common.reedsolomon.ReedSolomonDecoder
public final class 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.
| Constructor Summary | ||
|---|---|---|
ReedSolomonDecoder(GF256 field)
|
||
| Method Summary | ||
|---|---|---|
void |
decode(int[] received,
int twoS)
Decodes given set of received codewords, which include both data and error-correction codewords. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReedSolomonDecoder(GF256 field)
| Method Detail |
|---|
public void decode(int[] received,
int twoS)
throws ReedSolomonException
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.
received - data and error-correction codewordstwoS - number of error-correction codewords available
ReedSolomonException - if decoding fails for any reason
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal