Home
last modified time | relevance | path

Searched refs:pcm_val (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Modules/
Daudioop.c163 st_14linear2ulaw(PyInt16 pcm_val) /* 2's complement (14-bit range) */ in st_14linear2ulaw() argument
170 pcm_val = pcm_val >> 2; in st_14linear2ulaw()
174 if (pcm_val < 0) { in st_14linear2ulaw()
175 pcm_val = -pcm_val; in st_14linear2ulaw()
180 if ( pcm_val > CLIP ) pcm_val = CLIP; /* clip the magnitude */ in st_14linear2ulaw()
181 pcm_val += (BIAS >> 2); in st_14linear2ulaw()
184 seg = search(pcm_val, seg_uend, 8); in st_14linear2ulaw()
193 uval = (unsigned char) (seg << 4) | ((pcm_val >> (seg + 1)) & 0xF); in st_14linear2ulaw()
260 st_linear2alaw(PyInt16 pcm_val) /* 2's complement (13-bit range) */ in st_linear2alaw() argument
267 pcm_val = pcm_val >> 3; in st_linear2alaw()
[all …]
/external/python/cpython3/Modules/
Daudioop.c153 st_14linear2ulaw(int16_t pcm_val) /* 2's complement (14-bit range) */ in st_14linear2ulaw() argument
161 if (pcm_val < 0) { in st_14linear2ulaw()
162 pcm_val = -pcm_val; in st_14linear2ulaw()
167 if ( pcm_val > CLIP ) pcm_val = CLIP; /* clip the magnitude */ in st_14linear2ulaw()
168 pcm_val += (BIAS >> 2); in st_14linear2ulaw()
171 seg = search(pcm_val, seg_uend, 8); in st_14linear2ulaw()
180 uval = (unsigned char) (seg << 4) | ((pcm_val >> (seg + 1)) & 0xF); in st_14linear2ulaw()
247 st_linear2alaw(int16_t pcm_val) /* 2's complement (13-bit range) */ in st_linear2alaw() argument
254 if (pcm_val >= 0) { in st_linear2alaw()
258 pcm_val = -pcm_val - 1; in st_linear2alaw()
[all …]
/external/libxaac/decoder/
Dixheaacd_mps_dec.c1324 WORD32 mixed_time_pair = 0, pcm_val = 0; in ixheaacd_mps_ecdatapairdec() local
1393 pcm_val = 2 * data_bands; in ixheaacd_mps_ecdatapairdec()
1397 pcm_val = data_bands; in ixheaacd_mps_ecdatapairdec()
1401 quant_offset, pcm_val, quant_levels)) in ixheaacd_mps_ecdatapairdec()