Home | History | Annotate | Download | only in jpeg

Lines Matching full:bits

36   int put_bits;			/* # of bits now in it */
45 unsigned int BE; /* # of buffered correction bits before MCU */
46 char * bit_buffer; /* buffer for correction bits (1 per char) */
47 /* packing correction bits tightly would save some space but cost time... */
64 /* MAX_CORR_BITS is the number of bits the AC refinement correction-bit
67 * The minimum safe size is 64 bits.
70 #define MAX_CORR_BITS 1000 /* Max # of correction bits I can buffer */
218 /* Outputting bits to the file */
220 /* Only the right 24 bits of put_buffer are used; the valid bits are
221 * left-justified in this part. At most 16 bits can be passed to emit_bits
222 * in one call, and we never retain more than 7 bits in put_buffer
223 * between calls, so 24 bits are sufficient.
229 /* Emit some bits, unless we are in gather mode */
242 put_buffer &= (((INT32) 1)<<size) - 1; /* mask off any extra bits in code */
244 put_bits += size; /* new number of bits in buffer */
246 put_buffer <<= 24 - put_bits; /* align incoming bits */
293 * Emit bits from a correction bit buffer.
335 /* Emit any buffered correction bits */
420 /* Find the number of bits needed for the magnitude of the coefficient */
432 /* Count/emit the Huffman-coded symbol for the number of bits */
435 /* Emit that number of bits of the value, if positive, */
497 * interwoven with finding the abs value (temp) and output bits (temp2).
523 /* Find the number of bits needed for the magnitude of the coefficient */
531 /* Count/emit Huffman symbol for run length / number of bits */
534 /* Emit that number of bits of the value, if positive, */
663 BR = 0; /* BR = count of buffered bits added now */
664 BR_buffer = entropy->bit_buffer + entropy->BE; /* Append bits to buffer */
674 /* emit any pending EOBRUN and the BE correction bits */
679 /* Emit buffered correction bits that must be associated with ZRL */
681 BR_buffer = entropy->bit_buffer; /* BE bits are gone now */
696 /* Emit any pending EOBRUN and the BE correction bits */
699 /* Count/emit Huffman symbol for run length / number of bits */
706 /* Emit buffered correction bits that must be associated with this code */
708 BR_buffer = entropy->bit_buffer; /* BE bits are gone now */
715 entropy->BE += BR; /* concat my correction bits to older ones */