av_clip 1262 ffmpeg.c int extra_bits = av_clip(29 - av_log2(tb.den), 0, 16); av_clip 866 ffplay.c dstw = av_clip(rect->w, 0, imgw); av_clip 867 ffplay.c dsth = av_clip(rect->h, 0, imgh); av_clip 868 ffplay.c dstx = av_clip(rect->x, 0, imgw - dstw); av_clip 869 ffplay.c dsty = av_clip(rect->y, 0, imgh - dsth); av_clip 263 ffprobe.c index = av_clip(index, 0, FF_ARRAY_ELEMS(binary_unit_prefixes) - 1); av_clip 268 ffprobe.c index = av_clip(index, 0, FF_ARRAY_ELEMS(decimal_unit_prefixes) - 1); av_clip 649 libavcodec/aaccoder.c minscale = av_clip(minscale - q0, 0, TRELLIS_STATES - 1); av_clip 650 libavcodec/aaccoder.c maxscale = av_clip(maxscale - q0, 0, TRELLIS_STATES); av_clip 830 libavcodec/aaccoder.c minscaler = av_clip(minscaler, 60, 255 - SCALE_MAX_DIFF); av_clip 840 libavcodec/aaccoder.c sce->sf_idx[w*16+g] = av_clip(sce->sf_idx[w*16+g], minscaler, minscaler + SCALE_MAX_DIFF); av_clip 954 libavcodec/aaccoder.c scf = prev_scf = av_clip(SCALE_ONE_POS - SCALE_DIV_512 - log2f(1/maxq[w*16+g])*16/3, 60, 218); av_clip 989 libavcodec/aaccoder.c sce->sf_idx[w*16+g] = av_clip(scf, min_scf, max_scf); av_clip 1014 libavcodec/aaccoder.c sce->sf_idx[i] = av_clip(sce->sf_idx[i], minq, maxsf); av_clip 1034 libavcodec/aaccoder.c sce->sf_idx[(w+w2)*16+g] = av_clip(SCALE_ONE_POS - SCALE_DIV_512 + log2f(band->threshold), 80, 218); av_clip 1410 libavcodec/aacdec.c clipped_offset = av_clip(offset[2], -155, 100); av_clip 1425 libavcodec/aacdec.c clipped_offset = av_clip(offset[1], -100, 155); av_clip 486 libavcodec/aacpsy.c ctx->fill_level = av_clip(ctx->fill_level, 0, size); av_clip 279 libavcodec/ac3dec.c s->surround_mix_level_ltrt = av_clip(get_bits(gbc, 3), 3, 7); av_clip 281 libavcodec/ac3dec.c s->surround_mix_level = av_clip(get_bits(gbc, 3), 3, 7); av_clip 2258 libavcodec/ac3enc.c s->bandwidth_code = av_clip((fbw_coeffs - 73) / 3, 0, 60); av_clip 2296 libavcodec/ac3enc.c cpl_start_band = av_clip(cpl_start, 0, FFMIN(cpl_end_band-1, 15)); av_clip 312 libavcodec/ac3enc_template.c block->cpl_coord_exp[ch][bnd] = av_clip(block->cpl_coord_exp[ch][bnd] - av_clip 162 libavcodec/acelp_pitch_delay.c int search_range_min = av_clip(prev_lag_int - 5, PITCH_DELAY_MIN, av_clip 181 libavcodec/acelp_pitch_delay.c pitch_index += 3 * av_clip(prev_lag_int - 10, PITCH_DELAY_MIN, av_clip 184 libavcodec/acelp_pitch_delay.c pitch_index += 3 * av_clip(prev_lag_int - 5, PITCH_DELAY_MIN, av_clip 171 libavcodec/adpcm.c step_index = av_clip(step_index, 0, 88); av_clip 197 libavcodec/adpcm.c step_index = av_clip(step_index, 0, 88); av_clip 220 libavcodec/adpcm.c step_index = av_clip(step_index, 0, 88); av_clip 263 libavcodec/adpcm.c step_index = av_clip(step_index, 0, 48); av_clip 294 libavcodec/adpcm.c c->step = av_clip(new_step, 511, 32767); av_clip 308 libavcodec/adpcm.c c->predictor = av_clip(c->predictor + (sign ? -diff : diff), -16384,16256); av_clip 329 libavcodec/adpcm.c c->step = av_clip(c->step, 127, 24567); av_clip 461 libavcodec/adpcm.c c->status[i].step_index = av_clip(c->status[i].step_index, 0, 88); av_clip 1501 libavcodec/adpcm.c prev = av_clip((prev + 0x20) >> 6, -0x200000, 0x1fffff); av_clip 174 libavcodec/adpcmenc.c c->step_index = av_clip(c->step_index + ff_adpcm_index_table[nibble], 0, 88); av_clip 210 libavcodec/adpcmenc.c c->step_index = av_clip(c->step_index + ff_adpcm_index_table[nibble], 0, 88); av_clip 261 libavcodec/adpcmenc.c c->step = av_clip(c->step, 127, 24567); av_clip 322 libavcodec/adpcmenc.c const int nmin = av_clip(div-range, -8, 6); av_clip 323 libavcodec/adpcmenc.c const int nmax = av_clip(div+range, -7, 7); av_clip 400 libavcodec/adpcmenc.c int nmin = av_clip(div - range, -7, 6);\ av_clip 401 libavcodec/adpcmenc.c int nmax = av_clip(div + range, -6, 7);\ av_clip 414 libavcodec/adpcmenc.c av_clip(step + ff_adpcm_index_table[nibble], 0, 88)); av_clip 417 libavcodec/adpcmenc.c av_clip((step * ff_adpcm_yamaha_indexscale[nibble]) >> 8, av_clip 522 libavcodec/alacenc.c s->compression_level = av_clip(avctx->compression_level, 0, 2); av_clip 682 libavcodec/alsdec.c int opt_order_length = av_ceil_log2(av_clip((bd->block_length >> 3) - 1, av_clip 792 libavcodec/alsdec.c unsigned int b = av_clip((av_ceil_log2(bd->block_length) - 3) >> 1, 0, 5); av_clip 1184 libavcodec/alsdec.c int idx = av_clip(decode_rice(gb, k) + off, av_clip 386 libavcodec/amrnbdec.c *lag_int += av_clip(prev_lag_int - 5, PITCH_LAG_MIN_MODE_12k2, av_clip 275 libavcodec/amrwbdec.c *base_lag_int = av_clip(*lag_int - 8 - (*lag_frac < 0), av_clip 304 libavcodec/amrwbdec.c *base_lag_int = av_clip(*lag_int - 8 - (*lag_frac < 0), av_clip 206 libavcodec/ansi.c s->y = s->nb_args > 0 ? av_clip((s->args[0] - 1)*s->font_height, 0, avctx->height - s->font_height) : 0; av_clip 207 libavcodec/ansi.c s->x = s->nb_args > 1 ? av_clip((s->args[1] - 1)*FONT_WIDTH, 0, avctx->width - FONT_WIDTH) : 0; av_clip 249 libavcodec/ansi.c s->x = av_clip(s->x, 0, width - FONT_WIDTH); av_clip 250 libavcodec/ansi.c s->y = av_clip(s->y, 0, height - s->font_height); av_clip 339 libavcodec/ansi.c s->x = av_clip(s->sx, 0, avctx->width - FONT_WIDTH); av_clip 340 libavcodec/ansi.c s->y = av_clip(s->sy, 0, avctx->height - s->font_height); av_clip 346 libavcodec/ansi.c s->x = av_clip(s->x, 0, avctx->width - FONT_WIDTH); av_clip 347 libavcodec/ansi.c s->y = av_clip(s->y, 0, avctx->height - s->font_height); av_clip 94 libavcodec/audiodsp.c *dst++ = av_clip(*src++, min, max); av_clip 95 libavcodec/audiodsp.c *dst++ = av_clip(*src++, min, max); av_clip 96 libavcodec/audiodsp.c *dst++ = av_clip(*src++, min, max); av_clip 97 libavcodec/audiodsp.c *dst++ = av_clip(*src++, min, max); av_clip 98 libavcodec/audiodsp.c *dst++ = av_clip(*src++, min, max); av_clip 99 libavcodec/audiodsp.c *dst++ = av_clip(*src++, min, max); av_clip 100 libavcodec/audiodsp.c *dst++ = av_clip(*src++, min, max); av_clip 101 libavcodec/audiodsp.c *dst++ = av_clip(*src++, min, max); av_clip 448 libavcodec/bgmc.c unsigned int i = av_clip(delta, 0, LUT_BUFF - 1); av_clip 212 libavcodec/bytestream.h offset = av_clip(offset, -(g->buffer - g->buffer_start), av_clip 217 libavcodec/bytestream.h offset = av_clip(offset, -(g->buffer_end - g->buffer_start), 0); av_clip 221 libavcodec/bytestream.h offset = av_clip(offset, 0, g->buffer_end - g->buffer_start); av_clip 239 libavcodec/bytestream.h offset = av_clip(offset, -(p->buffer - p->buffer_start), av_clip 246 libavcodec/bytestream.h offset = av_clip(offset, -(p->buffer_end - p->buffer_start), 0); av_clip 252 libavcodec/bytestream.h offset = av_clip(offset, 0, p->buffer_end - p->buffer_start); av_clip 70 libavcodec/cavsdsp.c int delta = av_clip(((q0-p0)*3+P1-Q1+4)>>3,-tc, tc); av_clip 74 libavcodec/cavsdsp.c delta = av_clip(((P0-P1)*3+P2-Q0+4)>>3, -tc, tc); av_clip 78 libavcodec/cavsdsp.c delta = av_clip(((Q1-Q0)*3+P0-Q2+4)>>3, -tc, tc); av_clip 105 libavcodec/cavsdsp.c int delta = av_clip(((Q0-P0)*3+P1-Q1+4)>>3, -tc, tc); av_clip 407 libavcodec/dcadec.c value = av_clip(value, 0, (1 << log2range) - 1); av_clip 210 libavcodec/dct-test.c block1[i] = av_clip(block1[i], 4-512, 1019-512); av_clip 136 libavcodec/dirac_dwt.c v[i] = b[av_clip(x-3+i, 0, w2-1)]; av_clip 142 libavcodec/dirac_dwt.c v[i] = tmp[av_clip(x-4+i, 0, w2-1)]; av_clip 278 libavcodec/dirac_dwt.c b[6] = d->buffer + av_clip(y+5, 0, height-2)*stride; av_clip 279 libavcodec/dirac_dwt.c b[7] = d->buffer + av_clip(y+6, 1, height-1)*stride; av_clip 325 libavcodec/dirac_dwt.c b[8] = d->buffer + av_clip(y+7, 0, height-2)*stride; av_clip 326 libavcodec/dirac_dwt.c b[9] = d->buffer + av_clip(y+8, 1, height-1)*stride; av_clip 365 libavcodec/dirac_dwt.c b[i] = d->buffer + av_clip((y-7 + 2*i), 0, height-2)*stride; av_clip 371 libavcodec/dirac_dwt.c b[i] = d->buffer + av_clip((y-7 + 2*i), 1, height-1)*stride; av_clip 428 libavcodec/dirac_dwt.c cs->b[0] = buffer + av_clip(-5-1, 0, height-2)*stride; av_clip 429 libavcodec/dirac_dwt.c cs->b[1] = buffer + av_clip(-5 , 1, height-1)*stride; av_clip 430 libavcodec/dirac_dwt.c cs->b[2] = buffer + av_clip(-5+1, 0, height-2)*stride; av_clip 431 libavcodec/dirac_dwt.c cs->b[3] = buffer + av_clip(-5+2, 1, height-1)*stride; av_clip 432 libavcodec/dirac_dwt.c cs->b[4] = buffer + av_clip(-5+3, 0, height-2)*stride; av_clip 433 libavcodec/dirac_dwt.c cs->b[5] = buffer + av_clip(-5+4, 1, height-1)*stride; av_clip 439 libavcodec/dirac_dwt.c cs->b[0] = buffer + av_clip(-5-1, 0, height-2)*stride; av_clip 440 libavcodec/dirac_dwt.c cs->b[1] = buffer + av_clip(-5 , 1, height-1)*stride; av_clip 441 libavcodec/dirac_dwt.c cs->b[2] = buffer + av_clip(-5+1, 0, height-2)*stride; av_clip 442 libavcodec/dirac_dwt.c cs->b[3] = buffer + av_clip(-5+2, 1, height-1)*stride; av_clip 443 libavcodec/dirac_dwt.c cs->b[4] = buffer + av_clip(-5+3, 0, height-2)*stride; av_clip 444 libavcodec/dirac_dwt.c cs->b[5] = buffer + av_clip(-5+4, 1, height-1)*stride; av_clip 445 libavcodec/dirac_dwt.c cs->b[6] = buffer + av_clip(-5+5, 0, height-2)*stride; av_clip 446 libavcodec/dirac_dwt.c cs->b[7] = buffer + av_clip(-5+6, 1, height-1)*stride; av_clip 361 libavcodec/eac3dec.c s->surround_mix_level_ltrt = av_clip(get_bits(gbc, 3), 3, 7); av_clip 362 libavcodec/eac3dec.c s->surround_mix_level = av_clip(get_bits(gbc, 3), 3, 7); av_clip 795 libavcodec/error_resilience.c const int start_i = av_clip(startx + starty * s->mb_width, 0, s->mb_num - 1); av_clip 796 libavcodec/error_resilience.c const int end_i = av_clip(endx + endy * s->mb_width, 0, s->mb_num); av_clip 261 libavcodec/escape130.c y[i] = av_clip(y_avg + offset_table[difference_selector] * av_clip 53 libavcodec/fft-internal.h #define FIX15(a) av_clip(SCALE_FLOAT(a, 31), -2147483647, 2147483647) av_clip 62 libavcodec/fft-internal.h #define FIX15(a) av_clip(SCALE_FLOAT(a, 15), -32767, 32767) av_clip 927 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; av_clip 938 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; av_clip 837 libavcodec/flacenc.c order = av_clip(order, min_order - 1, max_order - 1); av_clip 121 libavcodec/g722.c band->pole_mem[1] = av_clip((sg[0] * av_clip(band->pole_mem[0], -8191, 8191) >> 5) + av_clip 125 libavcodec/g722.c band->pole_mem[0] = av_clip(-192 * sg[0] + (band->pole_mem[0] * 255 >> 8), -limit, limit); av_clip 149 libavcodec/g722.c band->log_factor = av_clip((band->log_factor * 127 >> 7) + av_clip 160 libavcodec/g722.c band->log_factor = av_clip((band->log_factor * 127 >> 7) + av_clip 115 libavcodec/g722enc.c int new_trellis = av_clip(avctx->trellis, MIN_TRELLIS, MAX_TRELLIS); av_clip 1134 libavcodec/g723_1.c x = av_clip(x, -10000, 10000); av_clip 225 libavcodec/g726.c c->a[1] = av_clip(c->a[1], -12288, 12288); av_clip 227 libavcodec/g726.c c->a[0] = av_clip(c->a[0], -(15360 - c->a[1]), 15360 - c->a[1]); av_clip 257 libavcodec/g726.c c->yu = av_clip(c->y + c->tbls.W[I] + ((-c->y)>>5), 544, 5120); av_clip 273 libavcodec/g726.c return av_clip(re_signal << 2, -0xffff, 0xffff); av_clip 329 libavcodec/g726.c c->code_size = av_clip(c->code_size, 2, 5); av_clip 497 libavcodec/g729dec.c int pitch_delay_min = av_clip(ctx->pitch_delay_int_prev - 5, av_clip 547 libavcodec/g729dec.c av_clip(ctx->past_gain_pitch[0], SHARP_MIN, SHARP_MAX), av_clip 222 libavcodec/get_bits.h s->index += av_clip(n, -s->index, s->size_in_bits_plus8 - s->index); av_clip 149 libavcodec/gsmdec_template.c lag = av_clip(lag, 40, 120); av_clip 67 libavcodec/h263dsp.c d2 = av_clip((p0 - p3) / 4, -ad1, ad1); av_clip 110 libavcodec/h263dsp.c d2 = av_clip((p0 - p3) / 4, -ad1, ad1); av_clip 1267 libavcodec/h264_cabac.c const int slice_qp = av_clip(h->qscale - 6*(h->sps.bit_depth_luma-8), 0, 51); av_clip 568 libavcodec/h264_ps.c ff_h264_chroma_qp[depth - 8][av_clip(i + index, 0, max_qp)]; av_clip 2410 libavcodec/h264_slice.c const int start_i = av_clip(h->resync_mb_x + h->resync_mb_y * h->mb_width, 0, h->mb_num - 1); av_clip 135 libavcodec/h264dsp_template.c pix[-2*xstride] = p1 + av_clip( (( p2 + ( ( p0 + q0 + 1 ) >> 1 ) ) >> 1) - p1, -tc_orig, tc_orig ); av_clip 140 libavcodec/h264dsp_template.c pix[ xstride] = q1 + av_clip( (( q2 + ( ( p0 + q0 + 1 ) >> 1 ) ) >> 1) - q1, -tc_orig, tc_orig ); av_clip 144 libavcodec/h264dsp_template.c i_delta = av_clip( (((q0 - p0 ) << 2) + (p1 - q1) + 4) >> 3, -tc, tc ); av_clip 255 libavcodec/h264dsp_template.c int delta = av_clip( (((q0 - p0 ) << 2) + (p1 - q1) + 4) >> 3, -tc, tc ); av_clip 182 libavcodec/hevc.c s->sh.chroma_offset_l0[i][j] = av_clip((delta_chroma_offset_l0 - ((128 * s->sh.chroma_weight_l0[i][j]) av_clip 218 libavcodec/hevc.c s->sh.chroma_offset_l1[i][j] = av_clip((delta_chroma_offset_l1 - ((128 * s->sh.chroma_weight_l1[i][j]) av_clip 542 libavcodec/hevc_cabac.c int pre = 2 * (((m * av_clip(s->sh.slice_qp, 0, 51)) >> 4) + n) - 127; av_clip 1133 libavcodec/hevc_cabac.c qp_i = av_clip(qp_y + offset, - s->sps->qp_bd_offset, 57); av_clip 63 libavcodec/hevc_filter.c qp_i = av_clip(qp_y + offset, 0, 57); av_clip 72 libavcodec/hevc_filter.c qp = av_clip(qp_i, 0, 51); av_clip 75 libavcodec/hevc_filter.c idxt = av_clip(qp + DEFAULT_INTRA_TC_OFFSET + tc_offset, 0, 53); av_clip 473 libavcodec/hevc_filter.c tctable[av_clip((qp) + DEFAULT_INTRA_TC_OFFSET * ((bs) - 1) + \ av_clip 528 libavcodec/hevc_filter.c beta = betatable[av_clip(qp + beta_offset, 0, MAX_QP)]; av_clip 561 libavcodec/hevc_filter.c beta = betatable[av_clip(qp + beta_offset, 0, MAX_QP)]; av_clip 1566 libavcodec/hevcdsp_template.c P0 = p0 + av_clip(((p2 + 2 * p1 + 2 * p0 + 2 * q0 + q1 + 4) >> 3) - p0, -tc2, tc2); av_clip 1567 libavcodec/hevcdsp_template.c P1 = p1 + av_clip(((p2 + p1 + p0 + q0 + 2) >> 2) - p1, -tc2, tc2); av_clip 1568 libavcodec/hevcdsp_template.c P2 = p2 + av_clip(((2 * p3 + 3 * p2 + p1 + p0 + q0 + 4) >> 3) - p2, -tc2, tc2); av_clip 1571 libavcodec/hevcdsp_template.c Q0 = q0 + av_clip(((p1 + 2 * p0 + 2 * q0 + 2 * q1 + q2 + 4) >> 3) - q0, -tc2, tc2); av_clip 1572 libavcodec/hevcdsp_template.c Q1 = q1 + av_clip(((p0 + q0 + q1 + q2 + 2) >> 2) - q1, -tc2, tc2); av_clip 1573 libavcodec/hevcdsp_template.c Q2 = q2 + av_clip(((2 * q3 + 3 * q2 + q1 + q0 + p0 + 4) >> 3) - q2, -tc2, tc2); av_clip 1595 libavcodec/hevcdsp_template.c delta0 = av_clip(delta0, -tc, tc); av_clip 1601 libavcodec/hevcdsp_template.c const int deltap1 = av_clip((((p2 + p0 + 1) >> 1) - p1 + delta0) >> 1, -tc_2, tc_2); av_clip 1605 libavcodec/hevcdsp_template.c const int deltaq1 = av_clip((((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1, -tc_2, tc_2); av_clip 1640 libavcodec/hevcdsp_template.c delta0 = av_clip((((q0 - p0) * 4) + p1 - q1 + 4) >> 3, -tc, tc); av_clip 185 libavcodec/hqx.c int v = av_clip(block[j + i * 8] + 0x800, 0, 0x1000); av_clip 113 libavcodec/ituh263enc.c div= av_clip(div, 1, 127); av_clip 651 libavcodec/ivi_common.c quant = av_clip(quant, 0, 23); av_clip 1268 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); av_clip 1277 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); av_clip 1311 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); av_clip 1321 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); av_clip 309 libavcodec/jpeglsdec.c pred = av_clip(pred - state->C[context], 0, state->maxval); av_clip 312 libavcodec/jpeglsdec.c pred = av_clip(pred + state->C[context], 0, state->maxval); av_clip 324 libavcodec/jpeglsdec.c pred = av_clip(pred, 0, state->maxval); av_clip 378 libavcodec/jpeglsdec.c off = av_clip(s->cur_scan - 1, 0, stride - 1); av_clip 174 libavcodec/jpeglsenc.c Ra = av_clip(pred + err * state->twonear, 0, state->maxval); av_clip 176 libavcodec/jpeglsenc.c Ra = av_clip(pred - err * state->twonear, 0, state->maxval); av_clip 200 libavcodec/jpeglsenc.c pred = av_clip(pred - state->C[context], 0, state->maxval); av_clip 204 libavcodec/jpeglsenc.c pred = av_clip(pred + state->C[context], 0, state->maxval); av_clip 214 libavcodec/jpeglsenc.c Ra = av_clip(pred + err * state->twonear, 0, state->maxval); av_clip 216 libavcodec/jpeglsenc.c Ra = av_clip(pred - err * state->twonear, 0, state->maxval); av_clip 59 libavcodec/kmvc.c #define BLK(data, x, y) data[av_clip((x) + (y) * 320, 0, 320 * 200 -1)] av_clip 147 libavcodec/lclenc.c av_clip(avctx->compression_level, 0, 9); av_clip 192 libavcodec/libfdk-aacenc.c mode = av_clip(mode, 1, 5); av_clip 228 libavcodec/libspeexenc.c complexity = av_clip(avctx->compression_level, 0, 10); av_clip 75 libavcodec/libwebpenc.c avctx->compression_level = av_clip(avctx->compression_level, 0, 6); av_clip 488 libavcodec/libx264.c x4->params.i_frame_reference = av_clip(x264_levels[i].dpb / mbn / scale, 1, x4->params.i_frame_reference); av_clip 132 libavcodec/lpc.c lpc_out[i] = av_clip(lrintf(error), -qmax, qmax); av_clip 283 libavcodec/mimic.c const int qscale = av_clip(10000 - quality, is_chroma ? 1000 : 2000, av_clip 2291 libavcodec/mips/aaccoder_mips.c minscaler = av_clip(minscaler, 60, 255 - SCALE_MAX_DIFF); av_clip 2301 libavcodec/mips/aaccoder_mips.c sce->sf_idx[w*16+g] = av_clip(sce->sf_idx[w*16+g], minscaler, minscaler + SCALE_MAX_DIFF); av_clip 1478 libavcodec/motion_est.c P_LEFT[0] = av_clip(mv_table[mot_xy - 1][0], xmin<<shift, xmax<<shift); av_clip 1479 libavcodec/motion_est.c P_LEFT[1] = av_clip(mv_table[mot_xy - 1][1], ymin<<shift, ymax<<shift); av_clip 1483 libavcodec/motion_est.c P_TOP[0] = av_clip(mv_table[mot_xy - mot_stride ][0], xmin<<shift, xmax<<shift); av_clip 1484 libavcodec/motion_est.c P_TOP[1] = av_clip(mv_table[mot_xy - mot_stride ][1], ymin<<shift, ymax<<shift); av_clip 1485 libavcodec/motion_est.c P_TOPRIGHT[0] = av_clip(mv_table[mot_xy - mot_stride + 1 ][0], xmin<<shift, xmax<<shift); av_clip 1486 libavcodec/motion_est.c P_TOPRIGHT[1] = av_clip(mv_table[mot_xy - mot_stride + 1 ][1], ymin<<shift, ymax<<shift); av_clip 1397 libavcodec/mpegaudiodec_template.c int extrasize = av_clip(get_bits_left(&s->gb) >> 3, 0, EXTRABYTES); av_clip 2045 libavcodec/mpegvideo.c sx = av_clip(sx, 0, w - 1); av_clip 2046 libavcodec/mpegvideo.c sy = av_clip(sy, 0, h - 1); av_clip 2047 libavcodec/mpegvideo.c ex = av_clip(ex, 0, w - 1); av_clip 2048 libavcodec/mpegvideo.c ey = av_clip(ey, 0, h - 1); av_clip 2103 libavcodec/mpegvideo.c sx = av_clip(sx, -100, w + 100); av_clip 2104 libavcodec/mpegvideo.c sy = av_clip(sy, -100, h + 100); av_clip 2105 libavcodec/mpegvideo.c ex = av_clip(ex, -100, w + 100); av_clip 2106 libavcodec/mpegvideo.c ey = av_clip(ey, -100, h + 100); av_clip 164 libavcodec/mpegvideo_enc.c s->qscale = av_clip(s->qscale, s->avctx->qmin, s->avctx->qmax); av_clip 194 libavcodec/mpegvideo_enc.c qscale_table[s->mb_index2xy[i]] = av_clip(qp, s->avctx->qmin, av_clip 2075 libavcodec/mpegvideo_enc.c s->dquant = av_clip(s->dquant, -2, 2); av_clip 52 libavcodec/mpegvideo_motion.c src_x = av_clip(src_x, -16, s->width); av_clip 55 libavcodec/mpegvideo_motion.c src_y = av_clip(src_y, -16, s->height); av_clip 99 libavcodec/mpegvideo_motion.c src_x = av_clip(src_x, -8, s->width >> 1); av_clip 102 libavcodec/mpegvideo_motion.c src_y = av_clip(src_y, -8, s->height >> 1); av_clip 205 libavcodec/mpegvideo_motion.c src_x = av_clip(src_x, -16, s->width); // FIXME unneeded for emu? av_clip 208 libavcodec/mpegvideo_motion.c src_y = av_clip(src_y, -16, s->height); av_clip 614 libavcodec/mpegvideo_motion.c src_x = av_clip(src_x, -8, (s->width >> 1)); av_clip 617 libavcodec/mpegvideo_motion.c src_y = av_clip(src_y, -8, (s->height >> 1)); av_clip 773 libavcodec/mpegvideo_motion.c src_x = av_clip(src_x, -16, s->width); av_clip 776 libavcodec/mpegvideo_motion.c src_y = av_clip(src_y, -16, s->height); av_clip 82 libavcodec/mpegvideodsp.c index = src_x + av_clip(src_y, 0, height) * stride; av_clip 90 libavcodec/mpegvideodsp.c index = av_clip(src_x, 0, width) + src_y * stride; av_clip 96 libavcodec/mpegvideodsp.c index = av_clip(src_x, 0, width) + av_clip 97 libavcodec/mpegvideodsp.c av_clip(src_y, 0, height) * stride; av_clip 99 libavcodec/nellymoser.c ret += av_clip(b, 0, NELLY_BIT_CAP); av_clip 210 libavcodec/nellymoser.c bits[i] = av_clip(tmp, 0, NELLY_BIT_CAP); av_clip 202 libavcodec/nellymoserenc.c LUT[av_clip ((lrintf(val) >> 8) + LUT_add, 0, LUT_size - 1)]; \ av_clip 355 libavcodec/nellymoserenc.c quant_lut[av_clip ( av_clip 932 libavcodec/opus_celt.c s->fine_bits[i] = av_clip(fine_bits, 0, max_bits); av_clip 1532 libavcodec/opus_celt.c mbits = av_clip((b - delta) / 2, 0, b); av_clip 1352 libavcodec/opus_silk.c sf[i].pitchlag = av_clip(primarylag + offsets[i], av_clip 356 libavcodec/pngenc.c : av_clip(avctx->compression_level, 0, 9); av_clip 555 libavcodec/pngenc.c s->filter_type = av_clip(avctx->prediction_method, av_clip 521 libavcodec/proresdec2.c qscale = av_clip(buf[1], 1, 224); av_clip 633 libavcodec/proresdec_lgpl.c sf = av_clip(buf[1], 1, 224); av_clip 34 libavcodec/proresdsp.c #define CLIP(x) (av_clip((x), CLIP_MIN, CLIP_MAX)) av_clip 209 libavcodec/qcelpdec.c g1[i] += av_clip((g1[i - 1] + g1[i - 2] + g1[i - 3]) / 3 - 6, 0, 32); av_clip 237 libavcodec/qcelpdec.c av_clip((q->prev_g1[0] + q->prev_g1[1]) / 2 - 5, 0, 54); av_clip 284 libavcodec/ralf.c add_bits = av_clip((code_params / 5 - 3) / 2, 0, 10); av_clip 338 libavcodec/ratecontrol.c rcc->buffer_index += av_clip(left, min_rate, max_rate); av_clip 495 libavcodec/ratecontrol.c qmin = av_clip(qmin, 1, FF_LAMBDA_MAX); av_clip 496 libavcodec/ratecontrol.c qmax = av_clip(qmax, 1, FF_LAMBDA_MAX); av_clip 1044 libavcodec/ratecontrol.c qscale_sum += av_clip(rcc->entry[i].new_qscale / FF_QP2LAMBDA, av_clip 147 libavcodec/resample2.c filter[ph * tap_count + i] = av_clip(lrintf(tab[i] * scale / norm), FELEM_MIN, FELEM_MAX); av_clip 141 libavcodec/rv30.c diff = av_clip(diff, -lim, lim); av_clip 346 libavcodec/rv34.c return type ? &inter_vlcs[rv34_quant_to_vlc_set[1][av_clip(quant, 0, 30)]] av_clip 347 libavcodec/rv34.c : &intra_vlcs[rv34_quant_to_vlc_set[0][av_clip(quant, 0, 30)]]; av_clip 420 libavcodec/rv40dsp.c #define CLIP_SYMM(a, b) av_clip(a, -(b), b) av_clip 522 libavcodec/rv40dsp.c p0 = av_clip(p0, src[-1*step] - lims, src[-1*step] + lims); av_clip 523 libavcodec/rv40dsp.c q0 = av_clip(q0, src[ 0*step] - lims, src[ 0*step] + lims); av_clip 532 libavcodec/rv40dsp.c p1 = av_clip(p1, src[-2*step] - lims, src[-2*step] + lims); av_clip 533 libavcodec/rv40dsp.c q1 = av_clip(q1, src[ 1*step] - lims, src[ 1*step] + lims); av_clip 92 libavcodec/sipr16k.c int pitch_delay_min = av_clip(pitch_lag_prev - 10, av_clip 117 libavcodec/snowdec.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); av_clip 215 libavcodec/snowdec.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); av_clip 1230 libavcodec/snowenc.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); av_clip 1291 libavcodec/snowenc.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); av_clip 1484 libavcodec/snowenc.c const int qlog= av_clip(2*QROOT + b->qlog, 0, QROOT*16); av_clip 815 libavcodec/sonic.c quant = av_clip(quant, 1, 65534); av_clip 356 libavcodec/svq1dec.c mv.x = av_clip(mv.x, -2 * x, 2 * (width - x - 16)); av_clip 357 libavcodec/svq1dec.c mv.y = av_clip(mv.y, -2 * y, 2 * (height - y - 16)); av_clip 426 libavcodec/svq1dec.c mvx = av_clip(mvx, -2 * x, 2 * (width - x - 8)); av_clip 427 libavcodec/svq1dec.c mvy = av_clip(mvy, -2 * y, 2 * (height - y - 8)); av_clip 156 libavcodec/svq1enc.c mean = av_clip(mean, intra ? 0 : -256, 255); av_clip 317 libavcodec/svq3.c mx = av_clip(mx, -16, s->h_edge_pos - width + 15); av_clip 318 libavcodec/svq3.c my = av_clip(my, -16, s->v_edge_pos - height + 15); av_clip 415 libavcodec/svq3.c mx = av_clip(mx, extra_width - 6 * x, h_edge_pos - 6 * x); av_clip 416 libavcodec/svq3.c my = av_clip(my, extra_width - 6 * y, v_edge_pos - 6 * y); av_clip 704 libavcodec/truemotion2.c mx = av_clip(mx, -(bx * 4 + 4), ctx->avctx->width - bx * 4); av_clip 705 libavcodec/truemotion2.c my = av_clip(my, -(by * 4 + 4), ctx->avctx->height - by * 4); av_clip 181 libavcodec/truespeech.c off = av_clip(off, 0, 145); av_clip 260 libavcodec/truespeech.c out[i] = av_clip(sum, -0x7FFE, 0x7FFE); av_clip 290 libavcodec/truespeech.c ptr0[0] = av_clip((sum + 0x800) >> 12, -0x7FFE, 0x7FFE); av_clip 294 libavcodec/truespeech.c out[i] = av_clip((sum + 0x800) >> 12, -0x7FFE, 0x7FFE); av_clip 29 libavcodec/v210enc.c #define CLIP(v) av_clip(v, 4, 1019) av_clip 30 libavcodec/v210enc.c #define CLIP8(v) av_clip(v, 1, 254) av_clip 188 libavcodec/vc1_mc.c src_x = av_clip( src_x, -16, s->mb_width * 16); av_clip 189 libavcodec/vc1_mc.c src_y = av_clip( src_y, -16, s->mb_height * 16); av_clip 190 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8); av_clip 191 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8); av_clip 193 libavcodec/vc1_mc.c src_x = av_clip( src_x, -17, s->avctx->coded_width); av_clip 194 libavcodec/vc1_mc.c src_y = av_clip( src_y, -18, s->avctx->coded_height + 1); av_clip 195 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1); av_clip 196 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1); av_clip 401 libavcodec/vc1_mc.c src_x = av_clip(src_x, -16, s->mb_width * 16); av_clip 402 libavcodec/vc1_mc.c src_y = av_clip(src_y, -16, s->mb_height * 16); av_clip 404 libavcodec/vc1_mc.c src_x = av_clip(src_x, -17, s->avctx->coded_width); av_clip 407 libavcodec/vc1_mc.c src_y = av_clip(src_y, -17, s->avctx->coded_height + 1); av_clip 409 libavcodec/vc1_mc.c src_y = av_clip(src_y, -18, s->avctx->coded_height); av_clip 411 libavcodec/vc1_mc.c src_y = av_clip(src_y, -18, s->avctx->coded_height + 1); av_clip 588 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8); av_clip 589 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8); av_clip 591 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1); av_clip 592 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1); av_clip 705 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1); av_clip 706 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1); av_clip 810 libavcodec/vc1_mc.c src_x = av_clip( src_x, -16, s->mb_width * 16); av_clip 811 libavcodec/vc1_mc.c src_y = av_clip( src_y, -16, s->mb_height * 16); av_clip 812 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8); av_clip 813 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8); av_clip 815 libavcodec/vc1_mc.c src_x = av_clip( src_x, -17, s->avctx->coded_width); av_clip 816 libavcodec/vc1_mc.c src_y = av_clip( src_y, -18, s->avctx->coded_height + 1); av_clip 817 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1); av_clip 818 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1); av_clip 66 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_x, v->range_x - 1); av_clip 101 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_y / 2 + 1, v->range_y / 2); av_clip 103 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_y / 2, v->range_y / 2 - 1); av_clip 130 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_x, v->range_x - 1); av_clip 158 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_y / 2 + 1, v->range_y / 2); av_clip 160 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_y / 2, v->range_y / 2 - 1); av_clip 722 libavcodec/vc1_pred.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 723 libavcodec/vc1_pred.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 724 libavcodec/vc1_pred.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 725 libavcodec/vc1_pred.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 183 libavcodec/vc1dec.c xoff[i] = av_clip(sd->coefs[i][2], 0, v->sprite_width-1 << 16); av_clip 186 libavcodec/vc1dec.c xadv[i] = av_clip(xadv[i], 0, ((v->sprite_width<<16) - xoff[i] - 1) / v->output_width); av_clip 188 libavcodec/vc1dec.c yoff[i] = av_clip(sd->coefs[i][5], 0, v->sprite_height-1 << 16); av_clip 189 libavcodec/vc1dec.c yadv[i] = av_clip(sd->coefs[i][4], 0, ((v->sprite_height << 16) - yoff[i]) / v->output_height); av_clip 171 libavcodec/vima.c step_index = av_clip(step_index, 0, 88); av_clip 188 libavcodec/vima.c predict_index = av_clip(predict_index, 0, 5785); av_clip 397 libavcodec/vp3.c av_clip((qscale * coeff) / 100 * 4, qmin, 4096); av_clip 162 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 170 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 324 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 760 libavcodec/vp8.c dst->x = av_clip(src->x, s->mv_min.x, s->mv_max.x); av_clip 761 libavcodec/vp8.c dst->y = av_clip(src->y, s->mv_min.y, s->mv_max.y); av_clip 952 libavcodec/vp9.c dst->x = av_clip(src->x, s->min_mv.x, s->max_mv.x); av_clip 953 libavcodec/vp9.c dst->y = av_clip(src->y, s->min_mv.y, s->max_mv.y); av_clip 3490 libavcodec/vp9.c p2 = av_clip(p2, 1, 255); av_clip 283 libavcodec/wavpack.c bit = av_clip(bit, s->hybrid_minclip, s->hybrid_maxclip); av_clip 518 libavcodec/wavpackenc.c weight = av_clip(weight, -1024, 1024); av_clip 646 libavcodec/wmalosslessdec.c s->mclms_prevvalues[s->mclms_recent] = av_clip(s->channel_residues[ich][icoef], av_clip 709 libavcodec/wmalosslessdec.c s->cdlms[ich][ilms].lms_prevvalues[recent] = av_clip(input, -range, range - 1); av_clip 482 libavcodec/wmaprodec.c s->subwoofer_cutoffs[i] = av_clip(cutoff, 4, block_size); av_clip 628 libavcodec/wmavoice.c idx = 255 + av_clip(lpcs[64], -255, 255); av_clip 630 libavcodec/wmavoice.c idx = 255 + av_clip(lpcs[64] - 2 * lpcs[63], -255, 255); av_clip 633 libavcodec/wmavoice.c idx = 255 + av_clip(-lpcs[64] - 2 * lpcs[n - 1], -255, 255); av_clip 639 libavcodec/wmavoice.c idx = 255 + av_clip( lpcs[64] - 2 * lpcs[n - 1], -255, 255); av_clip 1366 libavcodec/wmavoice.c len = av_clip((idx_sh16 - next_idx_sh16) / s->pitch_diff_sh16 / 8, av_clip 1532 libavcodec/wmavoice.c last_block_pitch = av_clip(block_pitch, av_clip 116 libavcodec/wmv2.c src_x = av_clip(src_x, -16, s->width); av_clip 117 libavcodec/wmv2.c src_y = av_clip(src_y, -16, s->height); av_clip 156 libavcodec/wmv2.c src_x = av_clip(src_x, -8, s->width >> 1); av_clip 159 libavcodec/wmv2.c src_y = av_clip(src_y, -8, s->height >> 1); av_clip 216 libavfilter/af_asyncts.c int comp = s->comp + av_clip(delta * inlink->sample_rate / delay, av_clip 570 libavfilter/af_replaygain.c level = av_clip(level, 0, HISTOGRAM_SLOTS - 1); av_clip 195 libavfilter/avf_showwaves.c int end = av_clip(h, 0, height-1); av_clip 211 libavfilter/avf_showwaves.c int end = av_clip(h, 0, height-1); av_clip 525 libavfilter/f_ebur128.c ipower = av_clip(HIST_POS(loudness), 0, HIST_SIZE - 1); av_clip 535 libavfilter/f_ebur128.c gate_hist_pos = av_clip(HIST_POS(integ->rel_threshold), 0, HIST_SIZE - 1); av_clip 107 libavfilter/vf_codecview.c sx = av_clip(sx, 0, w - 1); av_clip 108 libavfilter/vf_codecview.c sy = av_clip(sy, 0, h - 1); av_clip 109 libavfilter/vf_codecview.c ex = av_clip(ex, 0, w - 1); av_clip 110 libavfilter/vf_codecview.c ey = av_clip(ey, 0, h - 1); av_clip 165 libavfilter/vf_codecview.c sx = av_clip(sx, -100, w + 100); av_clip 166 libavfilter/vf_codecview.c sy = av_clip(sy, -100, h + 100); av_clip 167 libavfilter/vf_codecview.c ex = av_clip(ex, -100, w + 100); av_clip 168 libavfilter/vf_codecview.c ey = av_clip(ey, -100, h + 100); av_clip 355 libavfilter/vf_deshake.c deshake->blocksize = av_clip(deshake->blocksize, 4, 128); av_clip 129 libavfilter/vf_gradfun.c s->radius = av_clip((s->radius + 1) & ~1, 4, 32); av_clip 178 libavfilter/vf_gradfun.c s->chroma_r = av_clip(((((s->radius >> hsub) + (s->radius >> vsub)) / 2 ) + 1) & ~1, 4, 32); av_clip 329 libavfilter/vf_hue.c hue->saturation = av_clip(hue->saturation, SAT_MIN_VAL, SAT_MAX_VAL); av_clip 245 libavfilter/vf_kerndeint.c dstp[x] = av_clip(valf, lo, hi); av_clip 255 libavfilter/vf_kerndeint.c dstp[x] = av_clip(val, lo, hi); av_clip 147 libavfilter/vf_lut.c return av_clip(val, minval, maxval); av_clip 259 libavfilter/vf_lut.c s->var_values[VAR_CLIPVAL] = av_clip(val, min[color], max[color]); av_clip 261 libavfilter/vf_lut.c av_clip(min[color] + max[color] - s->var_values[VAR_VAL], av_clip 271 libavfilter/vf_lut.c s->lut[comp][val] = av_clip((int)res, min[color], max[color]); av_clip 217 libavfilter/vf_mcdeint.c #define DELTA(j) av_clip(j, -x, w-1-x) av_clip 70 libavfilter/vf_pp.c pp->mode_id = av_clip(strtol(args, NULL, 10), 0, PP_QUALITY_MAX); av_clip 291 libavfilter/vf_rotate.c int int_x = av_clip(x>>16, 0, max_x); av_clip 292 libavfilter/vf_rotate.c int int_y = av_clip(y>>16, 0, max_y); av_clip 426 libavfilter/vf_rotate.c int x2 = av_clip(x1, 0, inw-1); av_clip 427 libavfilter/vf_rotate.c int y2 = av_clip(y1, 0, inh-1); av_clip 448 libavfilter/vf_spp.c spp->log2_count = av_clip(strtol(args, NULL, 10), 0, MAX_LEVEL); av_clip 85 libavfilter/vf_subtitles.c const int ass_level_clip = av_clip(ass_level, 0, av_clip 244 libavfilter/vf_w3fdif.c *out_pixel = av_clip(*work_pixel, 0, 255 * 256 * 256) >> 16; av_clip 68 libavformat/bintext.c bin->chars_per_frame = av_clip(av_q2d(st->time_base) * bin->chars_per_frame, 1, INT_MAX); av_clip 339 libavformat/id3v2enc.c padding_bytes = av_clip(padding_bytes, 10, 268435455 - id3->len); av_clip 310 libavformat/libmodplug.c pkt->data[y*modplug->linesize + x*3 + 2] |= av_clip((int)color, 0, 0xf)<<4; av_clip 2034 libavformat/mxfdec.c time.tm_mon = av_clip(time.tm_mon, 0, 11); av_clip 2035 libavformat/mxfdec.c time.tm_mday = av_clip(time.tm_mday, 1, 31); av_clip 2036 libavformat/mxfdec.c time.tm_hour = av_clip(time.tm_hour, 0, 23); av_clip 2037 libavformat/mxfdec.c time.tm_min = av_clip(time.tm_min, 0, 59); av_clip 2038 libavformat/mxfdec.c time.tm_sec = av_clip(time.tm_sec, 0, 59); av_clip 196 libavformat/rtpdec_jpeg.c factor = av_clip(q, 1, 99); av_clip 207 libavformat/rtpdec_jpeg.c val = av_clip(val, 1, 255); av_clip 90 libavformat/xa.c st->codec->bit_rate = av_clip(15LL * st->codec->channels * 8 * av_clip 223 libavresample/avresample-test.c num_formats = av_clip(num_formats, 1, FF_ARRAY_ELEMS(formats)); av_clip 227 libavresample/avresample-test.c num_rates = av_clip(num_rates, 1, FF_ARRAY_ELEMS(rates)); av_clip 231 libavresample/avresample-test.c num_layouts = av_clip(num_layouts, 1, FF_ARRAY_ELEMS(layouts)); av_clip 442 libavutil/common.h #ifndef av_clip av_clip 179 libavutil/eval.c case e_ld: return e->value * p->var[av_clip(eval_expr(p, e->param[0]), 0, VARS-1)]; av_clip 205 libavutil/eval.c int level = e->param[1] ? av_clip(eval_expr(p, e->param[1]), INT_MIN, INT_MAX) : AV_LOG_INFO; av_clip 210 libavutil/eval.c int idx= av_clip(eval_expr(p, e->param[0]), 0, VARS-1); av_clip 225 libavutil/eval.c int id = e->param[2] ? av_clip(eval_expr(p, e->param[2]), 0, VARS-1) : 0; av_clip 300 libavutil/eval.c case e_st : return e->value * (p->var[av_clip(d, 0, VARS-1)]= d2); av_clip 331 libavutil/log.c colored_fputs(av_clip(level >> 3, 0, 6), tint >> 8, part[2].str); av_clip 333 libavutil/log.c colored_fputs(av_clip(level >> 3, 0, 6), tint >> 8, part[3].str); av_clip 117 libswresample/resample.c ((int16_t*)filter)[ph * alloc + i] = av_clip(lrintf(tab[i] * scale / norm), INT16_MIN, INT16_MAX); av_clip 1538 libswscale/output.c r = av_clip(r, 0, isrgb8 ? 7 : 1); av_clip 1539 libswscale/output.c g = av_clip(g, 0, isrgb8 ? 7 : 3); av_clip 1540 libswscale/output.c b = av_clip(b, 0, isrgb8 ? 3 : 1);