Home | History | Annotate | Download | only in codec

Lines Matching refs:bitpos

131 inline bool NextBit(const uint8_t* src_buf, int* bitpos) {
132 int pos = (*bitpos)++;
253 int* bitpos,
262 if (*bitpos >= bitsize)
266 if (src_buf[*bitpos / 8] & (1 << (7 - *bitpos % 8)))
269 ++(*bitpos);
280 int* bitpos,
287 if (*bitpos >= bitsize)
297 if (!NextBit(src_buf, bitpos)) {
298 if (*bitpos >= bitsize)
301 bool bit1 = NextBit(src_buf, bitpos);
302 if (*bitpos >= bitsize)
305 bool bit2 = NextBit(src_buf, bitpos);
312 src_buf, bitpos, bitsize);
329 src_buf, bitpos, bitsize);
346 if (*bitpos >= bitsize)
349 if (NextBit(src_buf, bitpos)) {
360 if (*bitpos >= bitsize)
363 bool next_bit1 = NextBit(src_buf, bitpos);
364 if (*bitpos >= bitsize)
367 bool next_bit2 = NextBit(src_buf, bitpos);
371 if (*bitpos >= bitsize)
374 v_delta = NextBit(src_buf, bitpos) ? 3 : -3;
376 if (*bitpos >= bitsize)
379 if (NextBit(src_buf, bitpos)) {
380 *bitpos += 3;
383 *bitpos += 5;
404 void FaxSkipEOL(const uint8_t* src_buf, int bitsize, int* bitpos) {
405 int startbit = *bitpos;
406 while (*bitpos < bitsize) {
407 if (!NextBit(src_buf, bitpos))
409 if (*bitpos - startbit <= 11)
410 *bitpos = startbit;
417 int* bitpos,
423 if (*bitpos >= bitsize)
429 bitpos, bitsize);
431 while (*bitpos < bitsize) {
432 if (NextBit(src_buf, bitpos))
572 int bitpos = *pbitpos;
576 FaxG4GetRow(src_buf, src_size << 3, &bitpos, line_buf, ref_buf, width);
579 *pbitpos = bitpos;