Lines Matching defs:ecc1
434 * Correct the errors in 'sector[]' by using 'ecc1[]' which is the
439 int doc_decode_ecc(unsigned char sector[SECTOR_SIZE], unsigned char ecc1[6])
460 parity = ecc1[1];
462 bb[0] = (ecc1[4] & 0xff) | ((ecc1[5] & 0x03) << 8);
463 bb[1] = ((ecc1[5] & 0xfc) >> 2) | ((ecc1[2] & 0x0f) << 6);
464 bb[2] = ((ecc1[2] & 0xf0) >> 4) | ((ecc1[3] & 0x3f) << 4);
465 bb[3] = ((ecc1[3] & 0xc0) >> 6) | ((ecc1[0] & 0xff) << 2);