av_clip_int16 72 libavcodec/acelp_filters.c if (av_clip_int16(v >> 15) != (v >> 15)) av_clip_int16 112 libavcodec/acelp_filters.c out[i] = av_clip_int16((tmp + 0x800) >> 12); av_clip_int16 186 libavcodec/acelp_vectors.c out[i] = av_clip_int16(( av_clip_int16 183 libavcodec/adpcm.c c->predictor = av_clip_int16(predictor); av_clip_int16 206 libavcodec/adpcm.c c->predictor = av_clip_int16(predictor); av_clip_int16 232 libavcodec/adpcm.c c->predictor = av_clip_int16(predictor); av_clip_int16 246 libavcodec/adpcm.c c->sample1 = av_clip_int16(predictor); av_clip_int16 291 libavcodec/adpcm.c c->predictor = av_clip_int16(c->predictor); av_clip_int16 327 libavcodec/adpcm.c c->predictor = av_clip_int16(c->predictor); av_clip_int16 367 libavcodec/adpcm.c s_1 = av_clip_int16(s); av_clip_int16 394 libavcodec/adpcm.c s_1 = av_clip_int16(s); av_clip_int16 462 libavcodec/adpcm.c c->status[i].predictor = av_clip_int16(c->status[i].predictor); av_clip_int16 1106 libavcodec/adpcm.c current_left_sample = av_clip_int16(next_left_sample); av_clip_int16 1108 libavcodec/adpcm.c current_right_sample = av_clip_int16(next_right_sample); av_clip_int16 1140 libavcodec/adpcm.c c->status[channel].sample1 = av_clip_int16(sample); av_clip_int16 1204 libavcodec/adpcm.c next_sample = av_clip_int16(next_sample >> 8); av_clip_int16 1252 libavcodec/adpcm.c s[0] = av_clip_int16((level + pred + 0x80) >> 8); av_clip_int16 1256 libavcodec/adpcm.c s[1] = av_clip_int16((level + pred + 0x80) >> 8); av_clip_int16 1398 libavcodec/adpcm.c *samples = av_clip_int16(sampledat); av_clip_int16 1463 libavcodec/adpcm.c *samples = av_clip_int16(sampledat); av_clip_int16 1510 libavcodec/adpcm.c *samples++ = av_clip_int16(sampledat >> 6); av_clip_int16 173 libavcodec/adpcmenc.c c->prev_sample = av_clip_int16(c->prev_sample); av_clip_int16 209 libavcodec/adpcmenc.c c->prev_sample = av_clip_int16(c->prev_sample); av_clip_int16 235 libavcodec/adpcmenc.c c->sample1 = av_clip_int16(predictor); av_clip_int16 259 libavcodec/adpcmenc.c c->predictor = av_clip_int16(c->predictor); av_clip_int16 333 libavcodec/adpcmenc.c dec_sample = av_clip_int16(dec_sample);\ av_clip_int16 86 libavcodec/adxdec.c s1 = av_clip_int16(s0); av_clip_int16 1271 libavcodec/apedec.c *f->delay++ = av_clip_int16(res); av_clip_int16 106 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, av_clip_int16( lrintf(*(const float*)pi * (1<<15)))) av_clip_int16 111 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, av_clip_int16( lrint(*(const double*)pi * (1<<15)))) av_clip_int16 71 libavcodec/bmvaudio.c *output_samples++ = av_clip_int16((scale[0] * (int8_t)*buf++) >> 5); av_clip_int16 72 libavcodec/bmvaudio.c *output_samples++ = av_clip_int16((scale[1] * (int8_t)*buf++) >> 5); av_clip_int16 73 libavcodec/celp_filters.c sum = av_clip_int16(sum1); av_clip_int16 234 libavcodec/dpcm.c predictor[ch] = av_clip_int16(predictor[ch]); av_clip_int16 253 libavcodec/dpcm.c predictor[ch] = av_clip_int16(predictor[ch]); av_clip_int16 286 libavcodec/dpcm.c predictor[ch] = av_clip_int16(predictor[ch]); av_clip_int16 314 libavcodec/dpcm.c s->sample[ch] = av_clip_int16(s->sample[ch]); av_clip_int16 114 libavcodec/dsicinaudio.c delta = av_clip_int16(delta); av_clip_int16 453 libavcodec/dss_sp.c coeffs[i] = av_clip_int16(tmp); av_clip_int16 456 libavcodec/dss_sp.c coeffs[a_plus - i] = av_clip_int16(tmp); av_clip_int16 489 libavcodec/dss_sp.c vector[i] = av_clip_int16(tmp); av_clip_int16 536 libavcodec/dss_sp.c dst[a] = av_clip_int16(tmp); av_clip_int16 558 libavcodec/dss_sp.c dst[a] = av_clip_int16(tmp); av_clip_int16 634 libavcodec/dss_sp.c p->vector_buf[i] = av_clip_int16(tmp); av_clip_int16 639 libavcodec/dss_sp.c p->vector_buf[0] = av_clip_int16(tmp); av_clip_int16 655 libavcodec/dss_sp.c noise[0] = av_clip_int16(tmp); av_clip_int16 659 libavcodec/dss_sp.c noise[i] = av_clip_int16(tmp); av_clip_int16 665 libavcodec/dss_sp.c dst[i] = av_clip_int16(tmp); av_clip_int16 688 libavcodec/dss_sp.c dst[counter] = av_clip_int16(tmp); av_clip_int16 703 libavcodec/dss_sp.c dst[i] = av_clip_int16(src[i]); av_clip_int16 129 libavcodec/g722.c cur_qtzd_reconst = av_clip_int16((band->s_predictor + cur_diff) << 1); av_clip_int16 130 libavcodec/g722.c band->s_predictor = av_clip_int16(band->s_zero + av_clip_int16 126 libavcodec/g722dec.c *out_buf++ = av_clip_int16(xout[0] >> 11); av_clip_int16 127 libavcodec/g722dec.c *out_buf++ = av_clip_int16(xout[1] >> 11); av_clip_int16 157 libavcodec/g722enc.c int diff = av_clip_int16(xhigh - state->s_predictor); av_clip_int16 165 libavcodec/g722enc.c int diff = av_clip_int16(xlow - state->s_predictor); av_clip_int16 652 libavcodec/g723_1.c ppf->opt_gain = av_clip_int16(ppf->opt_gain * ppf->sc_gain >> 15); av_clip_int16 876 libavcodec/g723_1.c buf[i] = av_clip_int16((buf[i] * (p->pf_gain + (p->pf_gain >> 4)) + av_clip_int16 1138 libavcodec/g723_1.c vector_ptr[pos[idx]] = av_clip_int16(vector_ptr[pos[idx]] + av_clip_int16 1221 libavcodec/g723_1.c int v = av_clip_int16(vector_ptr[j] << 1); av_clip_int16 1222 libavcodec/g723_1.c vector_ptr[j] = av_clip_int16(v + acb_vector[j]); av_clip_int16 1307 libavcodec/g723_1.c out[i] = av_clip_int16(p->audio[LPC_ORDER + i] << 1); av_clip_int16 2446 libavcodec/g723_1.c in[j] = av_clip_int16((in[j] << 1) + impulse_resp[j]); av_clip_int16 493 libavcodec/g729postfilter.c ga = (fact << 15) / av_clip_int16(32768 - FFABS(gt)); av_clip_int16 606 libavcodec/g729postfilter.c gain_prev = av_clip_int16(gain + gain_prev); av_clip_int16 607 libavcodec/g729postfilter.c speech[n] = av_clip_int16((speech[n] * gain_prev + 0x2000) >> 14); av_clip_int16 123 libavcodec/gsmdec_template.c msr = av_clip_int16(data[i] + gsm_mult(msr, 28180)); av_clip_int16 124 libavcodec/gsmdec_template.c data[i] = av_clip_int16(msr << 1) & ~7; av_clip_int16 122 libavcodec/hevc_mvs.c dst->x = av_clip_int16((scale_factor * src->x + 127 + av_clip_int16 124 libavcodec/hevc_mvs.c dst->y = av_clip_int16((scale_factor * src->y + 127 + av_clip_int16 136 libavcodec/hevcdsp_template.c #define SCALE(dst, x) (dst) = av_clip_int16(((x) + add) >> shift) av_clip_int16 138 libavcodec/hevcdsp_template.c (dst) = av_clip_pixel((dst) + av_clip_int16(((x) + add) >> shift)) av_clip_int16 209 libavcodec/iirfilter.c #define CONV_S16(dest, source) dest = av_clip_int16(lrintf(source)); av_clip_int16 163 libavcodec/libopusdec.c *pcm = av_clip_int16(((int64_t)opus->gain.i * *pcm) >> 16); av_clip_int16 129 libavcodec/libvorbisdec.c *ptr = av_clip_int16(mono[j] * 32767.f); av_clip_int16 59 libavcodec/mpegaudiodsp_template.c return av_clip_int16(sum1); av_clip_int16 994 libavcodec/opus_silk.c lpc[k] = av_clip_int16(x); av_clip_int16 116 libavcodec/ra144dec.c *samples++ = av_clip_int16(ractx->curr_sblock[j + 10] << 2); av_clip_int16 137 libavcodec/resample.c l = av_clip_int16(fl + (0.5 * rl) + (0.7 * c)); av_clip_int16 138 libavcodec/resample.c r = av_clip_int16(fr + (0.5 * rr) + (0.7 * c)); av_clip_int16 282 libavcodec/resample2.c dst[dst_index] = av_clip_int16(lrintf(val)); av_clip_int16 623 libavcodec/shorten.c *samples_s16++ = av_clip_int16(s->decoded[chan][i]); av_clip_int16 1046 libavcodec/sonic.c samples[i] = av_clip_int16(s->int_samples[i]); av_clip_int16 195 libavcodec/vima.c output = av_clip_int16(output + diff); av_clip_int16 126 libavcodec/vmdaudio.c predictor[ch] = av_clip_int16(predictor[ch]); av_clip_int16 104 libavfilter/af_earwax.c *out = av_clip_int16(sample >> 6); av_clip_int16 198 libavfilter/af_volume.c smp_dst[i] = av_clip_int16(((int64_t)smp_src[i] * volume + 128) >> 8); av_clip_int16 208 libavfilter/af_volume.c smp_dst[i] = av_clip_int16((smp_src[i] * volume + 128) >> 8); av_clip_int16 208 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16( lrintf(*(const float *)pi * (1 << 15)))) av_clip_int16 213 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16( lrint(*(const double *)pi * (1 << 15)))) av_clip_int16 120 libavresample/audio_mix.c MIX_FUNC_GENERIC(S16P, FLT, int16_t, float, float, av_clip_int16(lrintf(sum))) av_clip_int16 121 libavresample/audio_mix.c MIX_FUNC_GENERIC(S16P, Q15, int16_t, int32_t, int64_t, av_clip_int16(sum >> 15)) av_clip_int16 122 libavresample/audio_mix.c MIX_FUNC_GENERIC(S16P, Q8, int16_t, int16_t, int32_t, av_clip_int16(sum >> 8)) av_clip_int16 158 libavresample/audio_mix.c *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); av_clip_int16 159 libavresample/audio_mix.c *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); av_clip_int16 160 libavresample/audio_mix.c *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); av_clip_int16 161 libavresample/audio_mix.c *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); av_clip_int16 165 libavresample/audio_mix.c *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); av_clip_int16 702 libavresample/audio_mix.c CONVERT_MATRIX(q8, av_clip_int16(lrint(256.0 * v))) av_clip_int16 54 libavresample/avresample-test.c PUT_FUNC(s16, AV_SAMPLE_FMT_S16, int16_t, av_clip_int16 ( lrint(v_dbl * (1 << 15)))) av_clip_int16 128 libavresample/dither.c dst[i] = av_clip_int16(lrintf(src[i] * S16_SCALE + dither[i])); av_clip_int16 198 libavresample/dither.c dst[i] = av_clip_int16(lrintf(sample)); av_clip_int16 201 libavresample/dither.c dst[i] = av_clip_int16(lrintf(sample + dither[i])); av_clip_int16 53 libavresample/resample_template.c #define OUT(d, v) d = av_clip_int16((v + (1 << 14)) >> 15) av_clip_int16 54 libavresample/resample_template.c #define DBL_TO_FELEM(d, v) d = av_clip_int16(lrint(v * (1 << 15))) av_clip_int16 457 libavutil/common.h #ifndef av_clip_int16 av_clip_int16 66 libavutil/fixed_dsp.c dst[i] = av_clip_int16(((((int64_t)s0*wj - (int64_t)s1*wi + 0x40000000) >> 31) + round) >> bits); av_clip_int16 67 libavutil/fixed_dsp.c dst[j] = av_clip_int16(((((int64_t)s0*wi + (int64_t)s1*wj + 0x40000000) >> 31) + round) >> bits); av_clip_int16 70 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, av_clip_int16( lrintf(*(const float*)pi * (1<<15)))) av_clip_int16 75 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, av_clip_int16( lrint(*(const double*)pi * (1<<15)))) av_clip_int16 69 libswresample/swresample-test.c case AV_SAMPLE_FMT_S16: ((int16_t*)p)[index]= av_clip_int16 (lrint(v*32767)); break;