mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Remove some DEBUG blocks that apparently do not compile
git-svn-id: https://zxing.googlecode.com/svn/trunk@941 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
bd73aebc73
commit
1c243335a6
|
@ -55,10 +55,6 @@ namespace reedsolomon {
|
||||||
|
|
||||||
GF256Poly::GF256Poly(GF256 &f, ArrayRef<int> c) :
|
GF256Poly::GF256Poly(GF256 &f, ArrayRef<int> c) :
|
||||||
Counted(), field(f), coefficients(c) {
|
Counted(), field(f), coefficients(c) {
|
||||||
#ifdef DEBUG
|
|
||||||
cout << "instantiating GF256Poly @ " << this << " with Array " << c.array_ << "(" << c.array_->count_ << "), size " << c.size() << ", ";
|
|
||||||
cout << "coefficients size = " << coefficients.size() << "\n";
|
|
||||||
#endif
|
|
||||||
fixCoefficients();
|
fixCoefficients();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,10 +36,6 @@ namespace reedsolomon {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReedSolomonDecoder::decode(ArrayRef<int> received, int twoS) {
|
void ReedSolomonDecoder::decode(ArrayRef<int> received, int twoS) {
|
||||||
#ifdef DEBUG
|
|
||||||
cout << "decode(): received = " << &received << ", array = " <<
|
|
||||||
received.array_ << " (" << received.array_->count_ << ")\n";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Ref<GF256Poly> poly(new GF256Poly(field, received));
|
Ref<GF256Poly> poly(new GF256Poly(field, received));
|
||||||
|
|
||||||
|
@ -63,35 +59,14 @@ namespace reedsolomon {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (noError) {
|
if (noError) {
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
cout << "before returning: syndromeCoefficients rc = " <<
|
|
||||||
syndromeCoefficients.array_->count_ << "\n";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
cout << "syndromeCoefficients rc = " <<
|
|
||||||
syndromeCoefficients.array_->count_ << "\n";
|
|
||||||
#endif
|
|
||||||
Ref<GF256Poly> syndrome(new GF256Poly(field, syndromeCoefficients));
|
Ref<GF256Poly> syndrome(new GF256Poly(field, syndromeCoefficients));
|
||||||
#ifdef DEBUG
|
|
||||||
cout << "syndrome rc = " << syndrome.object_->count_ <<
|
|
||||||
", syndromeCoefficients rc = " <<
|
|
||||||
syndromeCoefficients.array_->count_ << "\n";
|
|
||||||
#endif
|
|
||||||
Ref<GF256Poly> monomial(field.buildMonomial(twoS, 1));
|
Ref<GF256Poly> monomial(field.buildMonomial(twoS, 1));
|
||||||
#ifdef DEBUG
|
|
||||||
cout << "monopmial rc = " << monomial.object_->count_ << "\n";
|
|
||||||
#endif
|
|
||||||
vector<Ref<GF256Poly> > sigmaOmega
|
vector<Ref<GF256Poly> > sigmaOmega
|
||||||
(runEuclideanAlgorithm(monomial, syndrome, twoS));
|
(runEuclideanAlgorithm(monomial, syndrome, twoS));
|
||||||
ArrayRef<int> errorLocations = findErrorLocations(sigmaOmega[0]);
|
ArrayRef<int> errorLocations = findErrorLocations(sigmaOmega[0]);
|
||||||
#ifdef DEBUG
|
|
||||||
cout << "errorLocations count: " << errorLocations.array_->count_ << "\n";
|
|
||||||
#endif
|
|
||||||
ArrayRef<int> errorMagitudes = findErrorMagnitudes(sigmaOmega[1],
|
ArrayRef<int> errorMagitudes = findErrorMagnitudes(sigmaOmega[1],
|
||||||
errorLocations);
|
errorLocations);
|
||||||
for (unsigned i = 0; i < errorLocations->size(); i++) {
|
for (unsigned i = 0; i < errorLocations->size(); i++) {
|
||||||
|
|
Loading…
Reference in a new issue