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 187 libavcodec/acelp_vectors.c out[i] = av_clip_int16(( av_clip_int16 287 libavcodec/adpcm.c c->predictor = av_clip_int16(predictor); av_clip_int16 310 libavcodec/adpcm.c c->predictor = av_clip_int16(predictor); av_clip_int16 326 libavcodec/adpcm.c c->predictor = av_clip_int16(predictor >> 4); av_clip_int16 346 libavcodec/adpcm.c c->predictor = av_clip_int16(predictor); av_clip_int16 369 libavcodec/adpcm.c c->predictor = av_clip_int16(predictor); av_clip_int16 395 libavcodec/adpcm.c c->predictor = av_clip_int16(predictor); av_clip_int16 409 libavcodec/adpcm.c c->sample1 = av_clip_int16(predictor); av_clip_int16 454 libavcodec/adpcm.c c->predictor = av_clip_int16(c->predictor); av_clip_int16 490 libavcodec/adpcm.c c->predictor = av_clip_int16(c->predictor); av_clip_int16 499 libavcodec/adpcm.c c->predictor = av_clip_int16(c->predictor); av_clip_int16 529 libavcodec/adpcm.c sample = av_clip_int16(sample); av_clip_int16 578 libavcodec/adpcm.c s_1 = av_clip_int16(s); av_clip_int16 609 libavcodec/adpcm.c s_1 = av_clip_int16(s); av_clip_int16 677 libavcodec/adpcm.c c->status[i].predictor = av_clip_int16(c->status[i].predictor); av_clip_int16 694 libavcodec/adpcm.c sample = av_clip_int16(sample >> 2); av_clip_int16 1496 libavcodec/adpcm.c current_left_sample = av_clip_int16(next_left_sample); av_clip_int16 1498 libavcodec/adpcm.c current_right_sample = av_clip_int16(next_right_sample); av_clip_int16 1530 libavcodec/adpcm.c c->status[channel].sample1 = av_clip_int16(sample); av_clip_int16 1594 libavcodec/adpcm.c next_sample = av_clip_int16(next_sample >> 8); av_clip_int16 1642 libavcodec/adpcm.c s[0] = av_clip_int16((level + pred + 0x80) >> 8); av_clip_int16 1646 libavcodec/adpcm.c s[1] = av_clip_int16((level + pred + 0x80) >> 8); av_clip_int16 1803 libavcodec/adpcm.c *samples = av_clip_int16(sampledat); av_clip_int16 1880 libavcodec/adpcm.c *samples = av_clip_int16(sampledat); av_clip_int16 1927 libavcodec/adpcm.c *samples++ = av_clip_int16(sampledat >> 6); av_clip_int16 1966 libavcodec/adpcm.c *samples++ = av_clip_int16(sample); av_clip_int16 185 libavcodec/adpcmenc.c c->prev_sample = av_clip_int16(c->prev_sample); av_clip_int16 221 libavcodec/adpcmenc.c c->prev_sample = av_clip_int16(c->prev_sample); av_clip_int16 247 libavcodec/adpcmenc.c c->sample1 = av_clip_int16(predictor); av_clip_int16 271 libavcodec/adpcmenc.c c->predictor = av_clip_int16(c->predictor); av_clip_int16 345 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 1298 libavcodec/apedec.c *f->delay++ = av_clip_int16(res); 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 155 libavcodec/cngdec.c buf_out[i] = av_clip_int16(p->filter_out[i + p->order]); av_clip_int16 1449 libavcodec/dca_xll.c plane[k] = av_clip_int16(samples[k] * (SUINT)(1 << shift)); av_clip_int16 279 libavcodec/dpcm.c predictor[ch] = av_clip_int16(predictor[ch]); av_clip_int16 298 libavcodec/dpcm.c predictor[ch] = av_clip_int16(predictor[ch]); av_clip_int16 330 libavcodec/dpcm.c predictor[ch] = av_clip_int16(predictor[ch]); av_clip_int16 358 libavcodec/dpcm.c s->sample[ch] = av_clip_int16(s->sample[ch]); av_clip_int16 373 libavcodec/dpcm.c s->sample[ch] = av_clip_int16(s->sample[ch]); av_clip_int16 399 libavcodec/dpcm.c s->sample[idx] = av_clip_int16(s->sample[idx]); 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) * 2); av_clip_int16 130 libavcodec/g722.c band->s_predictor = av_clip_int16(band->s_zero + av_clip_int16 128 libavcodec/g722dec.c *out_buf++ = av_clip_int16(xout[0] >> 11); av_clip_int16 129 libavcodec/g722dec.c *out_buf++ = av_clip_int16(xout[1] >> 11); av_clip_int16 152 libavcodec/g722enc.c int diff = av_clip_int16(xhigh - state->s_predictor); av_clip_int16 160 libavcodec/g722enc.c int diff = av_clip_int16(xlow - state->s_predictor); av_clip_int16 345 libavcodec/g723_1dec.c ppf->opt_gain = av_clip_int16(ppf->opt_gain * ppf->sc_gain >> 15); av_clip_int16 572 libavcodec/g723_1dec.c buf[i] = av_clip_int16((buf[i] * (p->pf_gain + (p->pf_gain >> 4)) + av_clip_int16 841 libavcodec/g723_1dec.c vector_ptr[pos[idx]] = av_clip_int16(vector_ptr[pos[idx]] + av_clip_int16 929 libavcodec/g723_1dec.c int v = av_clip_int16(vector_ptr[j] * 2); av_clip_int16 930 libavcodec/g723_1dec.c vector_ptr[j] = av_clip_int16(v + acb_vector[j]); av_clip_int16 1015 libavcodec/g723_1dec.c out[i] = av_clip_int16(2 * p->audio[LPC_ORDER + i]); av_clip_int16 1167 libavcodec/g723_1enc.c in[j] = av_clip_int16((in[j] << 1) + impulse_resp[j]); av_clip_int16 496 libavcodec/g729postfilter.c ga = (fact << 16) / av_clip_int16(32768 - FFABS(gt)); av_clip_int16 603 libavcodec/g729postfilter.c gain = av_clip_int16(gain); av_clip_int16 611 libavcodec/g729postfilter.c gain_prev = av_clip_int16(gain + gain_prev); av_clip_int16 612 libavcodec/g729postfilter.c speech[n] = av_clip_int16((speech[n] * gain_prev + 0x2000) >> 14); av_clip_int16 116 libavcodec/gsmdec_template.c msr = av_clip_int16(data[i] + gsm_mult(msr, 28180)); av_clip_int16 117 libavcodec/gsmdec_template.c data[i] = av_clip_int16(msr * 2) & ~7; av_clip_int16 123 libavcodec/hevc_mvs.c dst->x = av_clip_int16((scale_factor * src->x + 127 + av_clip_int16 125 libavcodec/hevc_mvs.c dst->y = av_clip_int16((scale_factor * src->y + 127 + av_clip_int16 132 libavcodec/hevcdsp_template.c #define SCALE(dst, x) (dst) = av_clip_int16(((x) + add) >> shift) av_clip_int16 210 libavcodec/iirfilter.c #define CONV_S16(dest, source) dest = av_clip_int16(lrintf(source)); av_clip_int16 189 libavcodec/libopusdec.c *pcm = av_clip_int16(((int64_t)opus->gain.i * *pcm) >> 16); av_clip_int16 141 libavcodec/libvorbisdec.c *ptr = av_clip_int16(mono[j] * 32767.f); av_clip_int16 808 libavcodec/mjpegdec.c val = av_clip_int16(val); av_clip_int16 59 libavcodec/mpegaudiodsp_template.c return av_clip_int16(sum1); av_clip_int16 279 libavcodec/opus_silk.c lpc[k] = av_clip_int16(x); av_clip_int16 407 libavcodec/pixlet.c dest[i * 2] = av_clip_int16(((value >> 32) * scale) >> 32); av_clip_int16 418 libavcodec/pixlet.c dest[i * 2 + 1] = av_clip_int16(((value >> 32) * scale) >> 32); av_clip_int16 116 libavcodec/ra144dec.c *samples++ = av_clip_int16(ractx->curr_sblock[j + 10] * (1 << 2)); av_clip_int16 240 libavcodec/sbcdec.c AV_WN16A(&output_frame->data[ch][blk * 8 + i * 2], av_clip_int16( av_clip_int16 287 libavcodec/sbcdec.c AV_WN16A(&output_frame->data[ch][blk * 16 + i * 2], av_clip_int16( av_clip_int16 751 libavcodec/shorten.c *samples_s16++ = av_clip_int16(s->decoded[chan][i]); av_clip_int16 1081 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 128 libavcodec/vmdaudio.c predictor[ch] = av_clip_int16(predictor[ch]); av_clip_int16 106 libavfilter/af_earwax.c *out = av_clip_int16(sample >> 6); av_clip_int16 203 libavfilter/af_volume.c smp_dst[i] = av_clip_int16(((int64_t)smp_src[i] * volume + 128) >> 8); av_clip_int16 213 libavfilter/af_volume.c smp_dst[i] = av_clip_int16((smp_src[i] * volume + 128) >> 8); av_clip_int16 87 libavfilter/colorspacedsp.c buf0[x] = av_clip_int16((m[0][0][0] * v0 + m[0][1][0] * v1 + av_clip_int16 89 libavfilter/colorspacedsp.c buf1[x] = av_clip_int16((m[1][0][0] * v0 + m[1][1][0] * v1 + av_clip_int16 91 libavfilter/colorspacedsp.c buf2[x] = av_clip_int16((m[2][0][0] * v0 + m[2][1][0] * v1 + av_clip_int16 89 libavfilter/colorspacedsp_template.c rgb0[x << SS_W] = av_clip_int16((y00 * cy + crv * v + rnd) >> sh); av_clip_int16 91 libavfilter/colorspacedsp_template.c rgb0[2 * x + 1] = av_clip_int16((y01 * cy + crv * v + rnd) >> sh); av_clip_int16 93 libavfilter/colorspacedsp_template.c rgb0[2 * x + rgb_stride] = av_clip_int16((y10 * cy + crv * v + rnd) >> sh); av_clip_int16 94 libavfilter/colorspacedsp_template.c rgb0[2 * x + rgb_stride + 1] = av_clip_int16((y11 * cy + crv * v + rnd) >> sh); av_clip_int16 98 libavfilter/colorspacedsp_template.c rgb1[x << SS_W] = av_clip_int16((y00 * cy + cgu * u + av_clip_int16 101 libavfilter/colorspacedsp_template.c rgb1[2 * x + 1] = av_clip_int16((y01 * cy + cgu * u + av_clip_int16 104 libavfilter/colorspacedsp_template.c rgb1[2 * x + rgb_stride] = av_clip_int16((y10 * cy + cgu * u + av_clip_int16 106 libavfilter/colorspacedsp_template.c rgb1[2 * x + rgb_stride + 1] = av_clip_int16((y11 * cy + cgu * u + av_clip_int16 111 libavfilter/colorspacedsp_template.c rgb2[x << SS_W] = av_clip_int16((y00 * cy + cbu * u + rnd) >> sh); av_clip_int16 113 libavfilter/colorspacedsp_template.c rgb2[2 * x + 1] = av_clip_int16((y01 * cy + cbu * u + rnd) >> sh); av_clip_int16 115 libavfilter/colorspacedsp_template.c rgb2[2 * x + rgb_stride] = av_clip_int16((y10 * cy + cbu * u + rnd) >> sh); av_clip_int16 116 libavfilter/colorspacedsp_template.c rgb2[2 * x + rgb_stride + 1] = av_clip_int16((y11 * cy + cbu * u + rnd) >> sh); av_clip_int16 260 libavfilter/vf_colorspace.c s->delin_lut[n] = av_clip_int16(lrint(d * 28672.0)); av_clip_int16 270 libavfilter/vf_colorspace.c s->lin_lut[n] = av_clip_int16(lrint(l * 28672.0)); 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 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 55 libavresample/tests/avresample.c PUT_FUNC(s16, AV_SAMPLE_FMT_S16, int16_t, av_clip_int16 ( lrint(v_dbl * (1 << 15)))) av_clip_int16 561 libavutil/common.h #ifndef av_clip_int16 av_clip_int16 88 libavutil/fixed_dsp.c dst[i] = av_clip_int16(((((int64_t)s0*wj - (int64_t)s1*wi + 0x40000000) >> 31) + round) >> bits); av_clip_int16 89 libavutil/fixed_dsp.c dst[j] = av_clip_int16(((((int64_t)s0*wi + (int64_t)s1*wj + 0x40000000) >> 31) + round) >> bits); av_clip_int16 79 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 85 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 38 libswresample/rematrix_template.c # define R(x) av_clip_int16(((x) + 16384)>>15) av_clip_int16 207 libswresample/resample.c ((int16_t*)filter)[ph * alloc + i] = av_clip_int16(lrintf(tab[i] * scale / norm)); av_clip_int16 71 libswresample/resample_template.c # define OUT(d, v) (d) = av_clip_int16((v)>>FILTER_SHIFT) av_clip_int16 70 libswresample/tests/swresample.c case AV_SAMPLE_FMT_S16: ((int16_t*)p)[index]= av_clip_int16 (lrint(v*32767)); break; av_clip_int16 2521 libswscale/output.c Y = 0x8000 + av_clip_int16(Y >> 15); av_clip_int16 2522 libswscale/output.c U = 0x8000 + av_clip_int16(U >> 15); av_clip_int16 2523 libswscale/output.c V = 0x8000 + av_clip_int16(V >> 15); av_clip_int16 2524 libswscale/output.c A = 0x8000 + av_clip_int16(A >> 15);