Home
last modified time | relevance | path

Searched refs:av_clipl_int32 (Results 1 – 19 of 19) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dg723_1enc.c135 buf[i] = av_clipl_int32((int64_t)*iir + (1 << 15)) >> 16; in highpass_filter()
164 autocorr[0] = av_clipl_int32((int64_t) (temp << scale) + in comp_autocorr()
174 autocorr[i] = av_clipl_int32((int64_t) temp + (1 << 15)) >> 16; in comp_autocorr()
207 lpc[i] = av_clipl_int32((int64_t) (partial_corr << 14) + in levinson_durbin()
212 error = av_clipl_int32((int64_t) (error << 16) - temp + in levinson_durbin()
218 lpc[j] = av_clipl_int32((int64_t) (lpc[j] << 16) - temp + in levinson_durbin()
284 f[i] = av_clipl_int32((int64_t) (f[i] << shift) + (1 << 15)) >> 16; in lpc2lsp()
294 prev_val = av_clipl_int32(temp << 1); in lpc2lsp()
301 cur_val = av_clipl_int32(temp << 1); in lpc2lsp()
325 cur_val = av_clipl_int32(temp << 1); in lpc2lsp()
[all …]
Dg723_1.c1224 f1[i + 1] = av_clipl_int32(f1[i - 1] + (int64_t)MULL2(f1[i], lpc[2 * i])); in lsp2lpc()
1225 f2[i + 1] = av_clipl_int32(f2[i - 1] + (int64_t)MULL2(f2[i], lpc[2 * i + 1])); in lsp2lpc()
1245 lpc[i] = av_clipl_int32(((ff1 + ff2) * 8) + (1 << 15)) >> 16; in lsp2lpc()
1246 lpc[LPC_ORDER - i - 1] = av_clipl_int32(((ff1 - ff2) * 8) + in lsp2lpc()
Dflacdsp_lpc_template.c34 # define CLIP(x) av_clipl_int32(x)
Dg723_1dec.c602 (dest)[m] = av_clipl_int32(((src)[m] * 65536) + (filter * 8) +\
712 energy = av_clipl_int32((int64_t)auto_corr[1] << -temp); in formant_postfilter()
757 x = av_clipl_int32(t * (int64_t)cng_filt[0] >> 16); in estimate_sid_gain()
892 c = (av_clipl_int32(sum << 1) - c) * 2979LL >> 15; in generate_noise()
Dilbcdec.c909 return av_clipl_int32(sum); in scale_dot_product()
Dflacenc.c614 k = av_log2(av_clipl_int32(sum2 / n)); in find_optimal_param()
/third_party/ffmpeg/libavutil/
Dcommon.h139 #ifndef av_clipl_int32
140 # define av_clipl_int32 av_clipl_int32_c macro
328 return av_clipl_int32((int64_t)a + b); in av_sat_add32_c()
352 return av_clipl_int32((int64_t)a - b); in av_sat_sub32_c()
/third_party/ffmpeg/libavresample/
Dresample_template.c46 #define OUT(d, v) d = av_clipl_int32((v + (1 << 29)) >> 30)
47 #define DBL_TO_FELEM(d, v) d = av_clipl_int32(llrint(v * (1 << 30)));
Daudio_convert.c209 CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(co… in CONV_FUNC_GROUP()
214 CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(con… in CONV_FUNC_GROUP()
Daudio_mix.c705 CONVERT_MATRIX(q15, av_clipl_int32(llrint(32768.0 * v))) in ff_audio_mix_set_matrix()
/third_party/ffmpeg/libavfilter/
Daf_dcshift.c126 dst[j] = av_clipl_int32(d); in filter_frame()
137 dst[j] = av_clipl_int32(d); in filter_frame()
Daf_volume.c223 smp_dst[i] = av_clipl_int32((((int64_t)smp_src[i] * volume + 128) >> 8)); in scale_samples_s32()
/third_party/ffmpeg/libavutil/arm/
Dintmath.h117 #define av_clipl_int32 av_clipl_int32_arm macro
/third_party/ffmpeg/libswresample/
Daudioconvert.c80 CONV_FUNC(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, av_clipl_int32(llrintf(*(const float*)pi *…
86 CONV_FUNC(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, av_clipl_int32(llrint(*(const double*)pi *…
Dresample_template.c58 # define OUT(d, v) (d) = av_clipl_int32((v)>>FILTER_SHIFT)
Dresample.c214 ((int32_t*)filter)[ph * alloc + i] = av_clipl_int32(llrint(tab[i] * scale / norm)); in build_filter()
/third_party/ffmpeg/libavfilter/x86/
Daf_volume.asm120 ; src[i] = av_clipl_int32((src[i] * volume + 128) >> 8);
/third_party/ffmpeg/libavresample/tests/
Davresample.c56 PUT_FUNC(s32, AV_SAMPLE_FMT_S32, int32_t, av_clipl_int32(llrint(v_dbl * (1U << 31)))) in PUT_FUNC()
/third_party/ffmpeg/libswresample/tests/
Dswresample.c71 case AV_SAMPLE_FMT_S32: ((int32_t*)p)[index]= av_clipl_int32(llrint(v*2147483647)); break; in set()