Lines Matching refs:charPtr
79 bits->charPtr=0; in speex_bits_set_bit_buffer()
97 bits->charPtr=0; in speex_bits_reset()
104 bits->charPtr=0; in speex_bits_rewind()
142 bits->charPtr=0; in speex_bits_read_from()
150 if (bits->charPtr>0) in speex_bits_flush()
151 SPEEX_MOVE(bits->chars, &bits->chars[bits->charPtr], nchars-bits->charPtr); in speex_bits_flush()
152 bits->nbBits -= bits->charPtr<<LOG2_BITS_PER_CHAR; in speex_bits_flush()
153 bits->charPtr=0; in speex_bits_flush()
192 int charPtr, bitPtr, nbBits; in speex_bits_write() local
196 charPtr=bits->charPtr; in speex_bits_write()
200 bits->charPtr=charPtr; in speex_bits_write()
224 bits->charPtr=0; in speex_bits_write_whole_bytes()
233 if (bits->charPtr+((nbBits+bits->bitPtr)>>LOG2_BITS_PER_CHAR) >= bits->buf_size) in speex_bits_pack()
258 bits->chars[bits->charPtr] |= bit<<(BITS_PER_CHAR-1-bits->bitPtr); in speex_bits_pack()
264 bits->charPtr++; in speex_bits_pack()
265 bits->chars[bits->charPtr] = 0; in speex_bits_pack()
286 if ((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+nbBits>bits->nbBits) in speex_bits_unpack_unsigned()
293 d |= (bits->chars[bits->charPtr]>>(BITS_PER_CHAR-1 - bits->bitPtr))&1; in speex_bits_unpack_unsigned()
298 bits->charPtr++; in speex_bits_unpack_unsigned()
308 int bitPtr, charPtr; in speex_bits_peek_unsigned() local
311 if ((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+nbBits>bits->nbBits) in speex_bits_peek_unsigned()
317 charPtr=bits->charPtr; in speex_bits_peek_unsigned()
322 d |= (chars[charPtr]>>(BITS_PER_CHAR-1 - bitPtr))&1; in speex_bits_peek_unsigned()
327 charPtr++; in speex_bits_peek_unsigned()
336 if ((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+1>bits->nbBits) in speex_bits_peek()
340 return (bits->chars[bits->charPtr]>>(BITS_PER_CHAR-1 - bits->bitPtr))&1; in speex_bits_peek()
345 if (((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr+n>bits->nbBits) || bits->overflow){ in speex_bits_advance()
349 bits->charPtr += (bits->bitPtr+n) >> LOG2_BITS_PER_CHAR; /* divide by BITS_PER_CHAR */ in speex_bits_advance()
358 return bits->nbBits-((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr); in speex_bits_remaining()