(idx int)
| 30 | } |
| 31 | |
| 32 | func (s *dmCodeSize) DataCodewordsForBlock(idx int) int { |
| 33 | if s.Rows == 144 && s.Columns == 144 { |
| 34 | // Special Case... |
| 35 | if idx < 8 { |
| 36 | return 156 |
| 37 | } else { |
| 38 | return 155 |
| 39 | } |
| 40 | } |
| 41 | return s.DataCodewords() / s.BlockCount |
| 42 | } |
| 43 | |
| 44 | func (s *dmCodeSize) ErrorCorrectionCodewordsPerBlock() int { |
| 45 | return s.ECCCount / s.BlockCount |