av_clip 623 ffmpeg.c int comp= av_clip(delta, -audio_sync_method, audio_sync_method); av_clip 445 ffplay.c dstw = av_clip(rect->w, 0, imgw); av_clip 446 ffplay.c dsth = av_clip(rect->h, 0, imgh); av_clip 447 ffplay.c dstx = av_clip(rect->x, 0, imgw - dstw); av_clip 448 ffplay.c dsty = av_clip(rect->y, 0, imgh - dsth); av_clip 51 libavcodec/aacpsy.c return av_clip((int)(pow(fabsf(coef) * Q, 0.75) + 0.4054), 0, 8191); av_clip 198 libavcodec/ac3.c address = av_clip((psd[i] - v) >> 5, 0, 63); av_clip 674 libavcodec/ac3enc.c int cutoff = av_clip(avctx->cutoff, 1, s->sample_rate >> 1); av_clip 676 libavcodec/ac3enc.c bw_code = av_clip((fbw_coeffs - 73) / 3, 0, 60); av_clip 216 libavcodec/adpcm.c c->step_index = av_clip(c->step_index + index_table[nibble], 0, 88); av_clip 231 libavcodec/adpcm.c nibble= av_clip(nibble, -8, 7)&0x0F; av_clip 260 libavcodec/adpcm.c c->step = av_clip(c->step, 127, 24567); av_clip 330 libavcodec/adpcm.c const int nmin = av_clip(div-range, -8, 6); av_clip 331 libavcodec/adpcm.c const int nmax = av_clip(div+range, -7, 7); av_clip 378 libavcodec/adpcm.c int nmin = av_clip(div-range, -7, 6);\ av_clip 379 libavcodec/adpcm.c int nmax = av_clip(div+range, -6, 7);\ av_clip 387 libavcodec/adpcm.c LOOP_NODES(ima, step_table[step], av_clip(step + index_table[nibble], 0, 88)); av_clip 389 libavcodec/adpcm.c LOOP_NODES(yamaha, step, av_clip((step * yamaha_indexscale[nibble]) >> 8, 127, 24567)); av_clip 560 libavcodec/adpcm.c c->status[i].step_index = av_clip(c->status[i].step_index, 0, 63); // clip step so it fits 6 bits av_clip 764 libavcodec/adpcm.c c->step = av_clip(new_step, 511, 32767); av_clip 778 libavcodec/adpcm.c c->predictor = av_clip(c->predictor + (sign ? -diff : diff), -16384,16256); av_clip 799 libavcodec/adpcm.c c->step = av_clip(c->step, 127, 24567); av_clip 1030 libavcodec/adpcm.c block_predictor[0] = av_clip(*src++, 0, 6); av_clip 1033 libavcodec/adpcm.c block_predictor[1] = av_clip(*src++, 0, 6); av_clip 1525 libavcodec/adpcm.c c->status[i].step_index = av_clip(c->status[i].step_index, 0, 88); av_clip 379 libavcodec/alacenc.c s->compression_level = av_clip(avctx->compression_level, 0, 1); av_clip 59 libavcodec/cavs.c alpha = alpha_tab[av_clip(qp_avg + h->alpha_offset,0,63)]; \ av_clip 60 libavcodec/cavs.c beta = beta_tab[av_clip(qp_avg + h->beta_offset, 0,63)]; \ av_clip 61 libavcodec/cavs.c tc = tc_tab[av_clip(qp_avg + h->alpha_offset,0,63)]; av_clip 66 libavcodec/cavsdsp.c int delta = av_clip(((q0-p0)*3+P1-Q1+4)>>3,-tc, tc); av_clip 70 libavcodec/cavsdsp.c delta = av_clip(((P0-P1)*3+P2-Q0+4)>>3, -tc, tc); av_clip 74 libavcodec/cavsdsp.c delta = av_clip(((Q1-Q0)*3+P0-Q2+4)>>3, -tc, tc); av_clip 101 libavcodec/cavsdsp.c int delta = av_clip(((Q0-P0)*3+P1-Q1+4)>>3, -tc, tc); av_clip 436 libavcodec/cook.c exp_idx = av_clip((i - quant_index_table[index] + bias) / 2, 0, 7); av_clip 448 libavcodec/cook.c exp_idx = av_clip((bias - quant_index_table[i]) / 2, 0, 7); av_clip 1333 libavcodec/dsputil.c index= src_x + av_clip(src_y, 0, height)*stride; av_clip 1340 libavcodec/dsputil.c index= av_clip(src_x, 0, width) + src_y*stride; av_clip 1345 libavcodec/dsputil.c index= av_clip(src_x, 0, width) + av_clip(src_y, 0, height)*stride; av_clip 2874 libavcodec/dsputil.c d2= av_clip((p0-p3)/4, -ad1, ad1); av_clip 2911 libavcodec/dsputil.c d2= av_clip((p0-p3)/4, -ad1, ad1); av_clip 2970 libavcodec/dsputil.c pix[-2*xstride] = p1 + av_clip( (( p2 + ( ( p0 + q0 + 1 ) >> 1 ) ) >> 1) - p1, -tc0[i], tc0[i] ); av_clip 2974 libavcodec/dsputil.c pix[ xstride] = q1 + av_clip( (( q2 + ( ( p0 + q0 + 1 ) >> 1 ) ) >> 1) - q1, -tc0[i], tc0[i] ); av_clip 2978 libavcodec/dsputil.c i_delta = av_clip( (((q0 - p0 ) << 2) + (p1 - q1) + 4) >> 3, -tc, tc ); av_clip 3071 libavcodec/dsputil.c int delta = av_clip( (((q0 - p0 ) << 2) + (p1 - q1) + 4) >> 3, -tc, tc ); av_clip 618 libavcodec/error_resilience.c const int start_i= av_clip(startx + starty * s->mb_width , 0, s->mb_num-1); av_clip 619 libavcodec/error_resilience.c const int end_i = av_clip(endx + endy * s->mb_width , 0, s->mb_num); av_clip 156 libavcodec/eval.c case e_ld: return e->value * p->var[av_clip(eval_expr(p, e->param[0]), 0, VARS-1)]; av_clip 178 libavcodec/eval.c case e_st : return e->value * (p->var[av_clip(d, 0, VARS-1)]= d2); av_clip 251 libavcodec/flacenc.c s->options.use_lpc = av_clip(avctx->use_lpc, 0, 11); av_clip 214 libavcodec/g726.c fa1 = av_clip((-c->a[0]*c->pk[0]*pk0)>>5, -256, 255); av_clip 217 libavcodec/g726.c c->a[1] = av_clip(c->a[1], -12288, 12288); av_clip 219 libavcodec/g726.c c->a[0] = av_clip(c->a[0], -(15360 - c->a[1]), 15360 - c->a[1]); av_clip 249 libavcodec/g726.c c->yu = av_clip(c->y + c->tbls.W[I] + ((-c->y)>>5), 544, 5120); av_clip 265 libavcodec/g726.c return av_clip(re_signal << 2, -0xffff, 0xffff); av_clip 231 libavcodec/h263.c div= av_clip(div, 1, 127); av_clip 516 libavcodec/h263.c qscale_table[ s->mb_index2xy[i] ]= av_clip(qp, s->avctx->qmin, s->avctx->qmax); av_clip 893 libavcodec/h264.c int td = av_clip(poc1 - poc0, -128, 127); av_clip 897 libavcodec/h264.c int tb = av_clip(poc - poc0, -128, 127); av_clip 899 libavcodec/h264.c return av_clip((tb*tx + 32) >> 6, -1024, 1023); av_clip 3078 libavcodec/h264.c int td = av_clip(poc1 - poc0, -128, 127); av_clip 3080 libavcodec/h264.c int tb = av_clip(cur_poc - poc0, -128, 127); av_clip 3082 libavcodec/h264.c int dist_scale_factor = av_clip((tb*tx + 32) >> 6, -1024, 1023) >> 2; av_clip 6018 libavcodec/h264.c pix[-2] = p1 + av_clip( ( p2 + ( ( p0 + q0 + 1 ) >> 1 ) - ( p1 << 1 ) ) >> 1, -tc0, tc0 ); av_clip 6022 libavcodec/h264.c pix[1] = q1 + av_clip( ( q2 + ( ( p0 + q0 + 1 ) >> 1 ) - ( q1 << 1 ) ) >> 1, -tc0, tc0 ); av_clip 6026 libavcodec/h264.c i_delta = av_clip( (((q0 - p0 ) << 2) + (p1 - q1) + 4) >> 3, -tc, tc ); av_clip 6106 libavcodec/h264.c const int i_delta = av_clip( (((q0 - p0 ) << 2) + (p1 - q1) + 4) >> 3, -tc, tc ); av_clip 6634 libavcodec/h264.c pre = av_clip( ((cabac_context_init_I[i][0] * s->qscale) >>4 ) + cabac_context_init_I[i][1], 1, 126 ); av_clip 6636 libavcodec/h264.c pre = av_clip( ((cabac_context_init_PB[h->cabac_init_idc][i][0] * s->qscale) >>4 ) + cabac_context_init_PB[h->cabac_init_idc][i][1], 1, 126 ); av_clip 7249 libavcodec/h264.c pps->chroma_qp_table[t][i] = chroma_qp[av_clip(i + index, 0, 51)]; av_clip 363 libavcodec/imc.c cwlen = av_clip((int)((q->flcoeffs4[j] * 0.5) - summa + 0.5), 0, 6); av_clip 235 libavcodec/jpeglsdec.c pred = av_clip(pred - state->C[context], 0, state->maxval); av_clip 238 libavcodec/jpeglsdec.c pred = av_clip(pred + state->C[context], 0, state->maxval); av_clip 250 libavcodec/jpeglsdec.c pred = av_clip(pred, 0, state->maxval); av_clip 161 libavcodec/jpeglsenc.c Ra = av_clip(pred + err * state->twonear, 0, state->maxval); av_clip 163 libavcodec/jpeglsenc.c Ra = av_clip(pred - err * state->twonear, 0, state->maxval); av_clip 184 libavcodec/jpeglsenc.c pred = av_clip(pred - state->C[context], 0, state->maxval); av_clip 188 libavcodec/jpeglsenc.c pred = av_clip(pred + state->C[context], 0, state->maxval); av_clip 198 libavcodec/jpeglsenc.c Ra = av_clip(pred + err * state->twonear, 0, state->maxval); av_clip 200 libavcodec/jpeglsenc.c Ra = av_clip(pred - err * state->twonear, 0, state->maxval); av_clip 75 libavcodec/lpc.c lpc_out[i] = av_clip(lrintf(error), -qmax, qmax); av_clip 212 libavcodec/mimic.c const int qscale = av_clip(10000-quality,is_chroma?1000:2000,10000)<<2; av_clip 1560 libavcodec/motion_est.c P_LEFT[0] = av_clip(mv_table[mot_xy - 1][0], xmin<<shift, xmax<<shift); av_clip 1561 libavcodec/motion_est.c P_LEFT[1] = av_clip(mv_table[mot_xy - 1][1], ymin<<shift, ymax<<shift); av_clip 1565 libavcodec/motion_est.c P_TOP[0] = av_clip(mv_table[mot_xy - mot_stride ][0], xmin<<shift, xmax<<shift); av_clip 1566 libavcodec/motion_est.c P_TOP[1] = av_clip(mv_table[mot_xy - mot_stride ][1], ymin<<shift, ymax<<shift); av_clip 1567 libavcodec/motion_est.c P_TOPRIGHT[0] = av_clip(mv_table[mot_xy - mot_stride + 1 ][0], xmin<<shift, xmax<<shift); av_clip 1568 libavcodec/motion_est.c P_TOPRIGHT[1] = av_clip(mv_table[mot_xy - mot_stride + 1 ][1], ymin<<shift, ymax<<shift); av_clip 242 libavcodec/motionpixels.c p.y = av_clip(p.y, 0, 31); av_clip 246 libavcodec/motionpixels.c p.v = av_clip(p.v, -32, 31); av_clip 248 libavcodec/motionpixels.c p.u = av_clip(p.u, -32, 31); av_clip 272 libavcodec/motionpixels.c p.y = av_clip(p.y, 0, 31); av_clip 275 libavcodec/motionpixels.c p.v = av_clip(p.v, -32, 31); av_clip 277 libavcodec/motionpixels.c p.u = av_clip(p.u, -32, 31); av_clip 1022 libavcodec/mpegvideo.c sx= av_clip(sx, 0, w-1); av_clip 1023 libavcodec/mpegvideo.c sy= av_clip(sy, 0, h-1); av_clip 1024 libavcodec/mpegvideo.c ex= av_clip(ex, 0, w-1); av_clip 1025 libavcodec/mpegvideo.c ey= av_clip(ey, 0, h-1); av_clip 1071 libavcodec/mpegvideo.c sx= av_clip(sx, -100, w+100); av_clip 1072 libavcodec/mpegvideo.c sy= av_clip(sy, -100, h+100); av_clip 1073 libavcodec/mpegvideo.c ex= av_clip(ex, -100, w+100); av_clip 1074 libavcodec/mpegvideo.c ey= av_clip(ey, -100, h+100); av_clip 73 libavcodec/mpegvideo_common.h src_x = av_clip(src_x, -16, s->width); av_clip 76 libavcodec/mpegvideo_common.h src_y = av_clip(src_y, -16, s->height); av_clip 115 libavcodec/mpegvideo_common.h src_x = av_clip(src_x, -8, s->width>>1); av_clip 118 libavcodec/mpegvideo_common.h src_y = av_clip(src_y, -8, s->height>>1); av_clip 217 libavcodec/mpegvideo_common.h src_x = av_clip(src_x, -16, width); //FIXME unneeded for emu? av_clip 220 libavcodec/mpegvideo_common.h src_y = av_clip(src_y, -16, height); av_clip 583 libavcodec/mpegvideo_common.h src_x = av_clip(src_x, -8, s->width/2); av_clip 586 libavcodec/mpegvideo_common.h src_y = av_clip(src_y, -8, s->height/2); av_clip 756 libavcodec/mpegvideo_common.h src_x = av_clip(src_x, -16, s->width); av_clip 759 libavcodec/mpegvideo_common.h src_y = av_clip(src_y, -16, s->height); av_clip 132 libavcodec/mpegvideo_enc.c s->qscale= av_clip(s->qscale, s->avctx->qmin, s->avctx->qmax); av_clip 1461 libavcodec/mpegvideo_enc.c s->dquant= av_clip(s->dquant, -2, 2); av_clip 101 libavcodec/nellymoser.c ret += av_clip(b, 0, NELLY_BIT_CAP); av_clip 212 libavcodec/nellymoser.c bits[i] = av_clip(tmp, 0, NELLY_BIT_CAP); av_clip 179 libavcodec/nellymoserenc.c LUT[av_clip ((lrintf(val) >> 8) + LUT_add, 0, LUT_size - 1)]; \ av_clip 332 libavcodec/nellymoserenc.c quant_lut[av_clip ( av_clip 286 libavcodec/pngenc.c av_clip(avctx->compression_level, 0, 9); av_clip 432 libavcodec/pngenc.c s->filter_type = av_clip(avctx->prediction_method, PNG_FILTER_VALUE_NONE, PNG_FILTER_VALUE_MIXED); av_clip 235 libavcodec/qcelpdec.c g1[i] += av_clip((g1[i-1] + g1[i-2] + g1[i-3]) / 3 - 6, 0, 32); av_clip 267 libavcodec/qcelpdec.c + av_clip((q->prev_g1[0] + q->prev_g1[1]) / 2 - 5, 0, 54); av_clip 287 libavcodec/ratecontrol.c rcc->buffer_index += av_clip(left, min_rate, max_rate); av_clip 426 libavcodec/ratecontrol.c qmin= av_clip(qmin, 1, FF_LAMBDA_MAX); av_clip 427 libavcodec/ratecontrol.c qmax= av_clip(qmax, 1, FF_LAMBDA_MAX); av_clip 939 libavcodec/ratecontrol.c qscale_sum += av_clip(rcc->entry[i].new_qscale / FF_QP2LAMBDA, s->avctx->qmin, s->avctx->qmax); av_clip 136 libavcodec/resample2.c filter[ph * tap_count + i] = av_clip(lrintf(tab[i] * scale / norm), FELEM_MIN, FELEM_MAX); av_clip 128 libavcodec/rv30.c diff = av_clip(diff, -lim, lim); av_clip 384 libavcodec/rv34.c return type ? &inter_vlcs[rv34_quant_to_vlc_set[1][av_clip(quant, 0, 30)]] av_clip 385 libavcodec/rv34.c : &intra_vlcs[rv34_quant_to_vlc_set[0][av_clip(quant, 0, 30)]]; av_clip 250 libavcodec/rv40.c #define CLIP_SYMM(a, b) av_clip(a, -(b), b) av_clip 345 libavcodec/rv40.c p0 = av_clip(p0, src[-1*step] - lims, src[-1*step] + lims); av_clip 346 libavcodec/rv40.c q0 = av_clip(q0, src[ 0*step] - lims, src[ 0*step] + lims); av_clip 355 libavcodec/rv40.c p1 = av_clip(p1, src[-2*step] - lims, src[-2*step] + lims); av_clip 356 libavcodec/rv40.c q1 = av_clip(q1, src[ 1*step] - lims, src[ 1*step] + lims); av_clip 393 libavcodec/sh4/qpel.c index= src_x + av_clip(src_y, 0, height)*stride; av_clip 400 libavcodec/sh4/qpel.c index= av_clip(src_x, 0, width) + src_y*stride; av_clip 405 libavcodec/sh4/qpel.c index= av_clip(src_x, 0, width) + av_clip(src_y, 0, height)*stride; av_clip 1570 libavcodec/snow.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); av_clip 2742 libavcodec/snow.c return av_clip(((ab<<LOG2_OBMC_MAX) + aa/2)/aa, 0, 255); //FIXME we should not need clipping av_clip 3256 libavcodec/snow.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); av_clip 3316 libavcodec/snow.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); av_clip 3340 libavcodec/snow.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); av_clip 3794 libavcodec/snow.c const int qlog= av_clip(2*QROOT + b->qlog, 0, QROOT*16); av_clip 190 libavcodec/svq1enc.c mean= av_clip(mean, intra?0:-256, 255); av_clip 269 libavcodec/svq3.c mx = av_clip (mx, -16, (s->h_edge_pos - width + 15)); av_clip 270 libavcodec/svq3.c my = av_clip (my, -16, (s->v_edge_pos - height + 15)); av_clip 346 libavcodec/svq3.c mx = av_clip(mx, extra_width - 6*x, h_edge_pos - 6*x); av_clip 347 libavcodec/svq3.c my = av_clip(my, extra_width - 6*y, v_edge_pos - 6*y); av_clip 287 libavcodec/truespeech.c out[i] = av_clip(sum, -0x7FFE, 0x7FFE); av_clip 317 libavcodec/truespeech.c ptr0[0] = av_clip((sum + 0x800) >> 12, -0x7FFE, 0x7FFE); av_clip 321 libavcodec/truespeech.c out[i] = av_clip((sum + 0x800) >> 12, -0x7FFE, 0x7FFE); av_clip 518 libavcodec/vc1.c src_x = av_clip( src_x, -16, s->mb_width * 16); av_clip 519 libavcodec/vc1.c src_y = av_clip( src_y, -16, s->mb_height * 16); av_clip 520 libavcodec/vc1.c uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8); av_clip 521 libavcodec/vc1.c uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8); av_clip 523 libavcodec/vc1.c src_x = av_clip( src_x, -17, s->avctx->coded_width); av_clip 524 libavcodec/vc1.c src_y = av_clip( src_y, -18, s->avctx->coded_height + 1); av_clip 525 libavcodec/vc1.c uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1); av_clip 526 libavcodec/vc1.c uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1); av_clip 648 libavcodec/vc1.c src_x = av_clip( src_x, -16, s->mb_width * 16); av_clip 649 libavcodec/vc1.c src_y = av_clip( src_y, -16, s->mb_height * 16); av_clip 651 libavcodec/vc1.c src_x = av_clip( src_x, -17, s->avctx->coded_width); av_clip 652 libavcodec/vc1.c src_y = av_clip( src_y, -18, s->avctx->coded_height + 1); av_clip 783 libavcodec/vc1.c uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8); av_clip 784 libavcodec/vc1.c uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8); av_clip 786 libavcodec/vc1.c uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1); av_clip 787 libavcodec/vc1.c uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1); av_clip 1849 libavcodec/vc1.c src_x = av_clip( src_x, -16, s->mb_width * 16); av_clip 1850 libavcodec/vc1.c src_y = av_clip( src_y, -16, s->mb_height * 16); av_clip 1851 libavcodec/vc1.c uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8); av_clip 1852 libavcodec/vc1.c uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8); av_clip 1854 libavcodec/vc1.c src_x = av_clip( src_x, -17, s->avctx->coded_width); av_clip 1855 libavcodec/vc1.c src_y = av_clip( src_y, -18, s->avctx->coded_height + 1); av_clip 1856 libavcodec/vc1.c uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1); av_clip 1857 libavcodec/vc1.c uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1); av_clip 2002 libavcodec/vc1.c s->mv[0][0][0] = av_clip(s->mv[0][0][0], -60 - (s->mb_x << 6), (s->mb_width << 6) - 4 - (s->mb_x << 6)); av_clip 2003 libavcodec/vc1.c s->mv[0][0][1] = av_clip(s->mv[0][0][1], -60 - (s->mb_y << 6), (s->mb_height << 6) - 4 - (s->mb_y << 6)); av_clip 2004 libavcodec/vc1.c s->mv[1][0][0] = av_clip(s->mv[1][0][0], -60 - (s->mb_x << 6), (s->mb_width << 6) - 4 - (s->mb_x << 6)); av_clip 2005 libavcodec/vc1.c s->mv[1][0][1] = av_clip(s->mv[1][0][1], -60 - (s->mb_y << 6), (s->mb_height << 6) - 4 - (s->mb_y << 6)); av_clip 510 libavcodec/vp3.c s->qmat[inter][plane][s->dsp.idct_permutation[i]]= av_clip((qscale * coeff)/100 * 4, qmin, 4096); av_clip 171 libavcodec/vp5.c model->coeff_dcct[pt][ctx][node] = av_clip(((model->coeff_dccv[pt][node] * vp5_dccv_lc[node][ctx][0] + 128) >> 8) + vp5_dccv_lc[node][ctx][1], 1, 254); av_clip 179 libavcodec/vp5.c model->coeff_acct[pt][ct][cg][ctx][node] = av_clip(((model->coeff_ract[pt][ct][cg][node] * vp5_ract_lc[ct][cg][node][ctx][0] + 128) >> 8) + vp5_ract_lc[ct][cg][node][ctx][1], 1, 254); av_clip 300 libavcodec/vp6.c model->coeff_dcct[pt][ctx][node] = av_clip(((model->coeff_dccv[pt][node] * vp6_dccv_lc[ctx][node][0] + 128) >> 8) + vp6_dccv_lc[ctx][node][1], 1, 255); av_clip 90 libavcodec/wmv2.c src_x = av_clip(src_x, -16, s->width); av_clip 91 libavcodec/wmv2.c src_y = av_clip(src_y, -16, s->height); av_clip 137 libavcodec/wmv2.c src_x = av_clip(src_x, -8, s->width >> 1); av_clip 140 libavcodec/wmv2.c src_y = av_clip(src_y, -8, s->height >> 1);