Lines Matching refs:ecc1
438 * Correct the errors in 'sector[]' by using 'ecc1[]' which is the
443 int doc_decode_ecc(unsigned char sector[SECTOR_SIZE], unsigned char ecc1[6])
464 parity = ecc1[1];
466 bb[0] = (ecc1[4] & 0xff) | ((ecc1[5] & 0x03) << 8);
467 bb[1] = ((ecc1[5] & 0xfc) >> 2) | ((ecc1[2] & 0x0f) << 6);
468 bb[2] = ((ecc1[2] & 0xf0) >> 4) | ((ecc1[3] & 0x3f) << 4);
469 bb[3] = ((ecc1[3] & 0xc0) >> 6) | ((ecc1[0] & 0xff) << 2);