Lines Matching defs:bits
41 static int unpack_bytes (int bits, int blocksize, const unsigned char * block, short * samples) ;
42 static int pack_bytes (int bits, const short * samples, unsigned char * block) ;
145 { case G723_16_BITS_PER_SAMPLE : /* 2 bits per sample. */
154 case G723_24_BITS_PER_SAMPLE : /* 3 bits per sample. */
163 case G721_32_BITS_PER_SAMPLE : /* 4 bits per sample. */
172 case G721_40_BITS_PER_SAMPLE : /* 5 bits per sample. */
199 { case G723_16_BITS_PER_SAMPLE : /* 2 bits per sample. */
208 case G723_24_BITS_PER_SAMPLE : /* 3 bits per sample. */
217 case G721_32_BITS_PER_SAMPLE : /* 4 bits per sample. */
226 case G721_40_BITS_PER_SAMPLE : /* 5 bits per sample. */
605 unpack_bytes (int bits, int blocksize, const unsigned char * block, short * samples)
611 { if (in_bits < bits)
617 samples [k] = in_buffer & ((1 << bits) - 1) ;
618 in_buffer >>= bits ;
619 in_bits -= bits ;
626 pack_bytes (int bits, const short * samples, unsigned char * block)
634 out_bits += bits ;