/third_party/ffmpeg/libavcodec/ |
H A D | faanidct.c | 97 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 D | faandct.c | 141 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 D | ac3dsp.c | 61 *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 D | adx.c | 34 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 D | librsvgdec.c | 64 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 D | iirfilter.c | 156 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 D | lrintf.s | 1 .global lrintf 2 .type lrintf,@function 3 lrintf: label
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_colorbalance.c | 184 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 D | avf_showcqt.c | 776 *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 D | vf_v360.c | 410 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 D | vsrc_mandelbrot.c | 328 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 D | vf_lagfun.c | 122 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 D | colorchannelmixer_template.c | 29 #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 D | af_drmeter.c | 78 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 D | libm_mips.h | 71 #undef lrintf macro 72 #define lrintf(x) lrintf_mips(x) macro
|
/third_party/ffmpeg/libavformat/ |
H A D | ircamdec.c | 69 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 D | lrintf.c | 5 long lrintf(float x) in lrintf() function
|
/third_party/musl/src/math/ |
H A D | lrintf.c | 5 long lrintf(float x) in lrintf() function
|
/third_party/musl/src/math/i386/ |
H A D | lrintf.c | 3 long lrintf(float x) in lrintf() function
|
/third_party/musl/src/math/powerpc64/ |
H A D | lrintf.c | 5 long lrintf(float x) in lrintf() function 14 #include "../lrintf.c"
|
/third_party/musl/src/math/aarch64/ |
H A D | lrintf.c | 3 long lrintf(float x) in lrintf() function
|
/third_party/musl/src/math/x86_64/ |
H A D | lrintf.c | 3 long lrintf(float x) in lrintf() function
|
/third_party/ffmpeg/libavresample/ |
H A D | dither.c | 128 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 D | audio_mix.c | 120 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 D | math_lrint_test.cpp | 30 * @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()
|