Lines Matching refs:seg
2203 short seg; in sox_13linear2alaw() local
2219 seg = search(pcm_val, seg_aend, 8); in sox_13linear2alaw()
2223 if (seg >= 8) /* out of range, return maximum value. */ in sox_13linear2alaw()
2226 aval = (unsigned char) seg << SEG_SHIFT; in sox_13linear2alaw()
2227 if (seg < 2) in sox_13linear2alaw()
2230 aval |= (pcm_val >> seg) & QUANT_MASK; in sox_13linear2alaw()
2243 int16_t seg; in sox_alaw2linear16() local
2248 seg = ((unsigned)a_val & SEG_MASK) >> SEG_SHIFT; in sox_alaw2linear16()
2249 switch (seg) { in sox_alaw2linear16()
2258 t <<= seg - 1; in sox_alaw2linear16()
2302 int16_t seg; in sox_14linear2ulaw() local
2321 seg = search(pcm_val, seg_uend, 8); in sox_14linear2ulaw()
2327 if (seg >= 8) /* out of range, return maximum value. */ in sox_14linear2ulaw()
2330 uval = (unsigned char) (seg << 4) | ((pcm_val >> (seg + 1)) & 0xF); in sox_14linear2ulaw()