lrintf 913 ffmpeg.c lrintf(av_frame_get_pkt_duration(next_picture) * av_q2d(ist->st->time_base) / av_q2d(enc->time_base)) > 0) { lrintf 914 ffmpeg.c duration = lrintf(av_frame_get_pkt_duration(next_picture) * av_q2d(ist->st->time_base) / av_q2d(enc->time_base)); lrintf 958 ffmpeg.c av_log(NULL, AV_LOG_DEBUG, "Not duplicating %d initial frames\n", (int)lrintf(delta - duration)); lrintf 970 ffmpeg.c nb_frames = lrintf(delta); lrintf 972 ffmpeg.c nb0_frames = lrintf(delta0 - 0.6); lrintf 1486 ffmpeg.c int qp = lrintf(q); lrintf 1490 ffmpeg.c snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%X", (int)lrintf(log2(qp_histogram[j] + 1))); lrintf 924 ffserver_config.c if (ffserver_save_avoption_int("ab", (int64_t)lrintf(f), lrintf 302 libavcodec/aacsbr.c present = lrintf(prod); lrintf 442 libavcodec/aacsbr.c num_bands_0 = lrintf(half_bands * log2f(sbr->k[1] / (float)sbr->k[0])) * 2; lrintf 469 libavcodec/aacsbr.c int num_bands_1 = lrintf(half_bands * invwarp * lrintf 595 libavcodec/aacsbr.c sbr->n_q = FFMAX(1, lrintf(sbr->spectrum_params.bs_noise_bands * lrintf 95 libavcodec/ac3dsp.c *dst++ = lrintf(*src++ * scale); lrintf 96 libavcodec/ac3dsp.c *dst++ = lrintf(*src++ * scale); lrintf 97 libavcodec/ac3dsp.c *dst++ = lrintf(*src++ * scale); lrintf 98 libavcodec/ac3dsp.c *dst++ = lrintf(*src++ * scale); lrintf 99 libavcodec/ac3dsp.c *dst++ = lrintf(*src++ * scale); lrintf 100 libavcodec/ac3dsp.c *dst++ = lrintf(*src++ * scale); lrintf 101 libavcodec/ac3dsp.c *dst++ = lrintf(*src++ * scale); lrintf 102 libavcodec/ac3dsp.c *dst++ = lrintf(*src++ * scale); lrintf 34 libavcodec/adx.c coeff[0] = lrintf(c * 2.0 * (1 << bits)); lrintf 35 libavcodec/adx.c coeff[1] = lrintf(-(c * c) * (1 << bits)); lrintf 105 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_FLT, av_clip_uint8( lrintf(*(const float*)pi * (1<<7)) + 0x80)) lrintf 106 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, av_clip_int16( lrintf(*(const float*)pi * (1<<15)))) lrintf 377 libavcodec/evrcdec.c offset = lrintf(delay); lrintf 703 libavcodec/evrcdec.c pitch_lag = lrintf((idelay[1] + idelay[0]) / 2.0); lrintf 846 libavcodec/evrcdec.c pitch_lag = lrintf((idelay[1] + idelay[0]) / 2.0); lrintf 150 libavcodec/faandct.c data[8*0 + i]= lrintf(postscale[8*0 + i] * (tmp10 + tmp11)); lrintf 151 libavcodec/faandct.c data[8*4 + i]= lrintf(postscale[8*4 + i] * (tmp10 - tmp11)); lrintf 155 libavcodec/faandct.c data[8*2 + i]= lrintf(postscale[8*2 + i] * (tmp13 + tmp12)); lrintf 156 libavcodec/faandct.c data[8*6 + i]= lrintf(postscale[8*6 + i] * (tmp13 - tmp12)); lrintf 178 libavcodec/faandct.c data[8*5 + i]= lrintf(postscale[8*5 + i] * (z13 + z2)); lrintf 179 libavcodec/faandct.c data[8*3 + i]= lrintf(postscale[8*3 + i] * (z13 - z2)); lrintf 180 libavcodec/faandct.c data[8*1 + i]= lrintf(postscale[8*1 + i] * (z11 + z4)); lrintf 181 libavcodec/faandct.c data[8*7 + i]= lrintf(postscale[8*7 + i] * (z11 - z4)); lrintf 211 libavcodec/faandct.c data[8*0 + i] = lrintf(postscale[8*0 + i] * (tmp10 + tmp11)); lrintf 212 libavcodec/faandct.c data[8*4 + i] = lrintf(postscale[8*4 + i] * (tmp10 - tmp11)); lrintf 216 libavcodec/faandct.c data[8*2 + i] = lrintf(postscale[8*2 + i] * (tmp13 + tmp12)); lrintf 217 libavcodec/faandct.c data[8*6 + i] = lrintf(postscale[8*6 + i] * (tmp13 - tmp12)); lrintf 224 libavcodec/faandct.c data[8*1 + i] = lrintf(postscale[8*0 + i] * (tmp10 + tmp11)); lrintf 225 libavcodec/faandct.c data[8*5 + i] = lrintf(postscale[8*4 + i] * (tmp10 - tmp11)); lrintf 229 libavcodec/faandct.c data[8*3 + i] = lrintf(postscale[8*2 + i] * (tmp13 + tmp12)); lrintf 230 libavcodec/faandct.c data[8*7 + i] = lrintf(postscale[8*6 + i] * (tmp13 - tmp12)); lrintf 104 libavcodec/faanidct.c data[0*x + i]= lrintf(os07 + od07); lrintf 105 libavcodec/faanidct.c data[7*x + i]= lrintf(os07 - od07); lrintf 106 libavcodec/faanidct.c data[1*x + i]= lrintf(os16 + od16); lrintf 107 libavcodec/faanidct.c data[6*x + i]= lrintf(os16 - od16); lrintf 108 libavcodec/faanidct.c data[2*x + i]= lrintf(os25 + od25); lrintf 109 libavcodec/faanidct.c data[5*x + i]= lrintf(os25 - od25); lrintf 110 libavcodec/faanidct.c data[3*x + i]= lrintf(os34 - od34); lrintf 111 libavcodec/faanidct.c data[4*x + i]= lrintf(os34 + od34); lrintf 113 libavcodec/faanidct.c dest[0*stride + i]= av_clip_uint8(((int)dest[0*stride + i]) + lrintf(os07 + od07)); lrintf 114 libavcodec/faanidct.c dest[7*stride + i]= av_clip_uint8(((int)dest[7*stride + i]) + lrintf(os07 - od07)); lrintf 115 libavcodec/faanidct.c dest[1*stride + i]= av_clip_uint8(((int)dest[1*stride + i]) + lrintf(os16 + od16)); lrintf 116 libavcodec/faanidct.c dest[6*stride + i]= av_clip_uint8(((int)dest[6*stride + i]) + lrintf(os16 - od16)); lrintf 117 libavcodec/faanidct.c dest[2*stride + i]= av_clip_uint8(((int)dest[2*stride + i]) + lrintf(os25 + od25)); lrintf 118 libavcodec/faanidct.c dest[5*stride + i]= av_clip_uint8(((int)dest[5*stride + i]) + lrintf(os25 - od25)); lrintf 119 libavcodec/faanidct.c dest[3*stride + i]= av_clip_uint8(((int)dest[3*stride + i]) + lrintf(os34 - od34)); lrintf 120 libavcodec/faanidct.c dest[4*stride + i]= av_clip_uint8(((int)dest[4*stride + i]) + lrintf(os34 + od34)); lrintf 122 libavcodec/faanidct.c dest[0*stride + i]= av_clip_uint8(lrintf(os07 + od07)); lrintf 123 libavcodec/faanidct.c dest[7*stride + i]= av_clip_uint8(lrintf(os07 - od07)); lrintf 124 libavcodec/faanidct.c dest[1*stride + i]= av_clip_uint8(lrintf(os16 + od16)); lrintf 125 libavcodec/faanidct.c dest[6*stride + i]= av_clip_uint8(lrintf(os16 - od16)); lrintf 126 libavcodec/faanidct.c dest[2*stride + i]= av_clip_uint8(lrintf(os25 + od25)); lrintf 127 libavcodec/faanidct.c dest[5*stride + i]= av_clip_uint8(lrintf(os25 - od25)); lrintf 128 libavcodec/faanidct.c dest[3*stride + i]= av_clip_uint8(lrintf(os34 - od34)); lrintf 129 libavcodec/faanidct.c dest[4*stride + i]= av_clip_uint8(lrintf(os34 + od34)); lrintf 155 libavcodec/iirfilter.c c->cx[0] = lrintf(x0 / c->gain); lrintf 156 libavcodec/iirfilter.c c->cx[1] = lrintf(x1 / c->gain); lrintf 209 libavcodec/iirfilter.c #define CONV_S16(dest, source) dest = av_clip_int16(lrintf(source)); lrintf 1266 libavcodec/jpeg2000dec.c int val = lrintf(*datap) + (1 << (cbps - 1)); lrintf 1309 libavcodec/jpeg2000dec.c int val = lrintf(*datap) + (1 << (cbps - 1)); lrintf 64 libavcodec/libxvid_rc.c (int) lrintf(rce->qscale / FF_QP2LAMBDA), lrintf 132 libavcodec/lpc.c lpc_out[i] = av_clip(lrintf(error), -qmax, qmax); lrintf 4085 libavcodec/mpegvideo_enc.c basis[perm_index][8*x + y]= lrintf(s * cos((M_PI/8.0)*i*(x+0.5)) * cos((M_PI/8.0)*j*(y+0.5))); lrintf 202 libavcodec/nellymoserenc.c LUT[av_clip ((lrintf(val) >> 8) + LUT_add, 0, LUT_size - 1)]; \ lrintf 147 libavcodec/resample2.c filter[ph * tap_count + i] = av_clip(lrintf(tab[i] * scale / norm), FELEM_MIN, FELEM_MAX); lrintf 282 libavcodec/resample2.c dst[dst_index] = av_clip_int16(lrintf(val)); lrintf 130 libavcodec/snow.c ff_qexp[i]= lrintf(v); lrintf 71 libavfilter/vf_qp.c s->lut[i + 129] = lrintf(temp_val); lrintf 335 libavfilter/vsrc_mandelbrot.c c = lrintf((sin(zr)+1)*127) + lrintf((sin(zr/1.234)+1)*127)*256*256 + lrintf((sin(zr/100)+1)*127)*256; lrintf 339 libavfilter/vsrc_mandelbrot.c c = lrintf((sin(zr)+1)*127) + lrintf((sin(zr/1.234)+1)*127)*256*256 + lrintf((sin(zr/100)+1)*127)*256; lrintf 377 libavfilter/vsrc_mandelbrot.c c= lrintf((mb->zyklus[closest_index][0]/closest+1)*127+dv) + lrintf((mb->zyklus[closest_index][1]/closest+1)*127+dv)*256; lrintf 403 libavformat/avienc.c avio_wl32(pb, lrintf(1.0 / av_q2d(st->time_base))); lrintf 120 libavformat/dump.c uint64_t v = lrintf(d * 100); lrintf 207 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8( lrintf(*(const float *)pi * (1 << 7)) + 0x80)) lrintf 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)))) lrintf 120 libavresample/audio_mix.c MIX_FUNC_GENERIC(S16P, FLT, int16_t, float, float, av_clip_int16(lrintf(sum))) lrintf 158 libavresample/audio_mix.c *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); lrintf 159 libavresample/audio_mix.c *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); lrintf 160 libavresample/audio_mix.c *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); lrintf 161 libavresample/audio_mix.c *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); lrintf 165 libavresample/audio_mix.c *dst++ = av_clip_int16(lrintf(*src0++ * m0 + *src1++ * m1)); lrintf 128 libavresample/dither.c dst[i] = av_clip_int16(lrintf(src[i] * S16_SCALE + dither[i])); lrintf 198 libavresample/dither.c dst[i] = av_clip_int16(lrintf(sample)); lrintf 201 libavresample/dither.c dst[i] = av_clip_int16(lrintf(sample + dither[i])); lrintf 423 libavresample/dither.c c->mute_dither_threshold = lrintf(sample_rate * MUTE_THRESHOLD_SEC); lrintf 69 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_FLT, av_clip_uint8( lrintf(*(const float*)pi * (1<<7)) + 0x80)) lrintf 70 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, av_clip_int16( lrintf(*(const float*)pi * (1<<15)))) lrintf 369 libswresample/rematrix.c ((int*)s->native_matrix)[i * nb_in + j] = lrintf(s->matrix[i][j] * 32768); lrintf 411 libswresample/rematrix.c s->matrix32[i][j]= lrintf(s->matrix[i][j] * 32768); lrintf 117 libswresample/resample.c ((int16_t*)filter)[ph * alloc + i] = av_clip(lrintf(tab[i] * scale / norm), INT16_MIN, INT16_MAX);