av_clip 1467 fftools/ffmpeg.c int extra_bits = av_clip(29 - av_log2(tb.den), 0, 16); av_clip 1004 fftools/ffplay.c sub_rect->x = av_clip(sub_rect->x, 0, sp->width ); av_clip 1005 fftools/ffplay.c sub_rect->y = av_clip(sub_rect->y, 0, sp->height); av_clip 1006 fftools/ffplay.c sub_rect->w = av_clip(sub_rect->w, 0, sp->width - sub_rect->x); av_clip 1007 fftools/ffplay.c sub_rect->h = av_clip(sub_rect->h, 0, sp->height - sub_rect->y); av_clip 1518 fftools/ffplay.c is->audio_volume = av_clip(is->audio_volume == new_volume ? (is->audio_volume + sign) : new_volume, 0, SDL_MIX_MAXVOLUME); av_clip 2321 fftools/ffplay.c wanted_nb_samples = av_clip(wanted_nb_samples, min_nb_samples, max_nb_samples); av_clip 3119 fftools/ffplay.c startup_volume = av_clip(startup_volume, 0, 100); av_clip 3120 fftools/ffplay.c startup_volume = av_clip(SDL_MIX_MAXVOLUME * startup_volume / 100, 0, SDL_MIX_MAXVOLUME); av_clip 397 fftools/ffprobe.c index = av_clip(index, 0, FF_ARRAY_ELEMS(si_prefixes) - 1); av_clip 402 fftools/ffprobe.c index = av_clip(index, 0, FF_ARRAY_ELEMS(si_prefixes) - 1); av_clip 207 libavcodec/aaccoder.c sce->sf_idx[w*16+g] = av_clip(roundf(log2f(sce->is_ener[w*16+g])*2), -155, 100); av_clip 210 libavcodec/aaccoder.c sce->sf_idx[w*16+g] = av_clip(3+ceilf(log2f(sce->pns_ener[w*16+g])*2), -100, 155); av_clip 227 libavcodec/aaccoder.c sce->sf_idx[w*16+g] = prevscaler_i = av_clip(sce->sf_idx[w*16+g], prevscaler_i - SCALE_MAX_DIFF, prevscaler_i + SCALE_MAX_DIFF); av_clip 229 libavcodec/aaccoder.c sce->sf_idx[w*16+g] = prevscaler_n = av_clip(sce->sf_idx[w*16+g], prevscaler_n - SCALE_MAX_DIFF, prevscaler_n + SCALE_MAX_DIFF); av_clip 266 libavcodec/aaccoder.c q0 = av_clip(coef2minsf(q0f), 0, SCALE_MAX_POS-1); av_clip 268 libavcodec/aaccoder.c q1 = av_clip(coef2maxsf(q1f), 1, SCALE_MAX_POS); av_clip 287 libavcodec/aaccoder.c q1 = av_clip(q0+1, 1, SCALE_MAX_POS); av_clip 288 libavcodec/aaccoder.c q0 = av_clip(q1-1, 0, SCALE_MAX_POS - 1); av_clip 336 libavcodec/aaccoder.c minscale = av_clip(minscale - q0, 0, TRELLIS_STATES - 1); av_clip 337 libavcodec/aaccoder.c maxscale = av_clip(maxscale - q0, 0, TRELLIS_STATES); av_clip 339 libavcodec/aaccoder.c maxscale = av_clip(minscale+1, 1, TRELLIS_STATES); av_clip 340 libavcodec/aaccoder.c minscale = av_clip(maxscale-1, 0, TRELLIS_STATES - 1); av_clip 521 libavcodec/aaccoder.c minscaler = av_clip(minscaler, 60, 255 - SCALE_MAX_DIFF); av_clip 532 libavcodec/aaccoder.c sce->sf_idx[w*16+g] = av_clip(sce->sf_idx[w*16+g], minscaler, minscaler + SCALE_MAX_DIFF); av_clip 632 libavcodec/aaccoder.c noise_sfi = av_clip(roundf(log2f(pns_tgt_energy)*2), -100, 155); /* Quantize */ av_clip 809 libavcodec/aaccoder.c mididx = av_clip(minidx, 0, SCALE_MAX_POS - SCALE_DIV_512); av_clip 810 libavcodec/aaccoder.c sididx = av_clip(minidx - sid_sf_boost * 3, 0, SCALE_MAX_POS - SCALE_DIV_512); av_clip 56 libavcodec/aaccoder_twoloop.h #define sclip(x) av_clip(x,60,218) av_clip 276 libavcodec/aaccoder_twoloop.h sce->sf_idx[w*16+g] = av_clip( av_clip 286 libavcodec/aaccoder_twoloop.h minscaler = av_clip(minscaler, SCALE_ONE_POS - SCALE_DIV_512, SCALE_MAX_POS - SCALE_DIV_512); av_clip 290 libavcodec/aaccoder_twoloop.h sce->sf_idx[w*16+g] = av_clip(sce->sf_idx[w*16+g], minscaler, minscaler + SCALE_MAX_DIFF - 1); av_clip 412 libavcodec/aaccoder_twoloop.h int sfdiff = av_clip(sce->sf_idx[w*16+g] - prev + SCALE_DIFF_ZERO, 0, 2*SCALE_MAX_DIFF); av_clip 493 libavcodec/aaccoder_twoloop.h int sfdiff = av_clip(sce->sf_idx[w*16+g] - prev + SCALE_DIFF_ZERO, 0, 2*SCALE_MAX_DIFF); av_clip 587 libavcodec/aaccoder_twoloop.h minscaler = nminscaler = av_clip(minscaler, SCALE_ONE_POS - SCALE_DIV_512, SCALE_MAX_POS - SCALE_DIV_512); av_clip 697 libavcodec/aaccoder_twoloop.h prev = sce->sf_idx[w*16+g] = av_clip(sce->sf_idx[w*16+g], mindeltasf, maxdeltasf); av_clip 715 libavcodec/aaccoder_twoloop.h sce->sf_idx[w*16+g] = av_clip(sce->sf_idx[w*16+g], prev - SCALE_MAX_DIFF, prev + SCALE_MAX_DIFF); av_clip 1499 libavcodec/aacdec_template.c clipped_offset = av_clip(offset[2], -155, 100); av_clip 1518 libavcodec/aacdec_template.c clipped_offset = av_clip(offset[1], -100, 155); av_clip 284 libavcodec/aacenc_pred.c cb_p = av_clip(find_min_book(find_max_val(1, num_coeffs, S34), sce->sf_idx[sfb]), cb_min, cb_max); av_clip 296 libavcodec/aacenc_pred.c cb_p = av_clip(find_min_book(find_max_val(1, num_coeffs, P34), sce->sf_idx[sfb]), cb_min, cb_max); av_clip 169 libavcodec/aacenc_tns.c const int sfb_start = av_clip(tns_min_sfb[is8][s->samplerate_index], 0, mmm); av_clip 170 libavcodec/aacenc_tns.c const int sfb_end = av_clip(sce->ics.num_swb, 0, mmm); av_clip 503 libavcodec/aacpsy.c ctx->fill_level = av_clip(ctx->fill_level, 0, size); av_clip 273 libavcodec/ac3dec.c s->surround_mix_level_ltrt = av_clip(get_bits(gbc, 3), 3, 7); av_clip 275 libavcodec/ac3dec.c s->surround_mix_level = av_clip(get_bits(gbc, 3), 3, 7); av_clip 2261 libavcodec/ac3enc.c s->bandwidth_code = av_clip((fbw_coeffs - 73) / 3, 0, 60); av_clip 2299 libavcodec/ac3enc.c cpl_start_band = av_clip(cpl_start, 0, FFMIN(cpl_end_band-1, 15)); av_clip 298 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 167 libavcodec/adpcm.c c->status[0].step_index = av_clip(AV_RL32(avctx->extradata + 4), 0, 88); av_clip 169 libavcodec/adpcm.c c->status[1].step_index = av_clip(AV_RL32(avctx->extradata + 12), 0, 88); av_clip 235 libavcodec/adpcm.c pred = av_clip(pred + (add >> 3), -32767, 32767); av_clip 237 libavcodec/adpcm.c pred = av_clip(pred - (add >> 3), -32767, 32767); av_clip 244 libavcodec/adpcm.c c->step = av_clip(c->step * 2, 127, 24576); av_clip 262 libavcodec/adpcm.c c->step = av_clip(c->step, 127, 24576); av_clip 275 libavcodec/adpcm.c step_index = av_clip(step_index, 0, 88); av_clip 301 libavcodec/adpcm.c step_index = av_clip(step_index, 0, 88); av_clip 327 libavcodec/adpcm.c c->step_index = av_clip(step_index, 0, 88); av_clip 342 libavcodec/adpcm.c step_index = av_clip(step_index, 0, 60); av_clip 360 libavcodec/adpcm.c step_index = av_clip(step_index, 0, 88); av_clip 383 libavcodec/adpcm.c step_index = av_clip(step_index, 0, 88); av_clip 426 libavcodec/adpcm.c step_index = av_clip(step_index, 0, 48); av_clip 457 libavcodec/adpcm.c c->step = av_clip(new_step, 511, 32767); av_clip 471 libavcodec/adpcm.c c->predictor = av_clip(c->predictor + (sign ? -diff : diff), -16384,16256); av_clip 492 libavcodec/adpcm.c c->step = av_clip(c->step, 127, 24576); av_clip 532 libavcodec/adpcm.c index = av_clip(index, 0, 88); av_clip 676 libavcodec/adpcm.c c->status[i].step_index = av_clip(c->status[i].step_index, 0, 88); av_clip 186 libavcodec/adpcmenc.c c->step_index = av_clip(c->step_index + ff_adpcm_index_table[nibble], 0, 88); av_clip 222 libavcodec/adpcmenc.c c->step_index = av_clip(c->step_index + ff_adpcm_index_table[nibble], 0, 88); av_clip 273 libavcodec/adpcmenc.c c->step = av_clip(c->step, 127, 24576); av_clip 334 libavcodec/adpcmenc.c const int nmin = av_clip(div-range, -8, 6); av_clip 335 libavcodec/adpcmenc.c const int nmax = av_clip(div+range, -7, 7); av_clip 412 libavcodec/adpcmenc.c int nmin = av_clip(div - range, -7, 6);\ av_clip 413 libavcodec/adpcmenc.c int nmax = av_clip(div + range, -6, 7);\ av_clip 426 libavcodec/adpcmenc.c av_clip(step + ff_adpcm_index_table[nibble], 0, 88)); av_clip 429 libavcodec/adpcmenc.c av_clip((step * ff_adpcm_yamaha_indexscale[nibble]) >> 8, av_clip 527 libavcodec/alacenc.c s->compression_level = av_clip(avctx->compression_level, 0, 2); av_clip 702 libavcodec/alsdec.c int opt_order_length = av_ceil_log2(av_clip((bd->block_length >> 3) - 1, av_clip 818 libavcodec/alsdec.c unsigned int b = av_clip((av_ceil_log2(bd->block_length) - 3) >> 1, 0, 5); av_clip 1216 libavcodec/alsdec.c int idx = av_clip(decode_rice(gb, k) + off, av_clip 1434 libavcodec/alsdec.c return_val |= ((unsigned)av_clip(a.exp + b.exp + bit_count - 47, -126, 127) << 23) & 0x7F800000; av_clip 386 libavcodec/amrnbdec.c *lag_int += av_clip(prev_lag_int - 5, PITCH_LAG_MIN_MODE_12k2, av_clip 272 libavcodec/amrwbdec.c *base_lag_int = av_clip(*lag_int - 8 - (*lag_frac < 0), av_clip 301 libavcodec/amrwbdec.c *base_lag_int = av_clip(*lag_int - 8 - (*lag_frac < 0), av_clip 211 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 212 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 254 libavcodec/ansi.c s->x = av_clip(s->x, 0, width - FONT_WIDTH); av_clip 255 libavcodec/ansi.c s->y = av_clip(s->y, 0, height - s->font_height); av_clip 344 libavcodec/ansi.c s->x = av_clip(s->sx, 0, avctx->width - FONT_WIDTH); av_clip 345 libavcodec/ansi.c s->y = av_clip(s->sy, 0, avctx->height - s->font_height); av_clip 351 libavcodec/ansi.c s->x = av_clip(s->x, 0, avctx->width - FONT_WIDTH); av_clip 352 libavcodec/ansi.c s->y = av_clip(s->y, 0, avctx->height - s->font_height); av_clip 416 libavcodec/aptx.c invert_quantize->factor_select = av_clip(factor_select, 0, tables->factor_max); av_clip 481 libavcodec/aptx.c sw1 = (av_clip(sw1, -range, range) & ~0xF) * 16; av_clip 485 libavcodec/aptx.c prediction->s_weight[0] = av_clip(rshift32(weight[0], 8), -range, range); av_clip 489 libavcodec/aptx.c prediction->s_weight[1] = av_clip(rshift32(weight[1], 8), -range, range); 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 329 libavcodec/audiotoolboxenc.c q = av_clip(q, 0, 14); av_clip 448 libavcodec/bgmc.c unsigned int i = av_clip(delta, 0, LUT_BUFF - 1); av_clip 214 libavcodec/bytestream.h offset = av_clip(offset, -(g->buffer - g->buffer_start), av_clip 219 libavcodec/bytestream.h offset = av_clip(offset, -(g->buffer_end - g->buffer_start), 0); av_clip 223 libavcodec/bytestream.h offset = av_clip(offset, 0, g->buffer_end - g->buffer_start); av_clip 241 libavcodec/bytestream.h offset = av_clip(offset, -(p->buffer - p->buffer_start), av_clip 248 libavcodec/bytestream.h offset = av_clip(offset, -(p->buffer_end - p->buffer_start), 0); av_clip 254 libavcodec/bytestream.h offset = av_clip(offset, 0, p->buffer_end - p->buffer_start); av_clip 72 libavcodec/cavsdsp.c int delta = av_clip(((q0-p0)*3+P1-Q1+4)>>3,-tc, tc); av_clip 76 libavcodec/cavsdsp.c delta = av_clip(((P0-P1)*3+P2-Q0+4)>>3, -tc, tc); av_clip 80 libavcodec/cavsdsp.c delta = av_clip(((Q1-Q0)*3+P0-Q2+4)>>3, -tc, tc); av_clip 109 libavcodec/cavsdsp.c int delta = av_clip(((Q0-P0)*3+P1-Q1+4)>>3, -tc, tc); av_clip 188 libavcodec/dca_lbr.c step_i = av_clip(step_i, 0, step_max); av_clip 238 libavcodec/dca_lbr.c step_i = av_clip(step_i, 0, step_max); av_clip 667 libavcodec/dds.c ctx->slice_count = av_clip(avctx->thread_count, 1, av_clip 164 libavcodec/dirac_dwt_template.c v[i] = b[av_clip(x-3+i, 0, w2-1)]; av_clip 170 libavcodec/dirac_dwt_template.c v[i] = tmp[av_clip(x-4+i, 0, w2-1)]; av_clip 349 libavcodec/dirac_dwt_template.c b[6] = d->buffer + av_clip(y+5, 0, height-2)*stride; av_clip 350 libavcodec/dirac_dwt_template.c b[7] = d->buffer + av_clip(y+6, 1, height-1)*stride; av_clip 395 libavcodec/dirac_dwt_template.c b[8] = d->buffer + av_clip(y+7, 0, height-2)*stride; av_clip 396 libavcodec/dirac_dwt_template.c b[9] = d->buffer + av_clip(y+8, 1, height-1)*stride; av_clip 435 libavcodec/dirac_dwt_template.c b[i] = d->buffer + av_clip((y-7 + 2*i), 0, height-2)*stride; av_clip 441 libavcodec/dirac_dwt_template.c b[i] = d->buffer + av_clip((y-7 + 2*i), 1, height-1)*stride; av_clip 497 libavcodec/dirac_dwt_template.c cs->b[0] = buffer + av_clip(-5-1, 0, height-2)*stride; av_clip 498 libavcodec/dirac_dwt_template.c cs->b[1] = buffer + av_clip(-5 , 1, height-1)*stride; av_clip 499 libavcodec/dirac_dwt_template.c cs->b[2] = buffer + av_clip(-5+1, 0, height-2)*stride; av_clip 500 libavcodec/dirac_dwt_template.c cs->b[3] = buffer + av_clip(-5+2, 1, height-1)*stride; av_clip 501 libavcodec/dirac_dwt_template.c cs->b[4] = buffer + av_clip(-5+3, 0, height-2)*stride; av_clip 502 libavcodec/dirac_dwt_template.c cs->b[5] = buffer + av_clip(-5+4, 1, height-1)*stride; av_clip 508 libavcodec/dirac_dwt_template.c cs->b[0] = buffer + av_clip(-5-1, 0, height-2)*stride; av_clip 509 libavcodec/dirac_dwt_template.c cs->b[1] = buffer + av_clip(-5 , 1, height-1)*stride; av_clip 510 libavcodec/dirac_dwt_template.c cs->b[2] = buffer + av_clip(-5+1, 0, height-2)*stride; av_clip 511 libavcodec/dirac_dwt_template.c cs->b[3] = buffer + av_clip(-5+2, 1, height-1)*stride; av_clip 512 libavcodec/dirac_dwt_template.c cs->b[4] = buffer + av_clip(-5+3, 0, height-2)*stride; av_clip 513 libavcodec/dirac_dwt_template.c cs->b[5] = buffer + av_clip(-5+4, 1, height-1)*stride; av_clip 514 libavcodec/dirac_dwt_template.c cs->b[6] = buffer + av_clip(-5+5, 0, height-2)*stride; av_clip 515 libavcodec/dirac_dwt_template.c cs->b[7] = buffer + av_clip(-5+6, 1, height-1)*stride; av_clip 225 libavcodec/dstdec.c int total = av_clip(length - j * 8, 0, 8); av_clip 1150 libavcodec/dxv.c ctx->slice_count = av_clip(avctx->thread_count, 1, av_clip 373 libavcodec/eac3dec.c s->surround_mix_level_ltrt = av_clip(get_bits(gbc, 3), 3, 7); av_clip 374 libavcodec/eac3dec.c s->surround_mix_level = av_clip(get_bits(gbc, 3), 3, 7); av_clip 110 libavcodec/error_resilience.c dc = (av_clip(dc, INT_MIN/10923, INT_MAX/10923 - 32768) * 10923 + 32768) >> 16; av_clip 126 libavcodec/error_resilience.c dc = (av_clip(dc, INT_MIN/10923, INT_MAX/10923 - 32768) * 10923 + 32768) >> 16; av_clip 833 libavcodec/error_resilience.c const int start_i = av_clip(startx + starty * s->mb_width, 0, s->mb_num - 1); av_clip 834 libavcodec/error_resilience.c const int end_i = av_clip(endx + endy * s->mb_width, 0, s->mb_num); av_clip 262 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 854 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; av_clip 865 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; av_clip 902 libavcodec/flacenc.c order = av_clip(order, min_order - 1, max_order - 1); av_clip 981 libavcodec/flacenc.c lpc_try[i] = av_clip(coefs[opt_order - 1][i] + diff, -qmax, qmax); 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 110 libavcodec/g722enc.c int new_trellis = av_clip(avctx->trellis, MIN_TRELLIS, MAX_TRELLIS); av_clip 837 libavcodec/g723_1dec.c x = av_clip(x, -10000, 10000); av_clip 224 libavcodec/g726.c c->a[1] = av_clip(c->a[1], -12288, 12288); av_clip 226 libavcodec/g726.c c->a[0] = av_clip(c->a[0], -(15360 - c->a[1]), 15360 - c->a[1]); av_clip 256 libavcodec/g726.c c->yu = av_clip(c->y + c->tbls.W[I] + ((-c->y)>>5), 544, 5120); av_clip 272 libavcodec/g726.c return av_clip(re_signal * 4, -0xffff, 0xffff); av_clip 334 libavcodec/g726.c c->code_size = av_clip(c->code_size, 2, 5); av_clip 518 libavcodec/g729dec.c int pitch_delay_min = av_clip(ctx->pitch_delay_int_prev - 5, av_clip 570 libavcodec/g729dec.c av_clip(ctx->past_gain_pitch[0], SHARP_MIN, SHARP_MAX), av_clip 299 libavcodec/get_bits.h s->index += av_clip(n, -s->index, s->size_in_bits_plus8 - s->index); av_clip 142 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 1266 libavcodec/h264_cabac.c const int slice_qp = av_clip(sl->qscale - 6*(h->ps.sps->bit_depth_luma-8), 0, 51); av_clip 723 libavcodec/h264_ps.c ff_h264_chroma_qp[depth - 8][av_clip(i + index, 0, max_qp)]; av_clip 2599 libavcodec/h264_slice.c const int start_i = av_clip(sl->resync_mb_x + sl->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 ) * 4) + (p1 - q1) + 4) >> 3, -tc, tc ); av_clip 255 libavcodec/h264dsp_template.c int delta = av_clip( ((q0 - p0) * 4 + (p1 - q1) + 4) >> 3, -tc, tc ); av_clip 464 libavcodec/hapdec.c ctx->slice_count = av_clip(avctx->thread_count, 1, av_clip 296 libavcodec/hapenc.c corrected_chunk_count = av_clip(ctx->opt_chunk_count, 1, HAP_MAX_CHUNKS); av_clip 376 libavcodec/hcadec.c scale = scale_table[av_clip(scale, 0, 58)]; av_clip 492 libavcodec/hevc_cabac.c int pre = 2 * (((m * av_clip(s->sh.slice_qp, 0, 51)) >> 4) + n) - 127; av_clip 1103 libavcodec/hevc_cabac.c qp_i = av_clip(qp_y + offset, - s->ps.sps->qp_bd_offset, 57); av_clip 62 libavcodec/hevc_filter.c qp_i = av_clip(qp_y + offset, 0, 57); av_clip 71 libavcodec/hevc_filter.c qp = av_clip(qp_i, 0, 51); av_clip 74 libavcodec/hevc_filter.c idxt = av_clip(qp + DEFAULT_INTRA_TC_OFFSET + tc_offset, 0, 53); av_clip 472 libavcodec/hevc_filter.c tctable[av_clip((qp) + DEFAULT_INTRA_TC_OFFSET * ((bs) - 1) + \ av_clip 527 libavcodec/hevc_filter.c beta = betatable[av_clip(qp + beta_offset, 0, MAX_QP)]; av_clip 560 libavcodec/hevc_filter.c beta = betatable[av_clip(qp + beta_offset, 0, MAX_QP)]; av_clip 201 libavcodec/hevcdec.c s->sh.chroma_offset_l0[i][j] = av_clip((delta_chroma_offset_l0 - ((128 * s->sh.chroma_weight_l0[i][j]) av_clip 245 libavcodec/hevcdec.c s->sh.chroma_offset_l1[i][j] = av_clip((delta_chroma_offset_l1 - ((128 * s->sh.chroma_weight_l1[i][j]) av_clip 1562 libavcodec/hevcdsp_template.c P0 = p0 + av_clip(((p2 + 2 * p1 + 2 * p0 + 2 * q0 + q1 + 4) >> 3) - p0, -tc2, tc2); av_clip 1563 libavcodec/hevcdsp_template.c P1 = p1 + av_clip(((p2 + p1 + p0 + q0 + 2) >> 2) - p1, -tc2, tc2); av_clip 1564 libavcodec/hevcdsp_template.c P2 = p2 + av_clip(((2 * p3 + 3 * p2 + p1 + p0 + q0 + 4) >> 3) - p2, -tc2, tc2); av_clip 1567 libavcodec/hevcdsp_template.c Q0 = q0 + av_clip(((p1 + 2 * p0 + 2 * q0 + 2 * q1 + q2 + 4) >> 3) - q0, -tc2, tc2); av_clip 1568 libavcodec/hevcdsp_template.c Q1 = q1 + av_clip(((p0 + q0 + q1 + q2 + 2) >> 2) - q1, -tc2, tc2); av_clip 1569 libavcodec/hevcdsp_template.c Q2 = q2 + av_clip(((2 * q3 + 3 * q2 + q1 + q0 + p0 + 4) >> 3) - q2, -tc2, tc2); av_clip 1591 libavcodec/hevcdsp_template.c delta0 = av_clip(delta0, -tc, tc); av_clip 1597 libavcodec/hevcdsp_template.c const int deltap1 = av_clip((((p2 + p0 + 1) >> 1) - p1 + delta0) >> 1, -tc_2, tc_2); av_clip 1601 libavcodec/hevcdsp_template.c const int deltaq1 = av_clip((((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1, -tc_2, tc_2); av_clip 1636 libavcodec/hevcdsp_template.c delta0 = av_clip((((q0 - p0) * 4) + p1 - q1 + 4) >> 3, -tc, tc); av_clip 326 libavcodec/ilbcdec.c lsf[i] = av_clip(lsf[i], 82, 25723); av_clip 493 libavcodec/ilbcdec.c o = av_clip(o, -134217728, 134215679); av_clip 515 libavcodec/ilbcdec.c output = av_clip(output, -134217728, 134215679); av_clip 114 libavcodec/ituh263enc.c div= av_clip(div, 1, 127); av_clip 646 libavcodec/ivi.c quant = av_clip(quant, 0, 23); av_clip 957 libavcodec/jpeg2000dec.c tile->coord[0][0] = av_clip(tilex * (int64_t)s->tile_width + s->tile_offset_x, s->image_offset_x, s->width); av_clip 958 libavcodec/jpeg2000dec.c tile->coord[0][1] = av_clip((tilex + 1) * (int64_t)s->tile_width + s->tile_offset_x, s->image_offset_x, s->width); av_clip 959 libavcodec/jpeg2000dec.c tile->coord[1][0] = av_clip(tiley * (int64_t)s->tile_height + s->tile_offset_y, s->image_offset_y, s->height); av_clip 960 libavcodec/jpeg2000dec.c tile->coord[1][1] = av_clip((tiley + 1) * (int64_t)s->tile_height + s->tile_offset_y, s->image_offset_y, s->height); av_clip 1948 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); \ av_clip 1957 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); \ av_clip 322 libavcodec/jpeglsdec.c pred = av_clip(pred - state->C[context], 0, state->maxval); av_clip 325 libavcodec/jpeglsdec.c pred = av_clip(pred + state->C[context], 0, state->maxval); av_clip 337 libavcodec/jpeglsdec.c pred = av_clip(pred, 0, state->maxval); av_clip 409 libavcodec/jpeglsdec.c off = av_clip(s->cur_scan - 1, 0, stride - 1); av_clip 181 libavcodec/jpeglsenc.c Ra = av_clip(pred + err * state->twonear, 0, state->maxval); av_clip 183 libavcodec/jpeglsenc.c Ra = av_clip(pred - err * state->twonear, 0, state->maxval); av_clip 207 libavcodec/jpeglsenc.c pred = av_clip(pred - state->C[context], 0, state->maxval); av_clip 211 libavcodec/jpeglsenc.c pred = av_clip(pred + state->C[context], 0, state->maxval); av_clip 221 libavcodec/jpeglsenc.c Ra = av_clip(pred + err * state->twonear, 0, state->maxval); av_clip 223 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 133 libavcodec/lclenc.c av_clip(avctx->compression_level, 0, 9); av_clip 230 libavcodec/libfdk-aacenc.c mode = av_clip(mode, 1, 5); av_clip 166 libavcodec/libopenh264enc.c param.iMaxQp = av_clip(avctx->qmax, 1, 51); av_clip 168 libavcodec/libopenh264enc.c param.iMinQp = av_clip(avctx->qmin, 1, param.iMaxQp); av_clip 228 libavcodec/libspeexenc.c complexity = av_clip(avctx->compression_level, 0, 10); av_clip 1325 libavcodec/libvpxenc.c delta_q = av_clip(delta_q, -MAX_DELTA_Q, MAX_DELTA_Q); av_clip 1360 libavcodec/libvpxenc.c starty = av_clip(roi->top / block_size, 0, roi_map->rows); av_clip 1361 libavcodec/libvpxenc.c endy = av_clip((roi->bottom + block_size - 1) / block_size, 0, roi_map->rows); av_clip 1362 libavcodec/libvpxenc.c startx = av_clip(roi->left / block_size, 0, roi_map->cols); av_clip 1363 libavcodec/libvpxenc.c endx = av_clip((roi->right + block_size - 1) / block_size, 0, roi_map->cols); av_clip 1366 libavcodec/libvpxenc.c delta_q = av_clip(delta_q, -MAX_DELTA_Q, MAX_DELTA_Q); av_clip 55 libavcodec/libwebpenc_common.c avctx->compression_level = av_clip(avctx->compression_level, 0, 6); av_clip 707 libavcodec/libx264.c x4->params.i_frame_reference = av_clip(x264_levels[i].dpb / mbn / scale, 1, x4->params.i_frame_reference); av_clip 361 libavcodec/libzvbi-teletextdec.c vertical_align = (2 - (av_clip(i + 1, 0, 23) / 8)); av_clip 139 libavcodec/lpc.c lpc_out[i] = av_clip(lrintf(error), -qmax, qmax); av_clip 279 libavcodec/mimic.c const int qscale = av_clip(10000 - quality, is_chroma ? 1000 : 2000, av_clip 2390 libavcodec/mips/aaccoder_mips.c mididx = av_clip(minidx, 0, SCALE_MAX_POS - SCALE_DIV_512); av_clip 2391 libavcodec/mips/aaccoder_mips.c sididx = av_clip(minidx - sid_sf_boost * 3, 0, SCALE_MAX_POS - SCALE_DIV_512); av_clip 1764 libavcodec/mlpenc.c offset = av_clip(average, HUFF_OFFSET_MIN, HUFF_OFFSET_MAX); av_clip 1457 libavcodec/motion_est.c P_LEFT[0] = av_clip(mv_table[mot_xy - 1][0], xmin<<shift, xmax<<shift); av_clip 1458 libavcodec/motion_est.c P_LEFT[1] = av_clip(mv_table[mot_xy - 1][1], ymin<<shift, ymax<<shift); av_clip 1462 libavcodec/motion_est.c P_TOP[0] = av_clip(mv_table[mot_xy - mot_stride ][0], xmin<<shift, xmax<<shift); av_clip 1463 libavcodec/motion_est.c P_TOP[1] = av_clip(mv_table[mot_xy - mot_stride ][1], ymin<<shift, ymax<<shift); av_clip 1464 libavcodec/motion_est.c P_TOPRIGHT[0] = av_clip(mv_table[mot_xy - mot_stride + 1 ][0], xmin<<shift, xmax<<shift); av_clip 1465 libavcodec/motion_est.c P_TOPRIGHT[1] = av_clip(mv_table[mot_xy - mot_stride + 1 ][1], ymin<<shift, ymax<<shift); av_clip 1871 libavcodec/mpeg4videodec.c block[0] = av_clip(block[0], min, max); av_clip 1926 libavcodec/mpeg4videodec.c block[j] = av_clip(block[j], min, max); av_clip 1395 libavcodec/mpegaudiodec_template.c s->extrasize = av_clip((get_bits_left(&s->gb) >> 3) - s->extrasize, 0, av_clip 1874 libavcodec/mpegvideo.c return av_clip(s->mb_y + off, 0, s->mb_height - 1); av_clip 195 libavcodec/mpegvideo_enc.c s->qscale = av_clip(s->qscale, s->avctx->qmin, s->vbv_ignore_qmax ? 31 : s->avctx->qmax); av_clip 226 libavcodec/mpegvideo_enc.c qscale_table[s->mb_index2xy[i]] = av_clip(qp, s->avctx->qmin, av_clip 352 libavcodec/mpegvideo_enc.c avctx->bits_per_raw_sample = av_clip(avctx->bits_per_raw_sample, 0, 8); av_clip 2226 libavcodec/mpegvideo_enc.c s->dquant = av_clip(s->dquant, -2, 2); av_clip 53 libavcodec/mpegvideo_motion.c src_x = av_clip(src_x, -16, s->width); av_clip 56 libavcodec/mpegvideo_motion.c src_y = av_clip(src_y, -16, s->height); av_clip 100 libavcodec/mpegvideo_motion.c src_x = av_clip(src_x, -8, s->width >> 1); av_clip 103 libavcodec/mpegvideo_motion.c src_y = av_clip(src_y, -8, s->height >> 1); av_clip 206 libavcodec/mpegvideo_motion.c src_x = av_clip(src_x, -16, s->width); // FIXME unneeded for emu? av_clip 209 libavcodec/mpegvideo_motion.c src_y = av_clip(src_y, -16, s->height); av_clip 616 libavcodec/mpegvideo_motion.c src_x = av_clip(src_x, -8, (s->width >> 1)); av_clip 619 libavcodec/mpegvideo_motion.c src_y = av_clip(src_y, -8, (s->height >> 1)); av_clip 775 libavcodec/mpegvideo_motion.c src_x = av_clip(src_x, -16, s->width); av_clip 778 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 100 libavcodec/mv30.c table[i] = av_clip((quant_tab[i] * factor + 0x32) / 100, 1, 0x7fff); av_clip 98 libavcodec/nellymoser.c ret += av_clip(b, 0, NELLY_BIT_CAP); av_clip 209 libavcodec/nellymoser.c bits[i] = av_clip(tmp, 0, NELLY_BIT_CAP); av_clip 212 libavcodec/nellymoserenc.c LUT[av_clip ((lrintf(val) >> 8) + LUT_add, 0, LUT_size - 1)]; \ av_clip 365 libavcodec/nellymoserenc.c quant_lut[av_clip ( av_clip 675 libavcodec/nvenc.c rc->constQP.qpIntra = av_clip( av_clip 677 libavcodec/nvenc.c rc->constQP.qpInterB = av_clip( av_clip 686 libavcodec/nvenc.c rc->constQP.qpInterB = av_clip(ctx->cqp * fabs(avctx->b_quant_factor) + avctx->b_quant_offset + 0.5, 0, 51); av_clip 688 libavcodec/nvenc.c rc->constQP.qpIntra = av_clip(ctx->cqp * fabs(avctx->i_quant_factor) + avctx->i_quant_offset + 0.5, 0, 51); av_clip 736 libavcodec/nvenc.c rc->initialRCQP.qpIntra = av_clip( av_clip 747 libavcodec/nvenc.c rc->initialRCQP.qpInterB = av_clip( av_clip 929 libavcodec/nvenc.c ctx->encode_config.rcParams.lookaheadDepth = av_clip(ctx->rc_lookahead, 0, lkd_bound); av_clip 867 libavcodec/opus.c f->fine_bits[i] = av_clip(fine_bits, 0, max_bits); av_clip 737 libavcodec/opus_pvq.c mbits = av_clip((b - delta) / 2, 0, b); av_clip 637 libavcodec/opus_silk.c sf[i].pitchlag = av_clip(primarylag + offsets[i], av_clip 296 libavcodec/opusenc.c txval = av_clip(period - (16 << octave) + 1, 0, (1 << (4 + octave)) - 1); av_clip 349 libavcodec/opusenc.c q_en = av_clip(q_en, -1, 1); av_clip 352 libavcodec/opusenc.c q_en = av_clip(q_en, -1, 0); av_clip 391 libavcodec/opusenc.c quant = av_clip(floor(diff*lim), 0, lim - 1); av_clip 642 libavcodec/opusenc.c int64_t clipped_rate = av_clip(avctx->bit_rate, 6000, 255000 * s->channels); av_clip 1023 libavcodec/pngenc.c s->filter_type = av_clip(avctx->prediction_method, av_clip 1091 libavcodec/pngenc.c : av_clip(avctx->compression_level, 0, 9); av_clip 638 libavcodec/proresdec2.c qscale = av_clip(buf[1], 1, 224); av_clip 34 libavcodec/proresdsp.c #define CLIP_10(x) (av_clip((x), CLIP_MIN, CLIP_MAX_10)) av_clip 35 libavcodec/proresdsp.c #define CLIP_12(x) (av_clip((x), CLIP_MIN, CLIP_MAX_12)) 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 472 libavcodec/qsvenc.c q->param.mfx.Quality = av_clip(avctx->global_quality, 1, 100); av_clip 620 libavcodec/qsvenc.c q->extco3.QVBRQuality = av_clip(avctx->global_quality, 0, 51); av_clip 626 libavcodec/qsvenc.c q->param.mfx.QPI = av_clip(quant * fabs(avctx->i_quant_factor) + avctx->i_quant_offset, 0, 51); av_clip 627 libavcodec/qsvenc.c q->param.mfx.QPP = av_clip(quant, 0, 51); av_clip 628 libavcodec/qsvenc.c q->param.mfx.QPB = av_clip(quant * fabs(avctx->b_quant_factor) + avctx->b_quant_offset, 0, 51); av_clip 286 libavcodec/ralf.c add_bits = av_clip((code_params / 5 - 3) / 2, 0, 10); av_clip 137 libavcodec/ratecontrol.c qmin = av_clip(qmin, 1, FF_LAMBDA_MAX); av_clip 138 libavcodec/ratecontrol.c qmax = av_clip(qmax, 1, FF_LAMBDA_MAX); av_clip 443 libavcodec/ratecontrol.c qscale_sum += av_clip(rcc->entry[i].new_qscale / FF_QP2LAMBDA, av_clip 705 libavcodec/ratecontrol.c rcc->buffer_index += av_clip(left, min_rate, max_rate); av_clip 144 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 426 libavcodec/rv40dsp.c #define CLIP_SYMM(a, b) av_clip(a, -(b), b) av_clip 528 libavcodec/rv40dsp.c p0 = av_clip(p0, src[-1*step] - lims, src[-1*step] + lims); av_clip 529 libavcodec/rv40dsp.c q0 = av_clip(q0, src[ 0*step] - lims, src[ 0*step] + lims); av_clip 538 libavcodec/rv40dsp.c p1 = av_clip(p1, src[-2*step] - lims, src[-2*step] + lims); av_clip 539 libavcodec/rv40dsp.c q1 = av_clip(q1, src[ 1*step] - lims, src[ 1*step] + lims); av_clip 245 libavcodec/sbcenc.c frame->blocks = av_clip(((sbc->max_delay * avctx->sample_rate + 2) av_clip 92 libavcodec/sipr16k.c int pitch_delay_min = av_clip(pitch_lag_prev - 10, av_clip 431 libavcodec/siren.c absolute_region_power_index[0] = av_clip(absolute_region_power_index[0], -24, 39); av_clip 441 libavcodec/siren.c absolute_region_power_index[i] = av_clip(absolute_region_power_index[i - 1] - index - 12, -24, 39); av_clip 120 libavcodec/snowdec.c const int qlog= av_clip(s->qlog + (int64_t)b->qlog, 0, QROOT*16); av_clip 227 libavcodec/snowdec.c const int qlog= av_clip(s->qlog + (int64_t)b->qlog, 0, QROOT*16); av_clip 97 libavcodec/snowenc.c s->max_ref_frames = av_clip(avctx->refs, 1, MAX_REF_FRAMES); av_clip 1250 libavcodec/snowenc.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); av_clip 1311 libavcodec/snowenc.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); av_clip 1504 libavcodec/snowenc.c const int qlog= av_clip(2*QROOT + b->qlog, 0, QROOT*16); av_clip 828 libavcodec/sonic.c quant = av_clip(quant, 1, 65534); av_clip 360 libavcodec/svq1dec.c mv.x = av_clip(mv.x, -2 * x, 2 * (width - x - 16)); av_clip 361 libavcodec/svq1dec.c mv.y = av_clip(mv.y, -2 * y, 2 * (height - y - 16)); av_clip 430 libavcodec/svq1dec.c mvx = av_clip(mvx, -2 * x, 2 * (width - x - 8)); av_clip 431 libavcodec/svq1dec.c mvy = av_clip(mvy, -2 * y, 2 * (height - y - 8)); av_clip 160 libavcodec/svq1enc.c mean = av_clip(mean, intra ? 0 : -256, 255); av_clip 449 libavcodec/svq3.c mx = av_clip(mx, -16, s->h_edge_pos - width + 15); av_clip 450 libavcodec/svq3.c my = av_clip(my, -16, s->v_edge_pos - height + 15); av_clip 546 libavcodec/svq3.c mx = av_clip(mx, extra_width - 6 * x, h_edge_pos - 6 * x); av_clip 547 libavcodec/svq3.c my = av_clip(my, extra_width - 6 * y, v_edge_pos - 6 * y); av_clip 216 libavcodec/tests/dct.c block1[i] = av_clip(block1[i], 4-512, 1019-512); av_clip 729 libavcodec/truemotion2.c mx = av_clip(mx, -(bx * 4 + 4), ctx->avctx->width - bx * 4); av_clip 730 libavcodec/truemotion2.c my = av_clip(my, -(by * 4 + 4), ctx->avctx->height - by * 4); av_clip 180 libavcodec/truespeech.c off = av_clip(off, 0, 145); av_clip 259 libavcodec/truespeech.c out[i] = av_clip(sum, -0x7FFE, 0x7FFE); av_clip 289 libavcodec/truespeech.c ptr0[0] = av_clip((sum + 0x800) >> 12, -0x7FFE, 0x7FFE); av_clip 293 libavcodec/truespeech.c out[i] = av_clip((sum + 0x800) >> 12, -0x7FFE, 0x7FFE); av_clip 25 libavcodec/v210_template.c #define CLIP(v, depth) av_clip(v, 1<<(depth-8), ((1<<depth)-(1<<(depth-8))-1)) av_clip 74 libavcodec/v210dec.c s->thread_count = av_clip(avctx->thread_count, 1, avctx->height/4); av_clip 57 libavcodec/v410dec.c int thread_count = av_clip(avctx->thread_count, 1, avctx->height/4); av_clip 96 libavcodec/v410dec.c int thread_count = av_clip(avctx->thread_count, 1, avctx->height/4); av_clip 1716 libavcodec/vaapi_encode.c .ICQ_quality_factor = av_clip(rc_quality, 1, 51), av_clip 1075 libavcodec/vaapi_encode_h264.c priv->fixed_qp_p = av_clip(ctx->rc_quality, 1, 51); av_clip 1078 libavcodec/vaapi_encode_h264.c av_clip((avctx->i_quant_factor * priv->fixed_qp_p + av_clip 1084 libavcodec/vaapi_encode_h264.c av_clip((avctx->b_quant_factor * priv->fixed_qp_p + av_clip 1080 libavcodec/vaapi_encode_h265.c priv->fixed_qp_p = av_clip(ctx->rc_quality, 1, 51); av_clip 1083 libavcodec/vaapi_encode_h265.c av_clip((avctx->i_quant_factor * priv->fixed_qp_p + av_clip 1089 libavcodec/vaapi_encode_h265.c av_clip((avctx->b_quant_factor * priv->fixed_qp_p + av_clip 312 libavcodec/vaapi_encode_mjpeg.c quant->Q[i] = av_clip(data[i] * quant_scale / 100, 1, 255); av_clip 525 libavcodec/vaapi_encode_mpeg2.c priv->quant_p = av_clip(ctx->rc_quality, 1, 31); av_clip 528 libavcodec/vaapi_encode_mpeg2.c av_clip((avctx->i_quant_factor * priv->quant_p + av_clip 534 libavcodec/vaapi_encode_mpeg2.c av_clip((avctx->b_quant_factor * priv->quant_p + av_clip 167 libavcodec/vaapi_encode_vp8.c priv->q_index_p = av_clip(ctx->rc_quality, 0, VP8_MAX_QUANT); av_clip 170 libavcodec/vaapi_encode_vp8.c av_clip((avctx->i_quant_factor * priv->q_index_p + av_clip 185 libavcodec/vaapi_encode_vp9.c priv->q_idx_p = av_clip(ctx->rc_quality, 0, VP9_MAX_QUANT); av_clip 188 libavcodec/vaapi_encode_vp9.c av_clip((avctx->i_quant_factor * priv->q_idx_p + av_clip 195 libavcodec/vaapi_encode_vp9.c av_clip((avctx->b_quant_factor * priv->q_idx_p + av_clip 259 libavcodec/vc1_mc.c src_x = av_clip( src_x, -16, s->mb_width * 16); av_clip 260 libavcodec/vc1_mc.c src_y = av_clip( src_y, -16, s->mb_height * 16); av_clip 261 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8); av_clip 262 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8); av_clip 264 libavcodec/vc1_mc.c src_x = av_clip( src_x, -17, s->avctx->coded_width); av_clip 265 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1); av_clip 267 libavcodec/vc1_mc.c src_y = av_clip(src_y, -18 + (src_y & 1), s->avctx->coded_height + (src_y & 1)); av_clip 268 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8 + (uvsrc_y & 1), (s->avctx->coded_height >> 1) + (uvsrc_y & 1)); av_clip 270 libavcodec/vc1_mc.c src_y = av_clip(src_y, -18, s->avctx->coded_height + 1); av_clip 271 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1); av_clip 546 libavcodec/vc1_mc.c src_x = av_clip(src_x, -16, s->mb_width * 16); av_clip 547 libavcodec/vc1_mc.c src_y = av_clip(src_y, -16, s->mb_height * 16); av_clip 549 libavcodec/vc1_mc.c src_x = av_clip(src_x, -17, s->avctx->coded_width); av_clip 551 libavcodec/vc1_mc.c src_y = av_clip(src_y, -18 + (src_y & 1), s->avctx->coded_height + (src_y & 1)); av_clip 553 libavcodec/vc1_mc.c src_y = av_clip(src_y, -18, s->avctx->coded_height + 1); av_clip 692 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8); av_clip 693 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8); av_clip 695 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1); av_clip 696 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1); av_clip 877 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1); av_clip 879 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8 + (uvsrc_y & 1), (s->avctx->coded_height >> 1) + (uvsrc_y & 1)); av_clip 881 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->avctx->coded_height >> 1); av_clip 1045 libavcodec/vc1_mc.c src_x = av_clip( src_x, -16, s->mb_width * 16); av_clip 1046 libavcodec/vc1_mc.c src_y = av_clip( src_y, -16, s->mb_height * 16); av_clip 1047 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->mb_width * 8); av_clip 1048 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8); av_clip 1050 libavcodec/vc1_mc.c src_x = av_clip( src_x, -17, s->avctx->coded_width); av_clip 1051 libavcodec/vc1_mc.c uvsrc_x = av_clip(uvsrc_x, -8, s->avctx->coded_width >> 1); av_clip 1053 libavcodec/vc1_mc.c src_y = av_clip(src_y, -18 + (src_y & 1), s->avctx->coded_height + (src_y & 1)); av_clip 1054 libavcodec/vc1_mc.c uvsrc_y = av_clip(uvsrc_y, -8 + (uvsrc_y & 1), (s->avctx->coded_height >> 1) + (uvsrc_y & 1)); av_clip 1056 libavcodec/vc1_mc.c src_y = av_clip(src_y, -18, s->avctx->coded_height + 1); av_clip 1057 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 733 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 734 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 735 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 736 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 185 libavcodec/vc1dec.c xoff[i] = av_clip(sd->coefs[i][2], 0, v->sprite_width-1 << 16); av_clip 188 libavcodec/vc1dec.c xadv[i] = av_clip(xadv[i], 0, ((v->sprite_width<<16) - xoff[i] - 1) / v->output_width); av_clip 190 libavcodec/vc1dec.c yoff[i] = av_clip(sd->coefs[i][5], 0, v->sprite_height-1 << 16); av_clip 191 libavcodec/vc1dec.c yadv[i] = av_clip(sd->coefs[i][4], 0, ((v->sprite_height << 16) - yoff[i]) / v->output_height); av_clip 626 libavcodec/vc2enc.c quant = av_clip(quant + signed_step, 0, s->q_ceil-1); av_clip 633 libavcodec/vc2enc.c step = av_clip(step/2, 1, (s->q_ceil-1)/2); av_clip 638 libavcodec/vc2enc.c slice_dat->quant_idx = av_clip(quant, 0, s->q_ceil-1); 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 440 libavcodec/vp3.c (i == 0 || s->version < 2) ? av_clip((qscale * coeff) / 100 * 4, qmin, 4096) av_clip 169 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 177 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 346 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 848 libavcodec/vp8.c dst->x = av_clip(src->x, av_clip(s->mv_min.x, INT16_MIN, INT16_MAX), av_clip 849 libavcodec/vp8.c av_clip(s->mv_max.x, INT16_MIN, INT16_MAX)); av_clip 850 libavcodec/vp8.c dst->y = av_clip(src->y, av_clip(s->mv_min.y, INT16_MIN, INT16_MAX), av_clip 851 libavcodec/vp8.c av_clip(s->mv_max.y, INT16_MIN, INT16_MAX)); av_clip 33 libavcodec/vp9mvs.c dst->x = av_clip(src->x, td->min_mv.x, td->max_mv.x); av_clip 34 libavcodec/vp9mvs.c dst->y = av_clip(src->y, td->min_mv.y, td->max_mv.y); av_clip 40 libavcodec/vp9prob.c p2 = av_clip(p2, 1, 255); av_clip 428 libavcodec/vp9recon.c mv.x = av_clip(in_mv->x, -(x + pw - px + 4) * 8, (s->cols * 8 - x + px + 3) * 8); av_clip 429 libavcodec/vp9recon.c mv.y = av_clip(in_mv->y, -(y + ph - py + 4) * 8, (s->rows * 8 - y + py + 3) * 8); av_clip 490 libavcodec/vp9recon.c mv.x = av_clip(in_mv->x, -(x + pw - px + 4) * 16, (s->cols * 4 - x + px + 3) * 16); av_clip 493 libavcodec/vp9recon.c mv.x = av_clip(in_mv->x, -(x + pw - px + 4) * 8, (s->cols * 8 - x + px + 3) * 8); av_clip 498 libavcodec/vp9recon.c mv.y = av_clip(in_mv->y, -(y + ph - py + 4) * 16, (s->rows * 4 - y + py + 3) * 16); av_clip 501 libavcodec/vp9recon.c mv.y = av_clip(in_mv->y, -(y + ph - py + 4) * 8, (s->rows * 8 - y + py + 3) * 8); av_clip 322 libavcodec/wavpack.c bit = av_clip(bit, s->hybrid_minclip, s->hybrid_maxclip); av_clip 523 libavcodec/wavpackenc.c weight = av_clip(weight, -1024, 1024); av_clip 647 libavcodec/wmalosslessdec.c s->mclms_prevvalues[s->mclms_recent] = av_clip(s->channel_residues[ich][icoef], av_clip 747 libavcodec/wmalosslessdec.c prev[recent] = av_clip(input, -range, range - 1); \ av_clip 561 libavcodec/wmaprodec.c s->subwoofer_cutoffs[i] = av_clip(cutoff, 4, block_size); av_clip 662 libavcodec/wmavoice.c idx = 255 + av_clip(lpcs[64], -255, 255); av_clip 664 libavcodec/wmavoice.c idx = 255 + av_clip(lpcs[64] - 2 * lpcs[63], -255, 255); av_clip 667 libavcodec/wmavoice.c idx = 255 + av_clip(-lpcs[64] - 2 * lpcs[n - 1], -255, 255); av_clip 673 libavcodec/wmavoice.c idx = 255 + av_clip( lpcs[64] - 2 * lpcs[n - 1], -255, 255); av_clip 1399 libavcodec/wmavoice.c len = av_clip((idx_sh16 - next_idx_sh16) / s->pitch_diff_sh16 / 8, av_clip 1563 libavcodec/wmavoice.c last_block_pitch = av_clip(block_pitch, av_clip 118 libavcodec/wmv2.c src_x = av_clip(src_x, -16, s->width); av_clip 119 libavcodec/wmv2.c src_y = av_clip(src_y, -16, s->height); av_clip 158 libavcodec/wmv2.c src_x = av_clip(src_x, -8, s->width >> 1); av_clip 161 libavcodec/wmv2.c src_y = av_clip(src_y, -8, s->height >> 1); av_clip 574 libavfilter/af_afftdn.c band_noise[i] = av_clip(band_noise[i], -24, 24); av_clip 1071 libavfilter/af_afftdn.c new_band_noise[m] = av_clip(new_band_noise[m], -24, 24); av_clip 100 libavfilter/af_afftfilt.c ich = av_clip(ch, 0, s->nb_exprs - 1); av_clip 101 libavfilter/af_afftfilt.c ix = av_clip(x, 0, s->window_size / 2); av_clip 111 libavfilter/af_afftfilt.c ich = av_clip(ch, 0, s->nb_exprs - 1); av_clip 112 libavfilter/af_afftfilt.c ix = av_clip(x, 0, s->window_size / 2); av_clip 302 libavfilter/af_afir.c channel = av_clip(s->ir_channel, 0, s->ir[s->selir]->channels - 1); av_clip 330 libavfilter/af_afir.c ymag = s->h - 1 - av_clip(ymag, 0, s->h - 1); av_clip 331 libavfilter/af_afir.c yphase = s->h - 1 - av_clip(yphase, 0, s->h - 1); av_clip 332 libavfilter/af_afir.c ydelay = s->h - 1 - av_clip(ydelay, 0, s->h - 1); av_clip 884 libavfilter/af_aiir.c ch = av_clip(s->ir_channel, 0, s->channels - 1); av_clip 930 libavfilter/af_aiir.c ymag = s->h - 1 - av_clip(ymag, 0, s->h - 1); av_clip 931 libavfilter/af_aiir.c yphase = s->h - 1 - av_clip(yphase, 0, s->h - 1); av_clip 932 libavfilter/af_aiir.c ydelay = s->h - 1 - av_clip(ydelay, 0, s->h - 1); av_clip 148 libavfilter/af_anequalizer.c v = av_clip((1. + -20 * log10(Hmag) / s->mag) * s->h / 2, 0, s->h - 1); av_clip 632 libavfilter/af_anequalizer.c s->filters[s->nb_filters].type = av_clip(s->filters[s->nb_filters].type, 0, NB_TYPES - 1); av_clip 332 libavfilter/af_astats.c index = av_clip(FFABS(nd) * HISTOGRAM_MAX, 0, HISTOGRAM_MAX); av_clip 336 libavfilter/af_astats.c p->histogram[av_clip(FFABS(drop) * HISTOGRAM_MAX, 0, HISTOGRAM_MAX)]--; av_clip 106 libavfilter/af_drmeter.c rms_bin = av_clip(rms * 10000, 0, 10000); av_clip 107 libavfilter/af_drmeter.c peak_bin = av_clip(peak * 10000, 0, 10000); av_clip 156 libavfilter/asrc_sinc.c float const *c0 = coefs[av_clip((int)realm, 0, FF_ARRAY_ELEMS(coefs) - 1)]; av_clip 157 libavfilter/asrc_sinc.c float const *c1 = coefs[av_clip(1 + (int)realm, 0, FF_ARRAY_ELEMS(coefs) - 1)]; av_clip 193 libavfilter/asrc_sinc.c *num_taps = av_clip(n, 11, 32767); av_clip 268 libavfilter/avf_showspatial.c x = av_clip(w * diff, 0, w - 2) + 1; av_clip 269 libavfilter/avf_showspatial.c y = av_clip(h * diffp, 0, h - 2) + 1; av_clip 246 libavfilter/avf_showwaves.c int end = av_clip(h, 0, height-1); av_clip 263 libavfilter/avf_showwaves.c int end = av_clip(h, 0, height-1); av_clip 286 libavfilter/avf_showwaves.c int end = av_clip(h, 0, height-1); av_clip 312 libavfilter/avf_showwaves.c int end = av_clip(h, 0, height-1); av_clip 369 libavfilter/avf_showwaves.c int end = av_clip(h, 0, height-1); av_clip 385 libavfilter/avf_showwaves.c int end = av_clip(h, 0, height-1); av_clip 71 libavfilter/f_cue.c av_usleep(av_clip(-diff / 2, 100, 1000000)); av_clip 573 libavfilter/f_ebur128.c ipower = av_clip(HIST_POS(loudness), 0, HIST_SIZE - 1); av_clip 583 libavfilter/f_ebur128.c gate_hist_pos = av_clip(HIST_POS(integ->rel_threshold), 0, HIST_SIZE - 1); av_clip 63 libavfilter/vf_bwdif.c dst[0] = av_clip(interpol, 0, clip_max); \ av_clip 115 libavfilter/vf_bwdif.c dst[0] = av_clip(interpol, 0, clip_max); \ av_clip 116 libavfilter/vf_chromashift.c const int duy = av_clip(y - cbv, 0, h-1) * sulinesize; \ av_clip 117 libavfilter/vf_chromashift.c const int dvy = av_clip(y - crv, 0, h-1) * svlinesize; \ av_clip 120 libavfilter/vf_chromashift.c du[x] = su[av_clip(x - cbh, 0, w - 1) + duy]; \ av_clip 121 libavfilter/vf_chromashift.c dv[x] = sv[av_clip(x - crh, 0, w - 1) + dvy]; \ av_clip 225 libavfilter/vf_chromashift.c const int ry = av_clip(y - rv, 0, h-1) * srlinesize; \ av_clip 226 libavfilter/vf_chromashift.c const int gy = av_clip(y - gv, 0, h-1) * sglinesize; \ av_clip 227 libavfilter/vf_chromashift.c const int by = av_clip(y - bv, 0, h-1) * sblinesize; \ av_clip 231 libavfilter/vf_chromashift.c dr[x] = sr[av_clip(x - rh, 0, w - 1) + ry]; \ av_clip 232 libavfilter/vf_chromashift.c dg[x] = sg[av_clip(x - gh, 0, w - 1) + gy]; \ av_clip 233 libavfilter/vf_chromashift.c db[x] = sb[av_clip(x - bh, 0, w - 1) + by]; \ av_clip 242 libavfilter/vf_chromashift.c ay = av_clip(y - av, 0, h-1) * salinesize; \ av_clip 244 libavfilter/vf_chromashift.c da[x] = sa[av_clip(x - ah, 0, w - 1) + ay]; \ av_clip 129 libavfilter/vf_codecview.c sx = av_clip(sx, 0, w - 1); av_clip 130 libavfilter/vf_codecview.c sy = av_clip(sy, 0, h - 1); av_clip 131 libavfilter/vf_codecview.c ex = av_clip(ex, 0, w - 1); av_clip 132 libavfilter/vf_codecview.c ey = av_clip(ey, 0, h - 1); av_clip 187 libavfilter/vf_codecview.c sx = av_clip(sx, -100, w + 100); av_clip 188 libavfilter/vf_codecview.c sy = av_clip(sy, -100, h + 100); av_clip 189 libavfilter/vf_codecview.c ex = av_clip(ex, -100, w + 100); av_clip 190 libavfilter/vf_codecview.c ey = av_clip(ey, -100, h + 100); av_clip 232 libavfilter/vf_colorconstancy.c #define CLAMP(x, mx) av_clip((x), 0, (mx-1)) av_clip 124 libavfilter/vf_convolution.c dst[x] = av_clip(sqrtf(suma*suma + sumb*sumb) * scale + delta, 0, peak); av_clip 140 libavfilter/vf_convolution.c dst[x] = av_clip(sqrtf(suma*suma + sumb*sumb) * scale + delta, 0, peak); av_clip 158 libavfilter/vf_convolution.c dst[x] = av_clip(sqrtf(suma*suma + sumb*sumb) * scale + delta, 0, peak); av_clip 236 libavfilter/vf_convolution.c dst[x] = av_clip(sum, 0, peak); av_clip 255 libavfilter/vf_convolution.c dst[x] = av_clip(sum, 0, peak); av_clip 274 libavfilter/vf_convolution.c dst[x] = av_clip(sum, 0, peak); av_clip 293 libavfilter/vf_convolution.c dst[x] = av_clip(sum, 0, peak); av_clip 312 libavfilter/vf_convolution.c dst[0] = av_clip(sum, 0, peak); av_clip 362 libavfilter/vf_convolve.c dst[x] = av_clip(input[y * n + x].re * scale, 0, max); av_clip 367 libavfilter/vf_convolve.c dst[x] = av_clip(input[y * n + n - hw + x].re * scale, 0, max); av_clip 372 libavfilter/vf_convolve.c dst[x] = av_clip(input[(n - hh + y) * n + x].re * scale, 0, max); av_clip 377 libavfilter/vf_convolve.c dst[x] = av_clip(input[(n - hh + y) * n + n - hw + x].re * scale, 0, max); av_clip 182 libavfilter/vf_cover_rect.c x = av_clip(x, 0, in->width - w); av_clip 183 libavfilter/vf_cover_rect.c y = av_clip(y, 0, in->height - h); av_clip 159 libavfilter/vf_deband.c const int ref0 = src_ptr[av_clip(y + y_pos, 0, h) * src_linesize + av_clip(x + x_pos, 0, w)]; av_clip 160 libavfilter/vf_deband.c const int ref1 = src_ptr[av_clip(y + -y_pos, 0, h) * src_linesize + av_clip(x + x_pos, 0, w)]; av_clip 161 libavfilter/vf_deband.c const int ref2 = src_ptr[av_clip(y + -y_pos, 0, h) * src_linesize + av_clip(x + -x_pos, 0, w)]; av_clip 162 libavfilter/vf_deband.c const int ref3 = src_ptr[av_clip(y + y_pos, 0, h) * src_linesize + av_clip(x + -x_pos, 0, w)]; av_clip 207 libavfilter/vf_deband.c const int ref0 = src_ptr[av_clip(y + y_pos, 0, h) * src_linesize + av_clip(x + x_pos, 0, w)]; av_clip 208 libavfilter/vf_deband.c const int ref1 = src_ptr[av_clip(y + -y_pos, 0, h) * src_linesize + av_clip(x + x_pos, 0, w)]; av_clip 209 libavfilter/vf_deband.c const int ref2 = src_ptr[av_clip(y + -y_pos, 0, h) * src_linesize + av_clip(x + -x_pos, 0, w)]; av_clip 210 libavfilter/vf_deband.c const int ref3 = src_ptr[av_clip(y + y_pos, 0, h) * src_linesize + av_clip(x + -x_pos, 0, w)]; av_clip 272 libavfilter/vf_deband.c const int ref0 = src_ptr[av_clip(y + y_pos, 0, h) * src_linesize + av_clip(x + x_pos, 0, w)]; av_clip 273 libavfilter/vf_deband.c const int ref1 = src_ptr[av_clip(y + -y_pos, 0, h) * src_linesize + av_clip(x + x_pos, 0, w)]; av_clip 274 libavfilter/vf_deband.c const int ref2 = src_ptr[av_clip(y + -y_pos, 0, h) * src_linesize + av_clip(x + -x_pos, 0, w)]; av_clip 275 libavfilter/vf_deband.c const int ref3 = src_ptr[av_clip(y + y_pos, 0, h) * src_linesize + av_clip(x + -x_pos, 0, w)]; av_clip 340 libavfilter/vf_deband.c const int ref0 = src_ptr[av_clip(y + y_pos, 0, h) * src_linesize + av_clip(x + x_pos, 0, w)]; av_clip 341 libavfilter/vf_deband.c const int ref1 = src_ptr[av_clip(y + -y_pos, 0, h) * src_linesize + av_clip(x + x_pos, 0, w)]; av_clip 342 libavfilter/vf_deband.c const int ref2 = src_ptr[av_clip(y + -y_pos, 0, h) * src_linesize + av_clip(x + -x_pos, 0, w)]; av_clip 343 libavfilter/vf_deband.c const int ref3 = src_ptr[av_clip(y + y_pos, 0, h) * src_linesize + av_clip(x + -x_pos, 0, w)]; av_clip 122 libavfilter/vf_deblock.c dst[x - 2 * dst_linesize] = av_clip(a, 0, max); \ av_clip 123 libavfilter/vf_deblock.c dst[x - 1 * dst_linesize] = av_clip(b, 0, max); \ av_clip 124 libavfilter/vf_deblock.c dst[x + 0 * dst_linesize] = av_clip(c, 0, max); \ av_clip 125 libavfilter/vf_deblock.c dst[x + 1 * dst_linesize] = av_clip(d, 0, max); \ av_clip 161 libavfilter/vf_deblock.c dst[-2] = av_clip(a, 0, max); \ av_clip 162 libavfilter/vf_deblock.c dst[-1] = av_clip(b, 0, max); \ av_clip 163 libavfilter/vf_deblock.c dst[+0] = av_clip(c, 0, max); \ av_clip 164 libavfilter/vf_deblock.c dst[+1] = av_clip(d, 0, max); \ av_clip 207 libavfilter/vf_deblock.c dst[x - 3 * dst_linesize] = av_clip(a, 0, max); \ av_clip 208 libavfilter/vf_deblock.c dst[x - 2 * dst_linesize] = av_clip(b, 0, max); \ av_clip 209 libavfilter/vf_deblock.c dst[x - 1 * dst_linesize] = av_clip(c, 0, max); \ av_clip 210 libavfilter/vf_deblock.c dst[x + 0 * dst_linesize] = av_clip(d, 0, max); \ av_clip 211 libavfilter/vf_deblock.c dst[x + 1 * dst_linesize] = av_clip(e, 0, max); \ av_clip 212 libavfilter/vf_deblock.c dst[x + 2 * dst_linesize] = av_clip(f, 0, max); \ av_clip 253 libavfilter/vf_deblock.c dst[-3] = av_clip(a, 0, max); \ av_clip 254 libavfilter/vf_deblock.c dst[-2] = av_clip(b, 0, max); \ av_clip 255 libavfilter/vf_deblock.c dst[-1] = av_clip(c, 0, max); \ av_clip 256 libavfilter/vf_deblock.c dst[+0] = av_clip(d, 0, max); \ av_clip 257 libavfilter/vf_deblock.c dst[+1] = av_clip(e, 0, max); \ av_clip 258 libavfilter/vf_deblock.c dst[+2] = av_clip(f, 0, max); \ av_clip 156 libavfilter/vf_deflicker.c dst[x] = av_clip(src[x] * f, 0, max); av_clip 347 libavfilter/vf_deshake.c deshake->blocksize = av_clip(deshake->blocksize, 4, 128); av_clip 878 libavfilter/vf_deshake_opencl.c offset_clipped = av_clip( av_clip 118 libavfilter/vf_displace.c int Y = av_clip(y + ysrc[x] - 128, 0, h - 1); av_clip 119 libavfilter/vf_displace.c int X = av_clip(x + xsrc[x] - 128, 0, w - 1); av_clip 196 libavfilter/vf_displace.c int Y = av_clip(y + (ysrc[x * step + c] - 128), 0, h - 1); av_clip 197 libavfilter/vf_displace.c int X = av_clip(x + (xsrc[x * step + c] - 128), 0, w - 1); av_clip 188 libavfilter/vf_fftfilt.c *(out->data[plane] + out->linesize[plane] * i + j) = av_clip(s->rdft_hdata[plane][i av_clip 206 libavfilter/vf_fftfilt.c *(dst + linesize * i + j) = av_clip(s->rdft_hdata[plane][i 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 400 libavfilter/vf_hue.c hue->saturation = av_clip(hue->saturation, SAT_MIN_VAL, SAT_MAX_VAL); av_clip 246 libavfilter/vf_kerndeint.c dstp[x] = av_clip(valf, lo, hi); av_clip 256 libavfilter/vf_kerndeint.c dstp[x] = av_clip(val, lo, hi); av_clip 107 libavfilter/vf_limiter.c dst[x] = av_clip(src[x], min, max); av_clip 128 libavfilter/vf_limiter.c dst[x] = av_clip(src[x], min, max); av_clip 123 libavfilter/vf_lumakey.c s->white = av_clip((s->threshold + s->tolerance) * s->max, 0, s->max); av_clip 124 libavfilter/vf_lumakey.c s->black = av_clip((s->threshold - s->tolerance) * s->max, 0, s->max); av_clip 168 libavfilter/vf_lut.c return av_clip(val, minval, maxval); av_clip 320 libavfilter/vf_lut.c s->var_values[VAR_CLIPVAL] = av_clip(val, min[color], max[color]); av_clip 322 libavfilter/vf_lut.c av_clip(min[color] + max[color] - s->var_values[VAR_VAL], av_clip 332 libavfilter/vf_lut.c s->lut[comp][val] = av_clip((int)res, 0, max[A]); av_clip 216 libavfilter/vf_mcdeint.c #define DELTA(j) av_clip(j, -x, w-1-x) av_clip 269 libavfilter/vf_minterpolate.c x = av_clip(x, me_ctx->x_min, me_ctx->x_max); av_clip 270 libavfilter/vf_minterpolate.c y = av_clip(y, me_ctx->y_min, me_ctx->y_max); av_clip 271 libavfilter/vf_minterpolate.c mv_x = av_clip(x_mv - x, -FFMIN(x - me_ctx->x_min, me_ctx->x_max - x), FFMIN(x - me_ctx->x_min, me_ctx->x_max - x)); av_clip 272 libavfilter/vf_minterpolate.c mv_y = av_clip(y_mv - y, -FFMIN(y - me_ctx->y_min, me_ctx->y_max - y), FFMIN(y - me_ctx->y_min, me_ctx->y_max - y)); av_clip 298 libavfilter/vf_minterpolate.c x = av_clip(x, x_min, x_max); av_clip 299 libavfilter/vf_minterpolate.c y = av_clip(y, y_min, y_max); av_clip 300 libavfilter/vf_minterpolate.c mv_x = av_clip(x_mv - x, -FFMIN(x - x_min, x_max - x), FFMIN(x - x_min, x_max - x)); av_clip 301 libavfilter/vf_minterpolate.c mv_y = av_clip(y_mv - y, -FFMIN(y - y_min, y_max - y), FFMIN(y - y_min, y_max - y)); av_clip 324 libavfilter/vf_minterpolate.c x = av_clip(x, x_min, x_max); av_clip 325 libavfilter/vf_minterpolate.c y = av_clip(y, y_min, y_max); av_clip 326 libavfilter/vf_minterpolate.c x_mv = av_clip(x_mv, x_min, x_max); av_clip 327 libavfilter/vf_minterpolate.c y_mv = av_clip(y_mv, y_min, y_max); av_clip 858 libavfilter/vf_minterpolate.c pixel_mvs->mvs[pixel_refs->nb][0] = av_clip((mv_x * alpha) / ALPHA_MAX, x_min, x_max);\ av_clip 859 libavfilter/vf_minterpolate.c pixel_mvs->mvs[pixel_refs->nb][1] = av_clip((mv_y * alpha) / ALPHA_MAX, y_min, y_max);\ av_clip 863 libavfilter/vf_minterpolate.c pixel_mvs->mvs[pixel_refs->nb][0] = av_clip(-mv_x * (ALPHA_MAX - alpha) / ALPHA_MAX, x_min, x_max);\ av_clip 864 libavfilter/vf_minterpolate.c pixel_mvs->mvs[pixel_refs->nb][1] = av_clip(-mv_y * (ALPHA_MAX - alpha) / ALPHA_MAX, y_min, y_max);\ av_clip 891 libavfilter/vf_minterpolate.c startc_x = av_clip(start_x, 0, width - 1); av_clip 892 libavfilter/vf_minterpolate.c startc_y = av_clip(start_y, 0, height - 1); av_clip 893 libavfilter/vf_minterpolate.c endc_x = av_clip(start_x + (2 << mi_ctx->log2_mb_size), 0, width - 1); av_clip 894 libavfilter/vf_minterpolate.c endc_y = av_clip(start_y + (2 << mi_ctx->log2_mb_size), 0, height - 1); av_clip 1043 libavfilter/vf_minterpolate.c startc_x = av_clip(start_x, 0, width - 1); av_clip 1044 libavfilter/vf_minterpolate.c startc_y = av_clip(start_y, 0, height - 1); av_clip 1045 libavfilter/vf_minterpolate.c endc_x = av_clip(start_x + (2 << mi_ctx->log2_mb_size), 0, width - 1); av_clip 1046 libavfilter/vf_minterpolate.c endc_y = av_clip(start_y + (2 << mi_ctx->log2_mb_size), 0, height - 1); av_clip 1068 libavfilter/vf_minterpolate.c int phi = av_clip(ALPHA_MAX * nb->sbad / sbad, 0, ALPHA_MAX); av_clip 1092 libavfilter/vf_minterpolate.c alpha = av_clip(alpha, 0, ALPHA_MAX); av_clip 181 libavfilter/vf_mix.c dst[x] = av_clip(val * s->wfactor, 0, s->max); av_clip 176 libavfilter/vf_nlmeans.c const int s1y = av_clip(y - r, 0, sh - 1); av_clip 177 libavfilter/vf_nlmeans.c const int s2y = av_clip(y - (r + offy), 0, sh - 1); av_clip 180 libavfilter/vf_nlmeans.c const int s1x = av_clip(x - r, 0, sw - 1); av_clip 181 libavfilter/vf_nlmeans.c const int s2x = av_clip(x - (r + offx), 0, sw - 1); av_clip 537 libavfilter/vf_overlay.c *d = av_clip(FAST_DIV255((*d - 128) * (255 - alpha)) + *s - 128, -128, 128) + 128; av_clip 70 libavfilter/vf_pp.c pp->mode_id = av_clip(strtol(args, NULL, 10), 0, PP_QUALITY_MAX); av_clip 81 libavfilter/vf_removegrain.c return av_clip(c, mi, ma); av_clip 97 libavfilter/vf_removegrain.c return av_clip(c, a[2 - 1 ], a[7 - 1]); av_clip 106 libavfilter/vf_removegrain.c return av_clip(c, a[3 - 1 ], a[6 - 1]); av_clip 115 libavfilter/vf_removegrain.c return av_clip(c, a[4 - 1 ], a[5 - 1]); av_clip 122 libavfilter/vf_removegrain.c const int c1 = FFABS(c - av_clip(c, mi1, ma1)); av_clip 123 libavfilter/vf_removegrain.c const int c2 = FFABS(c - av_clip(c, mi2, ma2)); av_clip 124 libavfilter/vf_removegrain.c const int c3 = FFABS(c - av_clip(c, mi3, ma3)); av_clip 125 libavfilter/vf_removegrain.c const int c4 = FFABS(c - av_clip(c, mi4, ma4)); av_clip 131 libavfilter/vf_removegrain.c return av_clip(c, mi4, ma4); av_clip 133 libavfilter/vf_removegrain.c return av_clip(c, mi2, ma2); av_clip 135 libavfilter/vf_removegrain.c return av_clip(c, mi3, ma3); av_clip 138 libavfilter/vf_removegrain.c return av_clip(c, mi1, ma1); av_clip 150 libavfilter/vf_removegrain.c const int cli1 = av_clip(c, mi1, ma1); av_clip 151 libavfilter/vf_removegrain.c const int cli2 = av_clip(c, mi2, ma2); av_clip 152 libavfilter/vf_removegrain.c const int cli3 = av_clip(c, mi3, ma3); av_clip 153 libavfilter/vf_removegrain.c const int cli4 = av_clip(c, mi4, ma4); av_clip 182 libavfilter/vf_removegrain.c const int cli1 = av_clip(c, mi1, ma1); av_clip 183 libavfilter/vf_removegrain.c const int cli2 = av_clip(c, mi2, ma2); av_clip 184 libavfilter/vf_removegrain.c const int cli3 = av_clip(c, mi3, ma3); av_clip 185 libavfilter/vf_removegrain.c const int cli4 = av_clip(c, mi4, ma4); av_clip 214 libavfilter/vf_removegrain.c const int cli1 = av_clip(c, mi1, ma1); av_clip 215 libavfilter/vf_removegrain.c const int cli2 = av_clip(c, mi2, ma2); av_clip 216 libavfilter/vf_removegrain.c const int cli3 = av_clip(c, mi3, ma3); av_clip 217 libavfilter/vf_removegrain.c const int cli4 = av_clip(c, mi4, ma4); av_clip 249 libavfilter/vf_removegrain.c return av_clip(c, mi4, ma4); av_clip 251 libavfilter/vf_removegrain.c return av_clip(c, mi2, ma2); av_clip 253 libavfilter/vf_removegrain.c return av_clip(c, mi3, ma3); av_clip 256 libavfilter/vf_removegrain.c return av_clip(c, mi1, ma1); av_clip 320 libavfilter/vf_removegrain.c return av_clip(average, FFMIN(a2, a7), FFMAX(a2, a7)); av_clip 323 libavfilter/vf_removegrain.c return av_clip(average, FFMIN(a3, a6), FFMAX(a3, a6)); av_clip 326 libavfilter/vf_removegrain.c return av_clip(average, FFMIN(a1, a8), FFMAX(a1, a8)); av_clip 336 libavfilter/vf_removegrain.c return av_clip(c, FFMIN(l, u), FFMAX(l, u)); av_clip 349 libavfilter/vf_removegrain.c return av_clip(c, FFMIN(a4, a5), FFMAX(a4, a5)); av_clip 352 libavfilter/vf_removegrain.c return av_clip(c, FFMIN(a2, a7), FFMAX(a2, a7)); av_clip 355 libavfilter/vf_removegrain.c return av_clip(c, FFMIN(a3, a6), FFMAX(a3, a6)); av_clip 358 libavfilter/vf_removegrain.c return av_clip(c, FFMIN(a1, a8), FFMAX(a1, a8)); av_clip 392 libavfilter/vf_removegrain.c return av_clip(c, mi, ma); av_clip 405 libavfilter/vf_removegrain.c return av_clip(c, mi, ma); av_clip 237 libavfilter/vf_rotate.c int int_x = av_clip(x>>16, 0, max_x); av_clip 238 libavfilter/vf_rotate.c int int_y = av_clip(y>>16, 0, max_y); av_clip 267 libavfilter/vf_rotate.c int int_x = av_clip(x>>16, 0, max_x); av_clip 268 libavfilter/vf_rotate.c int int_y = av_clip(y>>16, 0, max_y); av_clip 475 libavfilter/vf_rotate.c int x2 = av_clip(x1, 0, inw-1); av_clip 476 libavfilter/vf_rotate.c int y2 = av_clip(y1, 0, inh-1); av_clip 456 libavfilter/vf_spp.c s->log2_count = av_clip(strtol(args, NULL, 10), 0, MAX_LEVEL); av_clip 89 libavfilter/vf_subtitles.c const int ass_level_clip = av_clip(ass_level, 0, av_clip 148 libavfilter/vf_swaprect.c x1[0] = av_clip(x1[0], 0, inlink->w - 1); av_clip 149 libavfilter/vf_swaprect.c y1[0] = av_clip(y1[0], 0, inlink->w - 1); av_clip 151 libavfilter/vf_swaprect.c x2[0] = av_clip(x2[0], 0, inlink->w - 1); av_clip 152 libavfilter/vf_swaprect.c y2[0] = av_clip(y2[0], 0, inlink->w - 1); av_clip 188 libavfilter/vf_tinterlace.c dst_le = av_clip((4 + ((src_le + src_x + src_ab) << 1) av_clip 1420 libavfilter/vf_v360.c new_ui = av_clip(lrintf(0.5f * new_ewi * (uf + 1.f)), 0, new_ewi - 1); av_clip 1421 libavfilter/vf_v360.c new_vi = av_clip(lrintf(0.5f * new_ehi * (vf + 1.f)), 0, new_ehi - 1); av_clip 1566 libavfilter/vf_v360.c new_ui = av_clip(lrintf(0.5f * ewi * (uf + 1.f)), 0, ewi - 1); av_clip 1567 libavfilter/vf_v360.c new_vi = av_clip(lrintf(0.5f * new_ehi * (vf + 1.f)), 0, new_ehi - 1); av_clip 1646 libavfilter/vf_v360.c new_ui = av_clip(lrintf(0.5f * new_ewi * (uf + 1.f)), 0, new_ewi - 1); av_clip 1647 libavfilter/vf_v360.c new_vi = av_clip(lrintf(0.5f * ehi * (vf + 1.f)), 0, ehi - 1); av_clip 1814 libavfilter/vf_v360.c us[i][j] = visible ? av_clip(ui + j - 1, 0, width - 1) : 0; av_clip 1815 libavfilter/vf_v360.c vs[i][j] = visible ? av_clip(vi + i - 1, 0, height - 1) : 0; av_clip 1892 libavfilter/vf_v360.c us[i][j] = av_clip(ui + j - 1, 0, width - 1); av_clip 1893 libavfilter/vf_v360.c vs[i][j] = av_clip(vi + i - 1, 0, height - 1); av_clip 1956 libavfilter/vf_v360.c us[i][j] = visible ? av_clip(ui + j - 1, 0, width - 1) : 0; av_clip 1957 libavfilter/vf_v360.c vs[i][j] = visible ? av_clip(vi + i - 1, 0, height - 1) : 0; av_clip 1994 libavfilter/vf_v360.c us[i][j] = av_clip(ui + j - 1, 0, width - 1); av_clip 1995 libavfilter/vf_v360.c vs[i][j] = av_clip(vi + i - 1, 0, height - 1); av_clip 2062 libavfilter/vf_v360.c us[i][j] = av_clip(ui + j - 1, 0, width - 1); av_clip 2063 libavfilter/vf_v360.c vs[i][j] = av_clip(vi + i - 1, 0, height - 1); av_clip 2176 libavfilter/vf_v360.c us[i][j] = av_clip(ui + j - 1, 0, width - 1); av_clip 2177 libavfilter/vf_v360.c vs[i][j] = av_clip(vi + i - 1, 0, height - 1); av_clip 2245 libavfilter/vf_v360.c us[i][j] = av_clip(ui + j - 1, 0, width - 1); av_clip 2246 libavfilter/vf_v360.c vs[i][j] = av_clip(vi + i - 1, 0, height - 1); av_clip 2496 libavfilter/vf_v360.c us[i][j] = av_clip(ui + j - 1, 0, width - 1); av_clip 2497 libavfilter/vf_v360.c vs[i][j] = av_clip(vi + i - 1, 0, height - 1); av_clip 2652 libavfilter/vf_v360.c us[i][j] = visible ? av_clip(ui + j - 1, 0, width - 1) : 0; av_clip 2653 libavfilter/vf_v360.c vs[i][j] = visible ? av_clip(vi + i - 1, 0, height - 1) : 0; av_clip 2732 libavfilter/vf_v360.c us[i][j] = visible ? av_clip(ui + j - 1, 0, width - 1) : 0; av_clip 2733 libavfilter/vf_v360.c vs[i][j] = visible ? av_clip(vi + i - 1, 0, height - 1) : 0; av_clip 2842 libavfilter/vf_v360.c us[i][j] = visible ? av_clip(ui + j - 1, 0, width - 1) : 0; av_clip 2843 libavfilter/vf_v360.c vs[i][j] = visible ? av_clip(vi + i - 1, 0, height - 1) : 0; av_clip 3063 libavfilter/vf_v360.c us[i][j] = av_clip(u_shift + ui + j - 1, 0, width - 1); av_clip 3064 libavfilter/vf_v360.c vs[i][j] = av_clip( vi + i - 1, 0, height - 1); av_clip 3210 libavfilter/vf_v360.c us[i][j] = u_shift + av_clip(ui + j - 1, 0, ew - 1); av_clip 3211 libavfilter/vf_v360.c vs[i][j] = v_shift + av_clip(vi + i - 1, 0, eh - 1); av_clip 3309 libavfilter/vf_v360.c us[i][j] = u_shift + av_clip(ui + j - 1, 0, ew - 1); av_clip 3310 libavfilter/vf_v360.c vs[i][j] = v_shift + av_clip(vi + i - 1, 0, eh - 1); av_clip 529 libavfilter/vf_vaguedenoiser.c dstp16[x] = av_clip(input[x] + 0.5f, 0, s->peak); av_clip 589 libavfilter/vf_vectorscope.c dpx[pos] = av_clip(dpd[pos] + dpd[pos] * s->ftint[0], 0, max); av_clip 590 libavfilter/vf_vectorscope.c dpy[pos] = av_clip(dpd[pos] + dpd[pos] * s->ftint[1], 0, max); av_clip 1130 libavfilter/vf_vectorscope.c x = av_clip(x, 0, out->width - 9); av_clip 1131 libavfilter/vf_vectorscope.c y = av_clip(y, 0, out->height - 9); av_clip 1196 libavfilter/vf_vectorscope.c x = av_clip(x, 0, out->width - 9); av_clip 1197 libavfilter/vf_vectorscope.c y = av_clip(y, 0, out->height - 9); av_clip 1256 libavfilter/vf_vectorscope.c x = av_clip(x, 0, out->width - 9); av_clip 1257 libavfilter/vf_vectorscope.c y = av_clip(y, 0, out->height - 9); av_clip 1314 libavfilter/vf_vectorscope.c x = av_clip(x, 0, out->width - 9); av_clip 1315 libavfilter/vf_vectorscope.c y = av_clip(y, 0, out->height - 9); av_clip 1373 libavfilter/vf_vectorscope.c x = av_clip(x, 0, out->width - 9); av_clip 1374 libavfilter/vf_vectorscope.c y = av_clip(y, 0, out->height - 9); av_clip 1431 libavfilter/vf_vectorscope.c x = av_clip(x, 0, out->width - 9); av_clip 1432 libavfilter/vf_vectorscope.c y = av_clip(y, 0, out->height - 9); av_clip 166 libavfilter/vf_w3fdif.c *out_pixel = av_clip(*work_pixel, 0, 255 * 256 * 128) >> 15; av_clip 265 libavfilter/vf_w3fdif.c *out_pixel = av_clip(*work_pixel, 0, max) >> 15; av_clip 111 libavfilter/vf_xmedian.c s->index = av_clip(s->radius * 2.f * s->percentile, 1, s->nb_inputs - 1); av_clip 1590 libavformat/asfdec_o.c n = av_clip(n, 0, ((data_end - asf->first_packet_offset) / asf->packet_size - 1)); 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 161 libavformat/hlsplaylist.c milli = av_clip(lrint(1000*(*prog_date_time - tt)), 0, 999); av_clip 434 libavformat/id3v2enc.c padding_bytes = av_clip(padding_bytes, 10, 268435455 - id3->len); av_clip 312 libavformat/libmodplug.c pkt->data[y*modplug->linesize + x*3 + 2] |= av_clip((int)color, 0, 0xf)<<4; av_clip 2592 libavformat/mxfdec.c time.tm_mon = av_clip(time.tm_mon, 0, 11); av_clip 2593 libavformat/mxfdec.c time.tm_mday = av_clip(time.tm_mday, 1, 31); av_clip 2594 libavformat/mxfdec.c time.tm_hour = av_clip(time.tm_hour, 0, 23); av_clip 2595 libavformat/mxfdec.c time.tm_min = av_clip(time.tm_min, 0, 59); av_clip 2596 libavformat/mxfdec.c time.tm_sec = av_clip(time.tm_sec, 0, 59); av_clip 2597 libavformat/mxfdec.c msecs = av_clip(msecs, 0, 999); av_clip 198 libavformat/rtpdec_jpeg.c factor = av_clip(q, 1, 99); av_clip 209 libavformat/rtpdec_jpeg.c val = av_clip(val, 1, 255); av_clip 90 libavformat/xa.c st->codecpar->bit_rate = av_clip(15LL * st->codecpar->channels * 8 * av_clip 224 libavresample/tests/avresample.c num_formats = av_clip(num_formats, 1, FF_ARRAY_ELEMS(formats)); av_clip 228 libavresample/tests/avresample.c num_rates = av_clip(num_rates, 1, FF_ARRAY_ELEMS(rates)); av_clip 232 libavresample/tests/avresample.c num_layouts = av_clip(num_layouts, 1, FF_ARRAY_ELEMS(layouts)); av_clip 546 libavutil/common.h #ifndef av_clip av_clip 194 libavutil/eval.c case e_ld: return e->value * p->var[av_clip(eval_expr(p, e->param[0]), 0, VARS-1)]; av_clip 228 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 233 libavutil/eval.c int idx= av_clip(eval_expr(p, e->param[0]), 0, VARS-1); av_clip 248 libavutil/eval.c int id = e->param[2] ? av_clip(eval_expr(p, e->param[2]), 0, VARS-1) : 0; av_clip 323 libavutil/eval.c case e_st : return e->value * (p->var[av_clip(d, 0, VARS-1)]= d2); av_clip 391 libavutil/log.c colored_fputs(av_clip(level >> 3, 0, NB_LEVELS - 1), tint >> 8, part[2].str); av_clip 393 libavutil/log.c colored_fputs(av_clip(level >> 3, 0, NB_LEVELS - 1), tint >> 8, part[3].str); av_clip 70 libswscale/alphablend.c d[x] = av_clip((u + (u >> shift)) >> shift, 0, max); av_clip 80 libswscale/alphablend.c d[x] = av_clip((u + (u >> shift)) >> shift, 0, max); av_clip 106 libswscale/alphablend.c d[x] = av_clip((u + (u >> shift)) >> shift, 0, max); av_clip 112 libswscale/alphablend.c d[x] = av_clip((u + (u >> shift)) >> shift, 0, max); av_clip 140 libswscale/alphablend.c d[plane_count*x + plane] = av_clip((u + (u >> shift)) >> shift, 0, max); av_clip 149 libswscale/alphablend.c d[plane_count*x + plane] = av_clip((u + (u >> shift)) >> shift, 0, max); av_clip 1920 libswscale/output.c r = av_clip(r, 0, isrgb8 ? 7 : 1); av_clip 1921 libswscale/output.c g = av_clip(g, 0, isrgb8 ? 7 : 3); av_clip 1922 libswscale/output.c b = av_clip(b, 0, isrgb8 ? 3 : 1); av_clip 70 tests/checkasm/huffyuvdsp.c int width = 16 * av_clip(rnd(), 16, 128); av_clip 198 tests/checkasm/llviddsp.c int width = 16 * av_clip(rnd(), 16, 128);