• Home
  • Raw
  • Download

Lines Matching refs:bitPtr

80    bits->bitPtr=0;  in speex_bits_set_bit_buffer()
98 bits->bitPtr=0; in speex_bits_reset()
105 bits->bitPtr=0; in speex_bits_rewind()
143 bits->bitPtr=0; in speex_bits_read_from()
192 int charPtr, bitPtr, nbBits; in speex_bits_write() local
195 bitPtr=bits->bitPtr; in speex_bits_write()
199 bits->bitPtr=bitPtr; in speex_bits_write()
220 if (bits->bitPtr>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()
259 bits->bitPtr++; in speex_bits_pack()
261 if (bits->bitPtr==BITS_PER_CHAR) in speex_bits_pack()
263 bits->bitPtr=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()
294 bits->bitPtr++; in speex_bits_unpack_unsigned()
295 if (bits->bitPtr==BITS_PER_CHAR) in speex_bits_unpack_unsigned()
297 bits->bitPtr=0; 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()
316 bitPtr=bits->bitPtr; in speex_bits_peek_unsigned()
322 d |= (chars[charPtr]>>(BITS_PER_CHAR-1 - bitPtr))&1; in speex_bits_peek_unsigned()
323 bitPtr++; in speex_bits_peek_unsigned()
324 if (bitPtr==BITS_PER_CHAR) in speex_bits_peek_unsigned()
326 bitPtr=0; 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()
350 bits->bitPtr = (bits->bitPtr+n) & (BITS_PER_CHAR-1); /* modulo by BITS_PER_CHAR */ in speex_bits_advance()
358 return bits->nbBits-((bits->charPtr<<LOG2_BITS_PER_CHAR)+bits->bitPtr); in speex_bits_remaining()
368 if (bits->bitPtr) in speex_bits_insert_terminator()
370 while (bits->bitPtr) in speex_bits_insert_terminator()