Lines Matching refs:line

192 	int line = 0;  in DecodeMatrix()  local
199 while (line < len) { /* Are we done with all lines of the matrix? */ in DecodeMatrix()
200 if ((line % 10) == 0) { /* the 0. line of the matrix is always 0 ! */ in DecodeMatrix()
201 if (m[line] != 0x00) { /* not 0 ? -> error! */ in DecodeMatrix()
207 line++; /* next line of matrix */ in DecodeMatrix()
209 } else if ((line % 10) == 5) { /* in line 5 there's only e-bits ! */ in DecodeMatrix()
210 if ((m[line] & 0x70) != 0x30) { /* 011 has to be at the beginning! */ in DecodeMatrix()
216 line++; /* next line */ in DecodeMatrix()
219 introducer = (m[line] & mbit) ? 0 : 1; /* current bit of the matrix */ in DecodeMatrix()
226 line++; in DecodeMatrix()
229 if (m[line] & mbit) /* was that bit set in the matrix ? */ in DecodeMatrix()
327 int line = 0; in EncodeMatrix() local
334 while ((i < len) && (line < mlen)) { /* while we still have input data */ in EncodeMatrix()
335 switch (line % 10) { /* in which line of the matrix are we? */ in EncodeMatrix()
337 m[line++] = 0x00; /* line 0 is always 0 */ in EncodeMatrix()
341 m[line++] = 0xbf; /* line 5 is always 10111111 */ in EncodeMatrix()
345 if (line >= mlen) { in EncodeMatrix()
347 return line; in EncodeMatrix()
352 line++; /* rightmost -> go to next line */ in EncodeMatrix()
353 if (line >= mlen) { in EncodeMatrix()
355 return line; in EncodeMatrix()
358 m[line] = 128; /* leftmost -> set byte to 1000000 */ in EncodeMatrix()
364 m[line] |= ibit[introducer] ? mbit : 0; /* set corresponding bit */ in EncodeMatrix()
368 m[line] |= (buf[i] & dbit) ? mbit : 0; /* set data bit in matrix */ in EncodeMatrix()
375 m[line] |= (mbit - 1) & 0xfe; /* set remaining bits in line to 1 */ in EncodeMatrix()
385 if ((line) && ((line + 10) < mlen)) in EncodeMatrix()
386 switch (++line % 10) { in EncodeMatrix()
388 m[line++] = 0xfe; in EncodeMatrix()
390 m[line++] = 0xfe; in EncodeMatrix()
392 m[line++] = 0xfe; in EncodeMatrix()
394 m[line++] = 0xfe; in EncodeMatrix()
396 m[line++] = 0xbf; in EncodeMatrix()
398 m[line++] = 0xfe; in EncodeMatrix()
400 m[line++] = 0xfe; in EncodeMatrix()
402 m[line++] = 0xfe; in EncodeMatrix()
404 m[line++] = 0xfe; in EncodeMatrix()
406 return line; /* that's how many lines we have */ in EncodeMatrix()