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.c146 st_14linear2ulaw(int16_t pcm_val) /* 2's complement (14-bit range) */ in st_14linear2ulaw() argument
154 if (pcm_val < 0) { in st_14linear2ulaw()
155 pcm_val = -pcm_val; in st_14linear2ulaw()
160 if ( pcm_val > CLIP ) pcm_val = CLIP; /* clip the magnitude */ in st_14linear2ulaw()
161 pcm_val += (BIAS >> 2); in st_14linear2ulaw()
164 seg = search(pcm_val, seg_uend, 8); in st_14linear2ulaw()
173 uval = (unsigned char) (seg << 4) | ((pcm_val >> (seg + 1)) & 0xF); in st_14linear2ulaw()
240 st_linear2alaw(int16_t pcm_val) /* 2's complement (13-bit range) */ in st_linear2alaw() argument
247 if (pcm_val >= 0) { in st_linear2alaw()
251 pcm_val = -pcm_val - 1; in st_linear2alaw()
[all …]
/external/libxaac/decoder/
Dixheaacd_mps_dec.c1501 WORD32 mixed_time_pair = 0, pcm_val = 0; in ixheaacd_mps_ecdatapairdec() local
1592 pcm_val = 2 * data_bands; in ixheaacd_mps_ecdatapairdec()
1596 pcm_val = data_bands; in ixheaacd_mps_ecdatapairdec()
1600 quant_offset, pcm_val, quant_levels); in ixheaacd_mps_ecdatapairdec()