Lines Matching refs:bits

51    int   nbBits;  /**< Total number of bits stored in the stream*/
62 void speex_bits_init(SpeexBits *bits);
65 void speex_bits_init_buffer(SpeexBits *bits, void *buff, int buf_size);
67 /** Sets the bits in a SpeexBits struct to use data from an existing buffer (for decoding without copying data) */
68 void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size);
71 void speex_bits_destroy(SpeexBits *bits);
73 /** Resets bits to initial value (just after initialization, erasing content)*/
74 void speex_bits_reset(SpeexBits *bits);
77 void speex_bits_rewind(SpeexBits *bits);
80 void speex_bits_read_from(SpeexBits *bits, char *bytes, int len);
84 * @param bits Bit-stream to operate on
88 void speex_bits_read_whole_bytes(SpeexBits *bits, char *bytes, int len);
92 * @param bits Bit-stream to operate on
93 * @param bytes Memory location where to write the bits
97 int speex_bits_write(SpeexBits *bits, char *bytes, int max_len);
100 int speex_bits_write_whole_bytes(SpeexBits *bits, char *bytes, int max_len);
102 /** Append bits to the bit-stream
103 * @param bits Bit-stream to operate on
105 * @param nbBits number of bits to consider in "data"
107 void speex_bits_pack(SpeexBits *bits, int data, int nbBits);
109 /** Interpret the next bits in the bit-stream as a signed integer
111 * @param bits Bit-stream to operate on
112 * @param nbBits Number of bits to interpret
113 * @return A signed integer represented by the bits read
115 int speex_bits_unpack_signed(SpeexBits *bits, int nbBits);
117 /** Interpret the next bits in the bit-stream as an unsigned integer
119 * @param bits Bit-stream to operate on
120 * @param nbBits Number of bits to interpret
121 * @return An unsigned integer represented by the bits read
123 unsigned int speex_bits_unpack_unsigned(SpeexBits *bits, int nbBits);
127 * @param bits Bit-stream to operate on
130 int speex_bits_nbytes(SpeexBits *bits);
134 * @param bits Bit-stream to operate on
135 * @param nbBits Number of bits to look for
136 * @return Value of the bits peeked, interpreted as unsigned
138 unsigned int speex_bits_peek_unsigned(SpeexBits *bits, int nbBits);
143 * @param bits Bit-stream to operate on
146 int speex_bits_peek(SpeexBits *bits);
150 * @param bits Bit-stream to operate on
151 * @param n Number of bits to advance
153 void speex_bits_advance(SpeexBits *bits, int n);
155 /** Returns the number of bits remaining to be read in a stream
157 * @param bits Bit-stream to operate on
158 * @return Number of bits that can still be read from the stream
160 int speex_bits_remaining(SpeexBits *bits);
165 * @param bits Bit-stream to operate on
167 void speex_bits_insert_terminator(SpeexBits *bits);