Home
last modified time | relevance | path

Searched refs:lrintf (Results 1 – 25 of 105) sorted by relevance

12345

/third_party/ffmpeg/libavcodec/
Dfaanidct.c97 data[0*x + i]= lrintf(os07 + od07); in p8idct()
98 data[7*x + i]= lrintf(os07 - od07); in p8idct()
99 data[1*x + i]= lrintf(os16 + od16); in p8idct()
100 data[6*x + i]= lrintf(os16 - od16); in p8idct()
101 data[2*x + i]= lrintf(os25 + od25); in p8idct()
102 data[5*x + i]= lrintf(os25 - od25); in p8idct()
103 data[3*x + i]= lrintf(os34 - od34); in p8idct()
104 data[4*x + i]= lrintf(os34 + od34); in p8idct()
106 dest[0*stride + i]= av_clip_uint8(((int)dest[0*stride + i]) + lrintf(os07 + od07)); in p8idct()
107 dest[7*stride + i]= av_clip_uint8(((int)dest[7*stride + i]) + lrintf(os07 - od07)); in p8idct()
[all …]
Dfaandct.c141 data[8*0 + i]= lrintf(postscale[8*0 + i] * (tmp10 + tmp11)); in ff_faandct()
142 data[8*4 + i]= lrintf(postscale[8*4 + i] * (tmp10 - tmp11)); in ff_faandct()
146 data[8*2 + i]= lrintf(postscale[8*2 + i] * (tmp13 + tmp12)); in ff_faandct()
147 data[8*6 + i]= lrintf(postscale[8*6 + i] * (tmp13 - tmp12)); in ff_faandct()
161 data[8*5 + i]= lrintf(postscale[8*5 + i] * (z13 + z2)); in ff_faandct()
162 data[8*3 + i]= lrintf(postscale[8*3 + i] * (z13 - z2)); in ff_faandct()
163 data[8*1 + i]= lrintf(postscale[8*1 + i] * (z11 + z4)); in ff_faandct()
164 data[8*7 + i]= lrintf(postscale[8*7 + i] * (z11 - z4)); in ff_faandct()
194 data[8*0 + i] = lrintf(postscale[8*0 + i] * (tmp10 + tmp11)); in ff_faandct248()
195 data[8*4 + i] = lrintf(postscale[8*4 + i] * (tmp10 - tmp11)); in ff_faandct248()
[all …]
Dac3dsp.c53 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
54 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
55 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
56 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
57 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
58 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
59 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
60 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
Dadx.c34 coeff[0] = lrintf(c * 2.0 * (1 << bits)); in ff_adx_calculate_coeffs()
35 coeff[1] = lrintf(-(c * c) * (1 << bits)); in ff_adx_calculate_coeffs()
Dlibrsvgdec.c63 dimensions.width = lrintf(dimensions.height * default_ar); in librsvg_decode_frame()
65 dimensions.height = lrintf(dimensions.width / default_ar); in librsvg_decode_frame()
Diirfilter.c156 c->cx[0] = lrintf(x0 / c->gain); in biquad_init_coeffs()
157 c->cx[1] = lrintf(x1 / c->gain); in biquad_init_coeffs()
207 #define CONV_S16(dest, source) dest = av_clip_int16(lrintf(source));
/third_party/musl/src/math/x86_64/
Dlrintf.s1 .global lrintf symbol
2 .type lrintf,@function
3 lrintf: label
/third_party/musl/src/math/x32/
Dlrintf.s1 .global lrintf symbol
2 .type lrintf,@function
3 lrintf: label
/third_party/musl/src/math/i386/
Dlrintf.s1 .global lrintf symbol
2 .type lrintf,@function
3 lrintf: label
/third_party/ffmpeg/libavfilter/
Davf_showcqt.c776 *lp++ = lrintf(mul * c[x].rgb.r); in draw_bar_rgb()
777 *lp++ = lrintf(mul * c[x].rgb.g); in draw_bar_rgb()
778 *lp++ = lrintf(mul * c[x].rgb.b); in draw_bar_rgb()
793 *lpy++ = lrintf(mul * c[x].yuv.y + 16.0f); \
794 *lpu++ = lrintf(mul * c[x].yuv.u + 128.0f); \
795 *lpv++ = lrintf(mul * c[x].yuv.v + 128.0f); \
806 *lpy++ = lrintf(mul * c[x].yuv.y + 16.0f); \
872 *lp++ = lrintf(c[x].rgb.r); in draw_axis_rgb()
873 *lp++ = lrintf(c[x].rgb.g); in draw_axis_rgb()
874 *lp++ = lrintf(c[x].rgb.b); in draw_axis_rgb()
[all …]
Dvf_colorbalance.c191 dstr[j] = av_clip_uint8(lrintf(r * max)); in color_balance8_p()
192 dstg[j] = av_clip_uint8(lrintf(g * max)); in color_balance8_p()
193 dstb[j] = av_clip_uint8(lrintf(b * max)); in color_balance8_p()
245 dstr[j] = av_clip_uintp2_c(lrintf(r * max), depth); in color_balance16_p()
246 dstg[j] = av_clip_uintp2_c(lrintf(g * max), depth); in color_balance16_p()
247 dstb[j] = av_clip_uintp2_c(lrintf(b * max), depth); in color_balance16_p()
302 dst[j + roffset] = av_clip_uint8(lrintf(r * max)); in color_balance8()
303 dst[j + goffset] = av_clip_uint8(lrintf(g * max)); in color_balance8()
304 dst[j + boffset] = av_clip_uint8(lrintf(b * max)); in color_balance8()
354 dst[j + roffset] = av_clip_uintp2_c(lrintf(r * max), depth); in color_balance16()
[all …]
Dvf_v360.c407 const int i = lrintf(dv) + 1; in nearest_kernel()
408 const int j = lrintf(du) + 1; in nearest_kernel()
434 ker[0] = lrintf((1.f - du) * (1.f - dv) * 16385.f); in bilinear_kernel()
435 ker[1] = lrintf( du * (1.f - dv) * 16385.f); in bilinear_kernel()
436 ker[2] = lrintf((1.f - du) * dv * 16385.f); in bilinear_kernel()
437 ker[3] = lrintf( du * dv * 16385.f); in bilinear_kernel()
476 ker[i * 3 + j] = lrintf(du_coeffs[j] * dv_coeffs[i] * 16385.f); in lagrange_kernel()
521 ker[i * 4 + j] = lrintf(du_coeffs[j] * dv_coeffs[i] * 16385.f); in bicubic_kernel()
574 ker[i * 4 + j] = lrintf(du_coeffs[j] * dv_coeffs[i] * 16385.f); in lanczos_kernel()
616 ker[i * 4 + j] = lrintf(du_coeffs[j] * dv_coeffs[i] * 16385.f); in spline16_kernel()
[all …]
Dvsrc_mandelbrot.c337 …c = lrintf((sinf(zr)+1)*127) + lrintf((sinf(zr/1.234)+1)*127)*256*256 + lrintf((sinf(zr/100)+1)*12… in draw_mandelbrot()
341 …c = lrintf((sinf(zr)+1)*127) + lrintf((sinf(zr/1.234)+1)*127)*256*256 + lrintf((sinf(zr/100)+1)*12… in draw_mandelbrot()
379 …c= lrintf((s->zyklus[closest_index][0]/closest+1)*127+dv) + lrintf((s->zyklus[closest_index][1]/cl… in draw_mandelbrot()
Dvf_colorchannelmixer.c177 rout = lrintf(lerpf(rout, frout, l)); in filter_slice_rgba_planar()
178 gout = lrintf(lerpf(gout, fgout, l)); in filter_slice_rgba_planar()
179 bout = lrintf(lerpf(bout, fbout, l)); in filter_slice_rgba_planar()
263 rout = lrintf(lerpf(rout, frout, l)); in filter_slice_rgba16_planar()
264 gout = lrintf(lerpf(gout, fgout, l)); in filter_slice_rgba16_planar()
265 bout = lrintf(lerpf(bout, fbout, l)); in filter_slice_rgba16_planar()
450 rout = lrintf(lerpf(rout, frout, l)); in filter_slice_rgba_packed()
451 gout = lrintf(lerpf(gout, fgout, l)); in filter_slice_rgba_packed()
452 bout = lrintf(lerpf(bout, fbout, l)); in filter_slice_rgba_packed()
532 rout = lrintf(lerpf(rout, frout, l)); in filter_slice_rgba16_packed()
[all …]
Dvsrc_gradients.c104 return (lrintf(c0[0] * y + c1[0] * x)) << 0 | in lerp_color()
105 (lrintf(c0[1] * y + c1[1] * x)) << 8 | in lerp_color()
106 (lrintf(c0[2] * y + c1[2] * x)) << 16 | in lerp_color()
107 (lrintf(c0[3] * y + c1[3] * x)) << 24; in lerp_color()
Dvf_qp.c83 s->lut[i + 129] = lrintf(temp_val); in config_input()
155 b->delta_qp = lrintf(temp_val); in filter_frame()
/third_party/ffmpeg/libavutil/mips/
Dlibm_mips.h69 #undef lrintf
70 #define lrintf(x) lrintf_mips(x) macro
/third_party/ffmpeg/libavformat/
Dircamdec.c69 sample_rate = lrintf(av_int2float(avio_rl32(s->pb))); in ircam_read_header()
74 sample_rate = lrintf(av_int2float(avio_rb32(s->pb))); in ircam_read_header()
/third_party/ffmpeg/libavresample/
Ddither.c128 dst[i] = av_clip_int16(lrintf(src[i] * S16_SCALE + dither[i])); in quantize_c()
198 dst[i] = av_clip_int16(lrintf(sample)); in quantize_triangular_ns()
201 dst[i] = av_clip_int16(lrintf(sample + dither[i])); in quantize_triangular_ns()
423 c->mute_dither_threshold = lrintf(sample_rate * MUTE_THRESHOLD_SEC); in ff_dither_alloc()
Daudio_mix.c120 MIX_FUNC_GENERIC(S16P, FLT, int16_t, float, float, av_clip_int16(lrintf(sum))) in MIX_FUNC_GENERIC()
158 *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); in mix_2_to_1_s16p_flt_c()
159 *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); in mix_2_to_1_s16p_flt_c()
160 *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); in mix_2_to_1_s16p_flt_c()
161 *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); in mix_2_to_1_s16p_flt_c()
165 *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); in mix_2_to_1_s16p_flt_c()
/third_party/musl/src/math/
Dlrintf.c5 long lrintf(float x) in lrintf() function
/third_party/musl/porting/liteos_a/kernel/src/math/
Dlrintf.c5 long lrintf(float x) in lrintf() function
/third_party/musl/src/math/aarch64/
Dlrintf.c3 long lrintf(float x) in lrintf() function
/third_party/musl/src/math/powerpc64/
Dlrintf.c5 long lrintf(float x) in lrintf() function
/third_party/libsnd/tests/
Dscale_clip_test.def7 float_to_int = "lrintf" ;

12345