Home
last modified time | relevance | path

Searched refs:lrintf (Results 1 - 25 of 95) sorted by relevance

1234

/third_party/ffmpeg/libavcodec/
H A 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(os0 in p8idct()
[all...]
H A 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(postscal in ff_faandct248()
[all...]
H A Dac3dsp.c61 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
62 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
63 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
64 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
65 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
66 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
67 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
68 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
H A 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()
H A Dlibrsvgdec.c64 dimensions.width = lrintf(dimensions.height * default_ar); in librsvg_decode_frame()
66 dimensions.height = lrintf(dimensions.width / default_ar); in librsvg_decode_frame()
H A 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/x32/
H A Dlrintf.s1 .global lrintf
2 .type lrintf,@function
3 lrintf: label
/third_party/ffmpeg/libavfilter/
H A Dvf_colorbalance.c184 dstr[j] = av_clip_uint8(lrintf(r * max)); in color_balance8_p()
185 dstg[j] = av_clip_uint8(lrintf(g * max)); in color_balance8_p()
186 dstb[j] = av_clip_uint8(lrintf(b * max)); in color_balance8_p()
238 dstr[j] = av_clip_uintp2_c(lrintf(r * max), depth); in color_balance16_p()
239 dstg[j] = av_clip_uintp2_c(lrintf(g * max), depth); in color_balance16_p()
240 dstb[j] = av_clip_uintp2_c(lrintf(b * max), depth); in color_balance16_p()
295 dst[j + roffset] = av_clip_uint8(lrintf(r * max)); in color_balance8()
296 dst[j + goffset] = av_clip_uint8(lrintf(g * max)); in color_balance8()
297 dst[j + boffset] = av_clip_uint8(lrintf(b * max)); in color_balance8()
347 dst[j + roffset] = av_clip_uintp2_c(lrintf( in color_balance16()
[all...]
H A 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( in draw_axis_rgb()
[all...]
H A Dvf_v360.c410 const int i = lrintf(dv) + 1; in nearest_kernel()
411 const int j = lrintf(du) + 1; in nearest_kernel()
437 ker[0] = lrintf((1.f - du) * (1.f - dv) * 16385.f); in bilinear_kernel()
438 ker[1] = lrintf( du * (1.f - dv) * 16385.f); in bilinear_kernel()
439 ker[2] = lrintf((1.f - du) * dv * 16385.f); in bilinear_kernel()
440 ker[3] = lrintf( du * dv * 16385.f); in bilinear_kernel()
479 ker[i * 3 + j] = lrintf(du_coeffs[j] * dv_coeffs[i] * 16385.f); in lagrange_kernel()
524 ker[i * 4 + j] = lrintf(du_coeffs[j] * dv_coeffs[i] * 16385.f); in bicubic_kernel()
577 ker[i * 4 + j] = lrintf(du_coeffs[j] * dv_coeffs[i] * 16385.f); in lanczos_kernel()
619 ker[i * 4 + j] = lrintf(du_coeff in spline16_kernel()
[all...]
H A Dvsrc_mandelbrot.c328 c = lrintf((sinf(zr)+1)*127) + lrintf((sinf(zr/1.234)+1)*127)*256*256 + lrintf((sinf(zr/100)+1)*127)*256; in draw_mandelbrot()
332 c = lrintf((sinf(zr)+1)*127) + lrintf((sinf(zr/1.234)+1)*127)*256*256 + lrintf((sinf(zr/100)+1)*127)*256; in draw_mandelbrot()
370 c= lrintf((s->zyklus[closest_index][0]/closest+1)*127+dv) + lrintf((s->zyklus[closest_index][1]/closest+1)*127+dv)*256; in draw_mandelbrot()
H A Dvf_lagfun.c122 LAGFUN(8, uint8_t, lrintf, 0)
123 LAGFUN(16, uint16_t, lrintf, 0)
126 LAGFUN(d8, uint8_t, lrintf, 1)
127 LAGFUN(d16, uint16_t, lrintf, 1)
H A Dcolorchannelmixer_template.c29 #define ROUND lrintf
33 #define ROUND lrintf
219 rout = lrintf(lerpf(rout, frout, pa)); in filter_slice_rgba_packed()
220 gout = lrintf(lerpf(gout, fgout, pa)); in filter_slice_rgba_packed()
221 bout = lrintf(lerpf(bout, fbout, pa)); in filter_slice_rgba_packed()
H A Daf_drmeter.c78 rms_bin = av_clip(lrintf(rms * BINS), 0, BINS); in finish_block()
79 peak_bin = av_clip(lrintf(peak * BINS), 0, BINS); in finish_block()
/third_party/ffmpeg/libavutil/mips/
H A Dlibm_mips.h71 #undef lrintf macro
72 #define lrintf(x) lrintf_mips(x) macro
/third_party/ffmpeg/libavformat/
H A 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/musl/porting/liteos_a/kernel/src/math/
H A Dlrintf.c5 long lrintf(float x) in lrintf() function
/third_party/musl/src/math/
H A Dlrintf.c5 long lrintf(float x) in lrintf() function
/third_party/musl/src/math/i386/
H A Dlrintf.c3 long lrintf(float x) in lrintf() function
/third_party/musl/src/math/powerpc64/
H A Dlrintf.c5 long lrintf(float x) in lrintf() function
14 #include "../lrintf.c"
/third_party/musl/src/math/aarch64/
H A Dlrintf.c3 long lrintf(float x) in lrintf() function
/third_party/musl/src/math/x86_64/
H A Dlrintf.c3 long lrintf(float x) in lrintf() function
/third_party/ffmpeg/libavresample/
H A 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()
H A Daudio_mix.c120 MIX_FUNC_GENERIC(S16P, FLT, int16_t, float, float, av_clip_int16(lrintf(sum)))
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/libc-test/src/functionalext/supplement/math/math_gtest/
H A Dmath_lrint_test.cpp30 * @tc.desc: Obtain test data in sequence and check if it is within the expected error range of the lrintf interface.
37 bool testResult = FloatUlpCmp(g_lrintfData[i].expected, lrintf(g_lrintfData[i].input), 1); in HWTEST_F()

Completed in 16 milliseconds

1234