Home | History | Annotate | Download | only in libspeex

Lines Matching refs:chars

50    bits->chars = (char*)speex_alloc(MAX_CHARS_PER_FRAME);
51 if (!bits->chars)
63 bits->chars = (char*)buff;
73 bits->chars = (char*)buff;
88 speex_free(bits->chars);
95 bits->chars[0]=0;
109 EXPORT void speex_bits_read_from(SpeexBits *bits, char *chars, int len)
118 char *tmp = (char*)speex_realloc(bits->chars, nchars);
122 bits->chars=tmp;
139 bits->chars[i]=HTOLS(chars[i]);
151 SPEEX_MOVE(bits->chars, &bits->chars[bits->charPtr], nchars-bits->charPtr);
156 EXPORT void speex_bits_read_whole_bytes(SpeexBits *bits, char *chars, int nbytes)
166 char *tmp = (char*)speex_realloc(bits->chars, (bits->nbBits>>LOG2_BITS_PER_CHAR)+nchars+1);
170 bits->chars=tmp;
184 bits->chars[pos+i]=HTOLS(chars[i]);
188 EXPORT int speex_bits_write(SpeexBits *bits, char *chars, int max_nbytes)
207 chars[i]=HTOLS(bits->chars[i]);
211 EXPORT int speex_bits_write_whole_bytes(SpeexBits *bits, char *chars, int max_nbytes)
218 chars[i]=HTOLS(bits->chars[i]);
221 bits->chars[0]=bits->chars[max_nchars];
223 bits->chars[0]=0;
239 char *tmp = (char*)speex_realloc(bits->chars, new_nchars);
243 bits->chars=tmp;
258 bits->chars[bits->charPtr] |= bit<<(BITS_PER_CHAR-1-bits->bitPtr);
265 bits->chars[bits->charPtr] = 0;
293 d |= (bits->chars[bits->charPtr]>>(BITS_PER_CHAR-1 - bits->bitPtr))&1;
309 char *chars;
318 chars = bits->chars;
322 d |= (chars[charPtr]>>(BITS_PER_CHAR-1 - bitPtr))&1;
340 return (bits->chars[bits->charPtr]>>(BITS_PER_CHAR-1 - bits->bitPtr))&1;