this.alignmentPatternCenters = alignmentPatternCenters;\r
this.ecBlocks = new ECBlocks[]{ecBlocks1, ecBlocks2, ecBlocks3, ecBlocks4};\r
int total = 0;\r
- ECBlocks levelLECBlocks = ecBlocks1; // L,M,Q,H -- all the same total\r
- int ecCodewords = levelLECBlocks.ecCodewords;\r
- ECB[] ecbArray = levelLECBlocks.ecBlocks;\r
+ int ecCodewords = ecBlocks1.getECCodewords();\r
+ ECB[] ecbArray = ecBlocks1.getECBlocks();\r
for (int i = 0; i < ecbArray.length; i++) {\r
ECB ecBlock = ecbArray[i];\r
- total += ecBlock.count * (ecBlock.dataCodewords + ecCodewords);\r
+ total += ecBlock.getCount() * (ecBlock.getDataCodewords() + ecCodewords);\r
}\r
this.totalCodewords = total;\r
}\r