Lines Matching refs:nbits
298 unsigned int nbits) in emit_buffered_bits() argument
303 while (nbits > 0) { in emit_buffered_bits()
306 nbits--; in emit_buffered_bits()
318 register int temp, nbits; in emit_eobrun() local
322 nbits = 0; in emit_eobrun()
324 nbits++; in emit_eobrun()
326 if (nbits > 14) in emit_eobrun()
329 emit_symbol(entropy, entropy->ac_tbl_no, nbits << 4); in emit_eobrun()
330 if (nbits) in emit_eobrun()
331 emit_bits(entropy, entropy->EOBRUN, nbits); in emit_eobrun()
381 register int nbits; in encode_mcu_DC_first() local
421 nbits = 0; in encode_mcu_DC_first()
423 nbits++; in encode_mcu_DC_first()
429 if (nbits > MAX_COEF_BITS+1) in encode_mcu_DC_first()
433 emit_symbol(entropy, compptr->dc_tbl_no, nbits); in encode_mcu_DC_first()
437 if (nbits) /* emit_bits rejects calls with size 0 */ in encode_mcu_DC_first()
438 emit_bits(entropy, (unsigned int) temp2, nbits); in encode_mcu_DC_first()
468 register int nbits; in encode_mcu_AC_first() local
524 nbits = 1; /* there must be at least one 1 bit */ in encode_mcu_AC_first()
526 nbits++; in encode_mcu_AC_first()
528 if (nbits > MAX_COEF_BITS) in encode_mcu_AC_first()
532 emit_symbol(entropy, entropy->ac_tbl_no, (r << 4) + nbits); in encode_mcu_AC_first()
536 emit_bits(entropy, (unsigned int) temp2, nbits); in encode_mcu_AC_first()