FFMAX 71 doc/examples/decoding_encoding.c best_samplerate = FFMAX(*p, best_samplerate); FFMAX 695 ffmpeg.c pkt->pts = FFMAX(pkt->pts, max); FFMAX 1525 ffmpeg.c pts = FFMAX(pts, av_rescale_q(av_stream_get_end_pts(ost->st), FFMAX 3669 ffmpeg.c pkt_dts + AV_TIME_BASE/10 < FFMAX(ist->pts, ist->dts)) { FFMAX 602 ffmpeg_filter.c w = FFMAX(w, avf->streams[i]->codec->width); FFMAX 603 ffmpeg_filter.c h = FFMAX(h, avf->streams[i]->codec->height); FFMAX 607 ffmpeg_filter.c w = FFMAX(w, 720); FFMAX 608 ffmpeg_filter.c h = FFMAX(h, 576); FFMAX 1639 ffmpeg_opt.c out_ch->start = FFMAX(0, in_ch->start - ts_off); FFMAX 125 ffplay.c #define FRAME_QUEUE_SIZE FFMAX(SAMPLE_QUEUE_SIZE, FFMAX(VIDEO_PICTURE_QUEUE_SIZE, SUBPICTURE_QUEUE_SIZE)) FFMAX 1092 ffplay.c rect->w = FFMAX(width, 1); FFMAX 1093 ffplay.c rect->h = FFMAX(height, 1); FFMAX 1479 ffplay.c set_clock_speed(&is->extclk, FFMAX(EXTERNAL_CLOCK_SPEED_MIN, is->extclk.speed - EXTERNAL_CLOCK_SPEED_STEP)); FFMAX 1545 ffplay.c sync_threshold = FFMAX(AV_SYNC_THRESHOLD_MIN, FFMIN(AV_SYNC_THRESHOLD_MAX, delay)); FFMAX 1548 ffplay.c delay = FFMAX(0, delay + diff); FFMAX 1750 ffplay.c bufferdiff = vp->bmp ? FFMAX(vp->bmp->pixels[0], vp->bmp->pixels[1]) - FFMIN(vp->bmp->pixels[0], vp->bmp->pixels[1]) : 0; FFMAX 1975 ffplay.c codec->sample_aspect_ratio.num, FFMAX(codec->sample_aspect_ratio.den, 1)); FFMAX 2406 ffplay.c wanted_nb_samples = FFMIN(FFMAX(wanted_nb_samples, min_nb_samples), max_nb_samples); FFMAX 2601 ffplay.c wanted_spec.samples = FFMAX(SDL_AUDIO_MIN_BUFFER_SIZE, 2 << av_log2(wanted_spec.freq / SDL_AUDIO_MAX_CALLBACKS_PER_SEC)); FFMAX 3379 ffplay.c i = FFMAX(i, 0); FFMAX 2516 ffserver.c c->stream->feed_write_index = FFMAX(ffm_read_write_index(fd), FFMAX 3674 ffserver.c feed->feed_write_index = FFMAX(ffm_read_write_index(fd), FFM_PACKET_SIZE); FFMAX 281 ffserver_config.c av->bit_rate_tolerance = FFMAX(av->bit_rate / 4, FFMAX 451 libavcodec/4xm.c bytestream_size = FFMAX(length - bitstream_size - wordstream_size, 0); FFMAX 631 libavcodec/4xm.c if (ptr_end - ptr < FFMAX(end - start + 1, 0) + 1) { FFMAX 176 libavcodec/a64multienc.c best_cb[x] = FFMAX(c->mc_luma_vals[1], best_cb[x]); FFMAX 279 libavcodec/aaccoder.c maxval = FFMAX(maxval, scaled[w2*128+i]); FFMAX 572 libavcodec/aaccoder.c q1f = FFMAX(q1f, t); FFMAX 638 libavcodec/aaccoder.c qmax = FFMAX(qmax, t); FFMAX 885 libavcodec/aaccoder.c last = FFMAX(last, i); FFMAX 886 libavcodec/aaccoder.c lastband = FFMAX(lastband, curband); FFMAX 916 libavcodec/aaccoder.c maxq[w*16+g] = FFMAX(maxq[w*16+g], fabsf(coefs[w2*128 + i])); FFMAX 925 libavcodec/aaccoder.c start2 = FFMAX(peakpos - 2, start2); FFMAX 1070 libavcodec/aaccoder.c float maxthr = FFMAX(band0->threshold, band1->threshold); FFMAX 2370 libavcodec/aacdec.c bottom = FFMAX(0, top - tns->length[w][filt]); FFMAX 2826 libavcodec/aacdec.c FFMAX(ac->oc[1].status, FFMAX 337 libavcodec/aacenc.c maxsfb = FFMAX(maxsfb, cmaxsfb); FFMAX 361 libavcodec/aacenc.c ics0->max_sfb = FFMAX(ics0->max_sfb, ics1->max_sfb); FFMAX 93 libavcodec/aacps.c e_prev = FFMAX(e_prev, 0); \ FFMAX 665 libavcodec/aacps.c peak_decay_nrg[i] = FFMAX(decayed_peak, power[i][n]); FFMAX 161 libavcodec/aacps_tablegen.h rho = FFMAX(icc_invq[icc], 0.05f); FFMAX 240 libavcodec/aacpsy.c if (FFMAX(bitrate, psy_abr_map[i].quality) != bitrate) { FFMAX 501 libavcodec/aacpsy.c ctx->pe.max = FFMAX(pe, ctx->pe.max); FFMAX 541 libavcodec/aacpsy.c return FFMAX(reduction, 0.0f); FFMAX 561 libavcodec/aacpsy.c thr = FFMAX(band->thr, band->energy * min_snr); FFMAX 626 libavcodec/aacpsy.c float pe = pctx->chan_bitrate > 32000 ? 0.0f : FFMAX(50.0f, 100.0f - pctx->chan_bitrate * 100.0f / 32000.0f); FFMAX 642 libavcodec/aacpsy.c bands[g].thr = FFMAX(bands[g].thr, bands[g-1].thr * coeffs[g].spread_hi[0]); FFMAX 643 libavcodec/aacpsy.c spread_en[w+g] = FFMAX(bands[g].energy, spread_en[w+g-1] * coeffs[g].spread_hi[1]); FFMAX 646 libavcodec/aacpsy.c bands[g].thr = FFMAX(bands[g].thr, bands[g+1].thr * coeffs[g].spread_low[0]); FFMAX 647 libavcodec/aacpsy.c spread_en[w+g] = FFMAX(spread_en[w+g], spread_en[w+g+1] * coeffs[g].spread_low[1]); FFMAX 653 libavcodec/aacpsy.c band->thr_quiet = band->thr = FFMAX(band->thr, coeffs[g].ath); FFMAX 656 libavcodec/aacpsy.c band->thr = FFMAX(PSY_3GPP_RPEMIN*band->thr, FFMIN(band->thr, FFMAX 718 libavcodec/aacpsy.c desired_pe_no_ah = FFMAX(desired_pe - (pe - pe_no_ah), 0.0f); FFMAX 752 libavcodec/aacpsy.c thr = FFMAX(band->thr, coeffs[g].min_snr * band->energy); FFMAX 857 libavcodec/aacpsy.c p = FFMAX(p, fabsf(*pf)); FFMAX 889 libavcodec/aacpsy.c float const m = FFMAX(u, v); FFMAX 545 libavcodec/aacsbr.c sbr->patch_num_subbands[sbr->num_patches] = FFMAX(sb - usb, 0); FFMAX 595 libavcodec/aacsbr.c sbr->n_q = FFMAX(1, lrintf(sbr->spectrum_params.bs_noise_bands * FFMAX 754 libavcodec/aacsbr.c idx = ch_data->bs_num_env - FFMAX((int)bs_pointer - 1, 1); FFMAX 1399 libavcodec/aacsbr.c const int i_Temp = FFMAX(2*sbr->data[ch].t_env_num_env_old - i_f, 0); FFMAX 81 libavcodec/ac3.c a = FFMAX(a - 64, 0); FFMAX 93 libavcodec/ac3.c return FFMAX(a - 128, 0); FFMAX 114 libavcodec/ac3.c int max = FFMAX(v, psd[bin]); FFMAX 163 libavcodec/ac3.c fastleak = FFMAX(fastleak - s->fast_decay, band_psd[band] - fast_gain); FFMAX 164 libavcodec/ac3.c slowleak = FFMAX(slowleak - s->slow_decay, band_psd[band] - s->slow_gain); FFMAX 165 libavcodec/ac3.c excite[band] = FFMAX(fastleak - lowcomp, slowleak); FFMAX 176 libavcodec/ac3.c fastleak = FFMAX(fastleak - s->fast_decay, band_psd[band] - fast_gain); FFMAX 177 libavcodec/ac3.c slowleak = FFMAX(slowleak - s->slow_decay, band_psd[band] - s->slow_gain); FFMAX 178 libavcodec/ac3.c excite[band] = FFMAX(fastleak, slowleak); FFMAX 188 libavcodec/ac3.c mask[band] = FFMAX(ff_ac3_hearing_threshold_tab[band >> s->sr_shift][s->sr_code], excite[band]); FFMAX 107 libavcodec/ac3_parser.c hdr->sr_shift = FFMAX(hdr->bitstream_id, 8) - 8; FFMAX 1176 libavcodec/ac3dec.c bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 2); FFMAX 1196 libavcodec/ac3dec.c bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 1); FFMAX 1206 libavcodec/ac3dec.c bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 2); FFMAX 1222 libavcodec/ac3dec.c bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 2); FFMAX 1243 libavcodec/ac3dec.c bit_alloc_stages[CPL_CH] = FFMAX(bit_alloc_stages[CPL_CH], 2); FFMAX 1264 libavcodec/ac3dec.c bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 2); FFMAX 1276 libavcodec/ac3dec.c bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 2); FFMAX 123 libavcodec/ac3dsp.c int m = (FFMAX(mask[band] - snr_offset - floor, 0) & 0x1FE0) + floor; FFMAX 305 libavcodec/ac3enc_template.c max_exp = FFMAX(exp, max_exp); FFMAX 308 libavcodec/ac3enc_template.c master_exp = FFMAX(master_exp, 0); FFMAX 89 libavcodec/acelp_pitch_delay.c quant_energy[0] = FFMAX(avg_gain >> log2_ma_pred_order, -10240) - 4096; // -10 and -4 in (5.10) FFMAX 1216 libavcodec/adpcm.c count = FFMAX(count, count1); FFMAX 391 libavcodec/adpcmenc.c STORE_NODE(ms, FFMAX(16, FFMAX 772 libavcodec/alsdec.c *bd->ltp_lag += FFMAX(4, opt_order + 1); FFMAX 894 libavcodec/alsdec.c for (ltp_smp = FFMAX(*bd->ltp_lag - 2, 0); ltp_smp < block_length; ltp_smp++) { FFMAX 896 libavcodec/alsdec.c int begin = FFMAX(0, center - 2); FFMAX 704 libavcodec/amrwbdec.c return FFMAX(0.0, 1.25 - acc * 0.8 * 512); FFMAX 731 libavcodec/amrwbdec.c g0 = FFMAX(*prev_tr_gain, fixed_gain * FFMAX 876 libavcodec/amrwbdec.c return av_clipf((1.0 - FFMAX(0.0, tilt)) * (1.25 - 0.25 * wsp), 0.1, 1.0); FFMAX 193 libavcodec/ansi.c s->y = FFMAX(s->y - (s->nb_args > 0 ? s->args[0]*s->font_height : s->font_height), 0); FFMAX 202 libavcodec/ansi.c s->x = FFMAX(s->x - (s->nb_args > 0 ? s->args[0]*FONT_WIDTH : FONT_WIDTH), 0); FFMAX 387 libavcodec/ansi.c s->x = FFMAX(s->x - 1, 0); FFMAX 426 libavcodec/ansi.c s->args[s->nb_args] = FFMAX(s->args[s->nb_args], 0) * 10 + buf[0] - '0'; FFMAX 161 libavcodec/ass.c sub->end_display_time = FFMAX(sub->end_display_time, 10 * duration); FFMAX 452 libavcodec/atrac3.c last_pos = FFMAX(components[i].pos + components[i].num_coefs, last_pos); FFMAX 615 libavcodec/atrac3.c num_bands = FFMAX((last_tonal + 256) >> 8, num_bands); FFMAX 433 libavcodec/atrac3plusdsp.c gcv = FFMAX(gcv, gain_lev - (g2->lev_code[i] - 6)); FFMAX 436 libavcodec/atrac3plusdsp.c gcv = FFMAX(gcv, 6 - g1->lev_code[i]); FFMAX 972 libavcodec/bink.c init_lengths(c, FFMAX(width, 8), bw); FFMAX 219 libavcodec/bitstream.c subtable_bits = FFMAX(subtable_bits, n); FFMAX 541 libavcodec/cavs.c int den = h->scale_den[FFMAX(src->ref, 0)]; FFMAX 1192 libavcodec/cavsdec.c return FFMAX(0, buf_ptr - buf); FFMAX 236 libavcodec/cdgraphics.c for (y = FFMAX(0, vinc); y < FFMIN(CDG_FULL_HEIGHT + vinc, CDG_FULL_HEIGHT); y++) FFMAX 237 libavcodec/cdgraphics.c memcpy(out + FFMAX(0, hinc) + stride * y, FFMAX 238 libavcodec/cdgraphics.c in + FFMAX(0, hinc) - hinc + (y - vinc) * stride, FFMAX 1432 libavcodec/dcadec.c s->core_ext_mask = FFMAX(s->core_ext_mask, 0); FFMAX 229 libavcodec/dct-test.c sysErrMax = FFMAX(sysErrMax, FFABS(sysErr[i])); FFMAX 337 libavcodec/diracdec.c top_padding = FFMAX(1<<MAX_DWT_LEVELS, max_yblen/2); FFMAX 668 libavcodec/diracdec.c b->length = FFMIN(b->length, FFMAX(get_bits_left(&s->gb)/8, 0)); FFMAX 749 libavcodec/diracdec.c quant = FFMAX(quant_base - s->lowdelay.quant[level][orientation], 0); FFMAX 762 libavcodec/diracdec.c quant = FFMAX(quant_base - s->lowdelay.quant[level][orientation], 0); FFMAX 910 libavcodec/diracdec.c if (FFMAX(s->plane[0].xblen, s->plane[0].yblen) > MAX_BLOCKSIZE) { FFMAX 1646 libavcodec/diracdec.c start = FFMAX(dsty, 0); FFMAX 847 libavcodec/dnxhdenc.c lambda = FFMAX(1, lambda); FFMAX 851 libavcodec/dnxhdenc.c last_higher = FFMAX(lambda, last_higher); FFMAX 913 libavcodec/dnxhdenc.c last_higher = FFMAX(qscale, last_higher); FFMAX 442 libavcodec/dvdec.c for (x = 0; x < (1 << FFMAX(log2_blocksize - 1, 0)); x++) { FFMAX 292 libavcodec/dvdsubenc.c xmax = FFMAX(xmax, h->rects[i]->x + h->rects[i]->w); FFMAX 293 libavcodec/dvdsubenc.c ymax = FFMAX(ymax, h->rects[i]->y + h->rects[i]->h); FFMAX 189 libavcodec/elbg.c max[i]=FFMAX(max[i], elbg->points[tempcell->index*elbg->dim + i]); FFMAX 220 libavcodec/error_resilience.c int64_t weight = 256 * 256 * 256 * 16 / FFMAX(dist[b_x + b_y*stride][j], 1); FFMAX 275 libavcodec/error_resilience.c d = FFMAX(d, 0); FFMAX 346 libavcodec/error_resilience.c d = FFMAX(d, 0); FFMAX 552 libavcodec/error_resilience.c max_x = FFMAX(max_x, mv_predictor[j][0]); FFMAX 553 libavcodec/error_resilience.c max_y = FFMAX(max_y, mv_predictor[j][1]); FFMAX 554 libavcodec/error_resilience.c max_r = FFMAX(max_r, ref[j]); FFMAX 710 libavcodec/error_resilience.c skip_amount = FFMAX(undamaged_count / 50, 1); // check only up to 50 MBs FFMAX 596 libavcodec/evrcdec.c for (i = FFMIN(MIN_DELAY, idx - 3); i <= FFMAX(MAX_DELAY, idx + 3); i++) { FFMAX 711 libavcodec/evrcdec.c e->fade_scale = FFMAX(e->fade_scale - 0.05, 0.0); FFMAX 154 libavcodec/ffv1enc.c for (j = FFMAX(i - 10, 1); j < FFMIN(i + 11, 256); j++) { FFMAX 676 libavcodec/ffv1enc.c s->version = FFMAX(s->version, 2); FFMAX 680 libavcodec/ffv1enc.c s->version = FFMAX(s->version, 2); FFMAX 686 libavcodec/ffv1enc.c s->version = FFMAX(s->version, avctx->level); FFMAX 742 libavcodec/ffv1enc.c s->version = FFMAX(s->version, 1); FFMAX 782 libavcodec/ffv1enc.c s->version = FFMAX(s->version, 1); FFMAX 262 libavcodec/flac_parser.c size = FFMAX(size, temp); FFMAX 268 libavcodec/flac_parser.c size = FFMAX(size, temp); FFMAX 638 libavcodec/flac_parser.c start_offset = FFMAX(0, start_offset); FFMAX 258 libavcodec/g723_1.c bits= FFMAX(bits, 0); FFMAX 309 libavcodec/g723_1.c cur_lsp[0] = FFMAX(cur_lsp[0], 0x180); FFMAX 708 libavcodec/g723_1.c temp1 = FFMAX(energy[i], temp1); FFMAX 866 libavcodec/g723_1.c bits2 = FFMAX(0, bits2); FFMAX 1535 libavcodec/g723_1.c max = FFMAX(max, FFABS(f[i])); FFMAX 1645 libavcodec/g723_1.c max = FFMAX(weight[i], max); FFMAX 1794 libavcodec/g723_1.c max = FFMAX(max, FFABS(energy[i])); FFMAX 1991 libavcodec/g723_1.c max = FFMAX(max, FFABS(ccr_buf[i])); FFMAX 299 libavcodec/g729dec.c return FFMAX(past_onset-1, 0); FFMAX 569 libavcodec/g729dec.c gain_corr_factor = FFMAX(gain_corr_factor, 1024); FFMAX 168 libavcodec/g729postfilter.c sh_ener = FFMAX(av_log2(ener) - 14, 0); FFMAX 242 libavcodec/g729postfilter.c sh_gain_num = FFMAX(sh_gain_den, sh_ener); FFMAX 261 libavcodec/g729postfilter.c gain_num_short = FFMAX(sum >> sh_gain_num, 0); FFMAX 323 libavcodec/g729postfilter.c tmp = FFMAX(av_log2(sum) - 14, 0); FFMAX 332 libavcodec/g729postfilter.c tmp = FFMAX(av_log2(sum) - 14, 0); FFMAX 394 libavcodec/g729postfilter.c lt_filt_factor_a = FFMAX((L64_temp1 << 15) / (L64_temp1 + L64_temp0), MIN_LT_FILT_FACTOR_A); FFMAX 544 libavcodec/g729postfilter.c *voicing = FFMAX(*voicing, long_term_filter(adsp, pitch_delay_int, FFMAX 430 libavcodec/h264.c const int row_mb_num = 2*h->mb_stride*FFMAX(h->avctx->thread_count, 1); FFMAX 915 libavcodec/h264.c out_of_order = FFMAX(out_of_order, 1); FFMAX 49 libavcodec/h264_mb.c return FFMAX(0, bottom); FFMAX 72 libavcodec/h264_mb.c refs[0][ref_n] = FFMAX(refs[0][ref_n], my); FFMAX 85 libavcodec/h264_mb.c refs[1][ref_n] = FFMAX(refs[1][ref_n], my); FFMAX 424 libavcodec/h264_ps.c sps->ref_frame_count = FFMAX(2, sps->ref_frame_count); FFMAX 732 libavcodec/h264_refs.c if (h->long_ref_count + h->short_ref_count > FFMAX(h->sps.ref_frame_count, 1)) { FFMAX 1596 libavcodec/hevc.c int y = FFMAX(0, (mv->y >> 2) + y0 + height + 9); FFMAX 709 libavcodec/hevc_cabac.c int c_max= FFMAX(5, s->pps->chroma_qp_offset_list_len_minus1); FFMAX 1539 libavcodec/hevc_cabac.c int max_xy = FFMAX(last_significant_coeff_x, last_significant_coeff_y); FFMAX 165 libavcodec/iff.c count = FFMAX(count, 64); FFMAX 466 libavcodec/imc.c highest = FFMAX(highest, chctx->flcoeffs1[i]); FFMAX 123 libavcodec/imdct15.c s->exptab[i] = av_malloc(sizeof(*s->exptab[i]) * FFMAX(N, 19)); FFMAX 485 libavcodec/intrax8.c s->block_last_index[0] = FFMAX(s->block_last_index[0], 7*8); FFMAX 493 libavcodec/intrax8.c s->block_last_index[0] = FFMAX(s->block_last_index[0], 7*8); FFMAX 501 libavcodec/intrax8.c s->block_last_index[0] = FFMAX(s->block_last_index[0], 7); FFMAX 96 libavcodec/intrax8dsp.c max_pix=FFMAX(max_pix,c); FFMAX 109 libavcodec/intrax8dsp.c max_pix=FFMAX(max_pix, c); FFMAX 356 libavcodec/intrax8dsp.c min=FFMIN(min,p3); max=FFMAX(max,p3); FFMAX 357 libavcodec/intrax8dsp.c min=FFMIN(min,p5); max=FFMAX(max,p5); FFMAX 358 libavcodec/intrax8dsp.c min=FFMIN(min,p8); max=FFMAX(max,p8); FFMAX 360 libavcodec/intrax8dsp.c min=FFMIN(min,p2); max=FFMAX(max,p2); FFMAX 361 libavcodec/intrax8dsp.c min=FFMIN(min,p4); max=FFMAX(max,p4); FFMAX 362 libavcodec/intrax8dsp.c min=FFMIN(min,p6); max=FFMAX(max,p6); FFMAX 363 libavcodec/intrax8dsp.c min=FFMIN(min,p7); max=FFMAX(max,p7); FFMAX 457 libavcodec/j2kenc.c lut_nmsedec_sig[i] = FFMAX(6*i - (9<<NMSEDEC_FRACBITS-1) << 12-NMSEDEC_FRACBITS, 0); FFMAX 458 libavcodec/j2kenc.c lut_nmsedec_sig0[i] = FFMAX((i*i + (1<<NMSEDEC_FRACBITS-1) & mask) << 1, 0); FFMAX 461 libavcodec/j2kenc.c lut_nmsedec_ref[i] = FFMAX((-2*i + (1<<NMSEDEC_FRACBITS) + a*i - (a*a<<NMSEDEC_FRACBITS-2)) FFMAX 463 libavcodec/j2kenc.c lut_nmsedec_ref0[i] = FFMAX(((i*i + (1-4*i << NMSEDEC_FRACBITS-1) + (1<<2*NMSEDEC_FRACBITS)) & mask) FFMAX 589 libavcodec/j2kenc.c max = FFMAX(max, t1->data[y][x]); FFMAX 391 libavcodec/jpeg2000.c prec->coord[0][0] = FFMAX(prec->coord[0][0], band->coord[0][0]); FFMAX 396 libavcodec/jpeg2000.c prec->coord[1][0] = FFMAX(prec->coord[1][0], band->coord[1][0]); FFMAX 446 libavcodec/jpeg2000.c cblk->coord[0][0] = FFMAX(Cx0, prec->coord[0][0]); FFMAX 451 libavcodec/jpeg2000.c cblk->coord[1][0] = FFMAX(Cy0, prec->coord[1][0]); FFMAX 282 libavcodec/jpeg2000dec.c s->precision = FFMAX(s->cbps[i], s->precision); FFMAX 524 libavcodec/jpeg2000dec.c int curexpn = FFMAX(0, q->expn[0] - (i - 1) / 3); FFMAX 689 libavcodec/jpeg2000dec.c comp->coord_o[0][0] = FFMAX(tilex * s->tile_width + s->tile_offset_x, s->image_offset_x); FFMAX 691 libavcodec/jpeg2000dec.c comp->coord_o[1][0] = FFMAX(tiley * s->tile_height + s->tile_offset_y, s->image_offset_y); FFMAX 510 libavcodec/jpeg2000dwt.c maxlen = FFMAX(b[0][1] - b[0][0], FFMAX 41 libavcodec/jpegls.c state->bpp = FFMAX(av_log2(state->maxval) + 1, 2); FFMAX 42 libavcodec/jpegls.c state->limit = 2*(state->bpp + FFMAX(state->bpp, 8)) - state->qbpp; FFMAX 45 libavcodec/jpegls.c state->A[i] = FFMAX(state->range + 32 >> 6, 2); FFMAX 87 libavcodec/jpegls.c s->T1 = iso_clip(FFMAX(2, basic_t1 / factor + 3 * s->near), FFMAX 90 libavcodec/jpegls.c s->T2 = iso_clip(FFMAX(3, basic_t2 / factor + 5 * s->near), FFMAX 93 libavcodec/jpegls.c s->T3 = iso_clip(FFMAX(4, basic_t3 / factor + 7 * s->near), FFMAX 109 libavcodec/jpegls.h state->B[Q] = FFMAX(state->B[Q] + state->N[Q], 1 - state->N[Q]); FFMAX 48 libavcodec/lagarithrac.c l->hash_shift = FFMAX((int)l->scale - 10, 0); FFMAX 345 libavcodec/libfdk-aacenc.c if ((ret = ff_alloc_packet2(avctx, avpkt, FFMAX(8192, 768 * avctx->channels))) < 0) FFMAX 99 libavcodec/libopenh264enc.c param.iMaxBitrate = FFMAX(avctx->rc_max_rate, avctx->bit_rate); FFMAX 191 libavcodec/libopenjpegdec.c adjust[x] = FFMAX(FFMIN(desc->comp[x].depth_minus1 + 1 - image->comps[x].prec, 8), 0) + desc->comp[x].shift; FFMAX 228 libavcodec/libopenjpegdec.c adjust[x] = FFMAX(FFMIN(desc->comp[x].depth_minus1 + 1 - image->comps[x].prec, 8), 0) + desc->comp[x].shift; FFMAX 229 libavcodec/libopenjpegenc.c ctx->enc_params.tcp_rates[0] = FFMAX(avctx->compression_level, 0) * 2; FFMAX 156 libavcodec/libvo-aacenc.c if ((ret = ff_alloc_packet2(avctx, avpkt, FFMAX(8192, 768 * avctx->channels))) < 0) FFMAX 103 libavcodec/lpc.c cmax= FFMAX(cmax, fabs(lpc_in[i])); FFMAX 45 libavcodec/lsp.c lsfq[i] = FFMAX(lsfq[i], lsfq_min); FFMAX 56 libavcodec/lsp.c prev = lsf[i] = FFMAX(lsf[i], prev + min_spacing); FFMAX 129 libavcodec/lzwenc.c int h = hash(FFMAX(hash_prefix, 0), c); FFMAX 129 libavcodec/mathops.h if (c < d) return (FFMIN(b, d) + FFMAX(a, c)) / 2; FFMAX 130 libavcodec/mathops.h else return (FFMIN(b, c) + FFMAX(a, d)) / 2; FFMAX 132 libavcodec/mathops.h if (c < d) return (FFMIN(a, d) + FFMAX(b, c)) / 2; FFMAX 133 libavcodec/mathops.h else return (FFMIN(a, c) + FFMAX(b, d)) / 2; FFMAX 629 libavcodec/me_cmp.c sum = FFMAX(sum, FFABS(temp[i])); FFMAX 182 libavcodec/mips/aaccoder_mips.c maxval = FFMAX(maxval, scaled[w2*128+i]); FFMAX 2330 libavcodec/mips/aaccoder_mips.c float maxthr = FFMAX(band0->threshold, band1->threshold); FFMAX 179 libavcodec/mips/aacsbr_mips.c const int i_Temp = FFMAX(2*sbr->data[ch].t_env_num_env_old - i_f, 0); FFMAX 83 libavcodec/mips/ac3dsp_mips.c m = (FFMAX(mask[band] - snr_offset - floor, 0) & 0x1FE0) + floor; FFMAX 181 libavcodec/mjpegdec.c s->qscale[index] = FFMAX(s->quant_matrixes[index][s->scantable.permutated[1]], FFMAX 307 libavcodec/motion_est.c int dia_size= FFMAX(FFABS(s->avctx->dia_size)&255, FFABS(s->avctx->pre_dia_size)&255); FFMAX 556 libavcodec/motion_est.c c->xmin = FFMAX(c->xmin,-range); FFMAX 558 libavcodec/motion_est.c c->ymin = FFMAX(c->ymin,-range); FFMAX 1372 libavcodec/motion_est.c int a= (xmax - FFMAX(fx,bx))|(FFMIN(fx,bx) - xmin); FFMAX 1373 libavcodec/motion_est.c int b= (ymax - FFMAX(fy,by))|(FFMIN(fy,by) - ymin); FFMAX 1391 libavcodec/motion_est.c int a= FFMIN(xmax - FFMAX(fx,bx), FFMIN(fx,bx) - xmin); FFMAX 1392 libavcodec/motion_est.c int b= FFMIN(ymax - FFMAX(fy,by), FFMIN(fy,by) - ymin); FFMAX 1443 libavcodec/motion_est.c max= FFMAX(c->direct_basis_mv[i][0], c->direct_basis_mv[i][0] - c->co_located_mv[i][0])>>shift; FFMAX 1448 libavcodec/motion_est.c xmin= FFMAX(xmin, - 16 - min); FFMAX 1450 libavcodec/motion_est.c max= FFMAX(c->direct_basis_mv[i][1], c->direct_basis_mv[i][1] - c->co_located_mv[i][1])>>shift; FFMAX 1455 libavcodec/motion_est.c ymin= FFMAX(ymin, - 16 - min); FFMAX 1642 libavcodec/motion_est.c int fcode= FFMAX(fcode_tab[mx + MAX_MV], FFMAX 380 libavcodec/motion_est_template.c const int Lx2= FFMAX(xmin, FFMIN(Lx, xmax));\ FFMAX 381 libavcodec/motion_est_template.c const int Ly2= FFMAX(ymin, FFMIN(Ly, ymax));\ FFMAX 590 libavcodec/motion_est_template.c for(x2=FFMAX(x-dia_size+1, xmin); x2<=FFMIN(x+dia_size-1,xmax); x2+=2){ FFMAX 593 libavcodec/motion_est_template.c for(y2=FFMAX(y-dia_size/2+1, ymin); y2<=FFMIN(y+dia_size/2-1,ymax); y2+=2){ FFMAX 599 libavcodec/motion_est_template.c for(y2=FFMAX(y-2, ymin); y2<=FFMIN(y+2,ymax); y2++){ FFMAX 600 libavcodec/motion_est_template.c for(x2=FFMAX(x-2, xmin); x2<=FFMIN(x+2,xmax); x2++){ FFMAX 631 libavcodec/motion_est_template.c for(y=FFMAX(-dia_size, ymin); y<=FFMIN(dia_size,ymax); y++){ FFMAX 632 libavcodec/motion_est_template.c for(x=FFMAX(-dia_size, xmin); x<=FFMIN(dia_size,xmax); x++){ FFMAX 787 libavcodec/motion_est_template.c start= FFMAX(0, y + dia_size - ymax); FFMAX 796 libavcodec/motion_est_template.c start= FFMAX(0, x + dia_size - xmax); FFMAX 805 libavcodec/motion_est_template.c start= FFMAX(0, -y + dia_size + ymin ); FFMAX 814 libavcodec/motion_est_template.c start= FFMAX(0, -x + dia_size + xmin ); FFMAX 944 libavcodec/motion_est_template.c const int xstart= FFMAX(0, s->mb_x - count); FFMAX 945 libavcodec/motion_est_template.c const int ystart= FFMAX(0, s->mb_y - count); FFMAX 2449 libavcodec/mpeg12dec.c return FFMAX(0, buf_ptr - buf - s2->parse_context.last_index); FFMAX 1407 libavcodec/mpegaudiodec_template.c s->gb.size_in_bits_plus8 += FFMAX(extrasize, LAST_BUF_SIZE - s->last_buf_size) * 8; FFMAX 2573 libavcodec/mpegvideo.c if ((unsigned)src_x > FFMAX( h_edge_pos - (!!sx) - w, 0) || FFMAX 2574 libavcodec/mpegvideo.c (unsigned)src_y > FFMAX((v_edge_pos >> field_based) - (!!sy) - h, 0)) { FFMAX 2675 libavcodec/mpegvideo.c if ((unsigned) src_x > FFMAX( h_edge_pos - (!!sx) - 2 * block_s, 0) || uvsrc_y<0 || FFMAX 2676 libavcodec/mpegvideo.c (unsigned) src_y > FFMAX((v_edge_pos >> field_based) - (!!sy) - h, 0)) { FFMAX 2763 libavcodec/mpegvideo.c if ((unsigned) src_x > FFMAX(h_edge_pos - (!!sx) - block_s, 0) || FFMAX 2764 libavcodec/mpegvideo.c (unsigned) src_y > FFMAX(v_edge_pos - (!!sy) - block_s, 0)) { FFMAX 2956 libavcodec/mpegvideo.c my_max = FFMAX(my_max, my); FFMAX 2960 libavcodec/mpegvideo.c off = (FFMAX(-my_min, my_max) + 63) >> 6; FFMAX 2962 libavcodec/mpegvideo.c return FFMIN(FFMAX(s->mb_y + off, 0), s->mb_height-1); FFMAX 398 libavcodec/mpegvideo_enc.c avctx->rc_buffer_size = FFMAX(avctx->rc_max_rate, 15000000) * 112LL / 15000000 * 16384; FFMAX 1238 libavcodec/mpegvideo_enc.c case 0: score = FFMAX(score, v); break; FFMAX 1463 libavcodec/mpegvideo_enc.c b_frames = FFMAX(0, i - 1); FFMAX 1723 libavcodec/mpegvideo_enc.c int pkt_size = growing_buffer ? FFMAX(s->mb_width*s->mb_height*64+10000, avctx->internal->byte_buffer_size) - FF_INPUT_BUFFER_PADDING_SIZE FFMAX 1777 libavcodec/mpegvideo_enc.c int max_size = FFMAX(rcc->buffer_index * avctx->rc_max_available_vbv_use, rcc->buffer_index - 500); FFMAX 1781 libavcodec/mpegvideo_enc.c s->next_lambda = FFMAX(s->lambda + 1, s->lambda * FFMAX 1787 libavcodec/mpegvideo_enc.c FFMAX(s->lambda_table[i] + 1, FFMAX 1885 libavcodec/mpegvideo_enc.c vbv_delay = FFMAX(vbv_delay, min_delay); FFMAX 2030 libavcodec/mpegvideo_enc.c for (y2 = FFMAX(y - 1, 0); y2 < FFMIN(8, y + 2); y2++) { FFMAX 2031 libavcodec/mpegvideo_enc.c for (x2= FFMAX(x - 1, 0); x2 < FFMIN(8, x + 2); x2++) { FFMAX 3601 libavcodec/mpegvideo_enc.c s->f_code = FFMAX(a, b); FFMAX 3605 libavcodec/mpegvideo_enc.c s->b_code = FFMAX(a, b); FFMAX 64 libavcodec/mpegvideo_motion.c if ((unsigned)src_x >= FFMAX(s->h_edge_pos - 17, 0) || FFMAX 65 libavcodec/mpegvideo_motion.c (unsigned)src_y >= FFMAX(s->v_edge_pos - 17, 0)) { FFMAX 108 libavcodec/mpegvideo_motion.c if ((unsigned)src_x >= FFMAX((s->h_edge_pos >> 1) - 9, 0) || FFMAX 109 libavcodec/mpegvideo_motion.c (unsigned)src_y >= FFMAX((s->v_edge_pos >> 1) - 9, 0)) { FFMAX 213 libavcodec/mpegvideo_motion.c if ((unsigned)src_x > FFMAX(s->h_edge_pos - (motion_x & 1) - 8, 0) || FFMAX 214 libavcodec/mpegvideo_motion.c (unsigned)src_y > FFMAX(s->v_edge_pos - (motion_y & 1) - 8, 0)) { FFMAX 309 libavcodec/mpegvideo_motion.c if ((unsigned)src_x > FFMAX(s->h_edge_pos - (motion_x & 1) - 16, 0) || FFMAX 310 libavcodec/mpegvideo_motion.c (unsigned)src_y > FFMAX( v_edge_pos - (motion_y & 1) - h , 0)) { FFMAX 539 libavcodec/mpegvideo_motion.c if ((unsigned)src_x > FFMAX(s->h_edge_pos - (motion_x & 3) - 16, 0) || FFMAX 540 libavcodec/mpegvideo_motion.c (unsigned)src_y > FFMAX( v_edge_pos - (motion_y & 3) - h, 0)) { FFMAX 623 libavcodec/mpegvideo_motion.c if ((unsigned)src_x > FFMAX((s->h_edge_pos >> 1) - (dxy & 1) - 8, 0) || FFMAX 624 libavcodec/mpegvideo_motion.c (unsigned)src_y > FFMAX((s->v_edge_pos >> 1) - (dxy >> 1) - 8, 0)) { FFMAX 781 libavcodec/mpegvideo_motion.c if ((unsigned)src_x > FFMAX(s->h_edge_pos - (motion_x & 3) - 8, 0) || FFMAX 782 libavcodec/mpegvideo_motion.c (unsigned)src_y > FFMAX(s->v_edge_pos - (motion_y & 3) - 8, 0)) { FFMAX 285 libavcodec/msmpeg4enc.c unsigned fps = s->avctx->time_base.den / s->avctx->time_base.num / FFMAX(s->avctx->ticks_per_frame, 1); FFMAX 129 libavcodec/nellymoser.c max = FFMAX(max, buf[i]); FFMAX 254 libavcodec/nellymoserenc.c idx_min = FFMAX(0, cand[band] - q); FFMAX 256 libavcodec/nellymoserenc.c for (i = FFMAX(0, cand[band - 1] - q); i < FFMIN(OPT_SIZE, cand[band - 1] + q); i++) { FFMAX 321 libavcodec/nellymoserenc.c log(FFMAX(1.0, coeff_sum / (ff_nelly_band_sizes_table[band] << 7))) * 1024.0 / M_LN2; FFMAX 107 libavcodec/nuv.c quality = FFMAX(quality, 1); FFMAX 127 libavcodec/nuv.c + FFMAX(AV_LZO_OUTPUT_PADDING, FF_INPUT_BUFFER_PADDING_SIZE) FFMAX 211 libavcodec/nuv.c int outlen = c->decomp_size - FFMAX(FF_INPUT_BUFFER_PADDING_SIZE, AV_LZO_OUTPUT_PADDING); FFMAX 218 libavcodec/nuv.c buf_size = c->decomp_size - FFMAX(FF_INPUT_BUFFER_PADDING_SIZE, AV_LZO_OUTPUT_PADDING) - outlen; FFMAX 562 libavcodec/opus_celt.c frame->energy[i] = FFMAX(-9.0f, frame->energy[i]) * alpha + prev[j] + value; FFMAX 684 libavcodec/opus_celt.c quanta = FFMIN(quanta << 3, FFMAX(6 << 3, quanta)); FFMAX 698 libavcodec/opus_celt.c dynalloc = FFMAX(2, dynalloc - 1); FFMAX 739 libavcodec/opus_celt.c threshold[i] = FFMAX(3 * celt_freq_range[i] << duration >> 4, FFMAX 760 libavcodec/opus_celt.c bandbits = FFMAX(0, bandbits + trim_offset[i]); FFMAX 785 libavcodec/opus_celt.c bits1[i] = FFMAX(0, bits1[i] + trim_offset[i]); FFMAX 787 libavcodec/opus_celt.c bits2[i] = FFMAX(0, bits2[i] + trim_offset[i]); FFMAX 794 libavcodec/opus_celt.c bits2[i] = FFMAX(0, bits2[i] - bits1[i]); FFMAX 850 libavcodec/opus_celt.c + FFMAX(0, remaining - (celt_freq_bands[j] - celt_freq_bands[s->startband])); FFMAX 854 libavcodec/opus_celt.c if (allocation >= FFMAX(threshold[j], (s->coded_channels + 1) <<3 )) { FFMAX 909 libavcodec/opus_celt.c extrabits = FFMAX(0, s->pulses[i] - cap[i]); FFMAX 930 libavcodec/opus_celt.c max_bits = FFMAX(max_bits, 0); FFMAX 942 libavcodec/opus_celt.c extrabits = FFMAX(0, s->pulses[i] - (s->coded_channels << 3)); FFMAX 1297 libavcodec/opus_celt.c #define CELT_PVQ_U(n, k) (celt_pvq_u_row[FFMIN(n, k)][FFMAX(n, k)]) FFMAX 1815 libavcodec/opus_celt.c frame->pf_period_new = FFMAX(period, CELT_POSTFILTER_MINPERIOD); FFMAX 1852 libavcodec/opus_celt.c prev[0] = FFMAX(prev[0], frame1->prev_energy[0][i]); FFMAX 1853 libavcodec/opus_celt.c prev[1] = FFMAX(prev[1], frame1->prev_energy[1][i]); FFMAX 1856 libavcodec/opus_celt.c Ediff = FFMAX(0, Ediff); FFMAX 1927 libavcodec/opus_celt.c effective_lowband = FFMAX(celt_freq_bands[s->startband], FFMAX 2048 libavcodec/opus_celt.c s->frame[0].energy[i] = FFMAX(s->frame[0].energy[i], s->frame[1].energy[i]); FFMAX 833 libavcodec/opus_silk.c center_val = FFMIN(max_center, FFMAX(min_center, center_val)); FFMAX 1287 libavcodec/opus_silk.c log_gain = FFMAX(log_gain, frame->log_gain - 16); FFMAX 1291 libavcodec/opus_silk.c log_gain = av_clip_uintp2(FFMAX((delta_gain<<1) - 16, FFMAX 458 libavcodec/opusdec.c delayed_samples = FFMAX(delayed_samples, s->delayed_samples); FFMAX 1031 libavcodec/proresenc_kostya.c delta = FFMAX(delta, 2 * max_slice_size); FFMAX 150 libavcodec/qcelpdec.c lspf[0] = FFMAX(lspf[0], QCELP_LSP_SPREAD_FACTOR); FFMAX 152 libavcodec/qcelpdec.c lspf[i] = FFMAX(lspf[i], lspf[i - 1] + QCELP_LSP_SPREAD_FACTOR); FFMAX 125 libavcodec/ra288.c sum = FFMAX(sum, 5.0 / (1<<24)); FFMAX 90 libavcodec/ralf.c max_bits = FFMAX(max_bits, cur_len); FFMAX 161 libavcodec/ralf.c ctx->max_frame_size = FFMAX(ctx->max_frame_size, avctx->sample_rate); FFMAX 329 libavcodec/ralf.c acc = FFMAX(acc, min_clip); FFMAX 66 libavcodec/ratecontrol.c return 1.0 / av_q2d(avctx->time_base) / FFMAX(avctx->ticks_per_frame, 1); FFMAX 538 libavcodec/ratecontrol.c FFMAX((min_rate - buffer_size + rcc->buffer_index) * FFMAX 558 libavcodec/ratecontrol.c FFMAX(rcc->buffer_index * FFMAX 670 libavcodec/ratecontrol.c mb_factor = FFMAX(mb_factor, FFMAX 674 libavcodec/ratecontrol.c mb_factor = FFMAX(mb_factor, FFMAX 978 libavcodec/ratecontrol.c for (i = FFMAX(0, rcc->num_entries - 300); i < rcc->num_entries; i++) { FFMAX 199 libavcodec/rawdec.c frame->buf[0] = av_buffer_alloc(FFMAX(context->frame_size, buf_size)); FFMAX 134 libavcodec/resample2.c y *= bessel(type*sqrt(FFMAX(1-w*w, 0))); FFMAX 175 libavcodec/resample2.c maxff= FFMAX(maxff, ff); FFMAX 177 libavcodec/resample2.c maxsf= FFMAX(maxsf, sf); FFMAX 204 libavcodec/resample2.c c->filter_length= FFMAX((int)ceil(filter_size/factor), 1); FFMAX 302 libavcodec/resample2.c *consumed= FFMAX(index, 0) >> c->phase_shift; FFMAX 186 libavcodec/roqaudioenc.c context->input_frames = FFMAX(context->input_frames, 8); FFMAX 556 libavcodec/rv10.c init_get_bits(&s->gb, buf, FFMAX(buf_size, buf_size2) * 8); FFMAX 752 libavcodec/rv10.c offset + FFMAX(size, size2) > buf_size) FFMAX 123 libavcodec/rv34.c maxbits = FFMAX(maxbits, bits[i]); FFMAX 885 libavcodec/rv34.c ff_thread_await_progress(&s->next_picture_ptr->tf, FFMAX(0, s->mb_y-1), 0); FFMAX 402 libavcodec/sanm.c int npoints = FFMAX(FFABS(x1 - x0), FFABS(y1 - y0)); FFMAX 963 libavcodec/sanm.c int ret = ff_set_dimensions(ctx->avctx, FFMAX(left + w, ctx->width), FFMAX 964 libavcodec/sanm.c FFMAX(top + h, ctx->height)); FFMAX 967 libavcodec/sanm.c init_sizes(ctx, FFMAX(left + w, ctx->width), FFMAX 968 libavcodec/sanm.c FFMAX(top + h, ctx->height)); FFMAX 128 libavcodec/shorten.c if (FFMAX(1, s->nmean) >= UINT_MAX / sizeof(int32_t)) { FFMAX 141 libavcodec/shorten.c FFMAX(1, s->nmean))) < 0) FFMAX 178 libavcodec/shorten.c int nblock = FFMAX(1, s->nmean); FFMAX 376 libavcodec/shorten.c s->nwrap = FFMAX(NWRAP, maxnlpc); FFMAX 63 libavcodec/smvjpegdec.c planes_nb = FFMAX(planes_nb, desc->comp[i].plane + 1); FFMAX 377 libavcodec/snow.c if( (unsigned)sx >= FFMAX(w - b_w - (HTAPS_MAX-2), 0) FFMAX 378 libavcodec/snow.c || (unsigned)sy >= FFMAX(h - b_h - (HTAPS_MAX-2), 0)){ FFMAX 523 libavcodec/snow.c FF_ALLOCZ_ARRAY_OR_GOTO(avctx, s->scratchbuf, FFMAX(s->mconly_picture->linesize[0], 2*avctx->width+256), 7*MB_SIZE, fail); FFMAX 524 libavcodec/snow.c emu_buf_size = FFMAX(s->mconly_picture->linesize[0], 2*avctx->width+256) * (2 * MB_SIZE + HTAPS_MAX - 1); FFMAX 534 libavcodec/snowdec.c slice_starty = FFMAX(0, slice_starty - (block_h >> 1)); FFMAX 549 libavcodec/snowdec.c start_y = FFMAX(0, start_y - (block_h >> (1+s->spatial_decomposition_count - level))); FFMAX 550 libavcodec/snowdec.c end_y = FFMAX(0, end_y - (block_h >> (1+s->spatial_decomposition_count - level))); FFMAX 86 libavcodec/snowenc.c s->max_ref_frames = FFMAX(FFMIN(avctx->refs, MAX_REF_FRAMES), 1); FFMAX 531 libavcodec/snowenc.c for(y2= FFMAX(y, 0); y2<FFMIN(h, y+block_h); y2++){ FFMAX 532 libavcodec/snowenc.c for(x2= FFMAX(x, 0); x2<FFMIN(w, x+block_w); x2++){ FFMAX 613 libavcodec/snowenc.c int x0= FFMAX(0,-sx); FFMAX 614 libavcodec/snowenc.c int y0= FFMAX(0,-sy); FFMAX 1117 libavcodec/snowenc.c for(i=0; i<FFMAX(s->avctx->dia_size, 1); i++){ FFMAX 112 libavcodec/tak_parser.c pc->overread = FFMAX(0, -next); FFMAX 165 libavcodec/takdec.c shift = FFMAX(0, shift); FFMAX 1292 libavcodec/tiff.c soff = FFMAX(soff / s->bppcount, 1); FFMAX 320 libavcodec/tiffenc.c s->rps = FFMAX(8192 / (((s->width * s->bpp) >> 3) + 1), 1); FFMAX 350 libavcodec/tiffenc.c if (strips > INT_MAX / FFMAX(sizeof(s->strip_sizes[0]), sizeof(s->strip_offsets[0]))) { FFMAX 130 libavcodec/utils.c min_size = FFMAX(17 * min_size / 16 + 32, min_size); FFMAX 422 libavcodec/utils.c w_align = FFMAX(w_align, 8); FFMAX 444 libavcodec/utils.c align = FFMAX(linesize_align[0], linesize_align[3]); FFMAX 883 libavcodec/utils.c frame->width = FFMAX(avctx->width, FF_CEIL_RSHIFT(avctx->coded_width, avctx->lowres)); FFMAX 884 libavcodec/utils.c frame->height = FFMAX(avctx->height, FF_CEIL_RSHIFT(avctx->coded_height, avctx->lowres)); FFMAX 366 libavcodec/utvideodec.c max_slice_size = FFMAX(max_slice_size, slice_size); FFMAX 970 libavcodec/vc1dec.c s->start_mb_y = (i == 0) ? 0 : FFMAX(0, slices[i-1].mby_start % mb_height); FFMAX 52 libavcodec/videodsp_template.c start_y = FFMAX(0, -src_y); FFMAX 53 libavcodec/videodsp_template.c start_x = FFMAX(0, -src_x); FFMAX 305 libavcodec/vorbisenc.c fc->nclasses = FFMAX(fc->nclasses, fc->partition_to_class[i]); FFMAX 506 libavcodec/vorbisenc.c bits = FFMAX(bits, ilog(cb->quantlist[i])); FFMAX 721 libavcodec/vorbisenc.c int begin = fc->list[fc->list[FFMAX(i-1, 0)].sort].x; FFMAX 892 libavcodec/vorbisenc.c max1 = FFMAX(max1, fabs(coeffs[ k / real_ch])); FFMAX 893 libavcodec/vorbisenc.c max2 = FFMAX(max2, fabs(coeffs[samples + k / real_ch])); FFMAX 1474 libavcodec/vp3.c ref_row = FFMAX(FFABS(ref_row), ref_row + 8 + border); FFMAX 332 libavcodec/vp8.c s->qmat[i].luma_dc_qmul[1] = FFMAX(s->qmat[i].luma_dc_qmul[1], 8); FFMAX 2052 libavcodec/vp8.c interior_limit = FFMAX(interior_limit, 1); FFMAX 713 libavcodec/vp9.c max = FFMAX(0, max - 1); FFMAX 2557 libavcodec/vp9.c ff_thread_await_progress(ref_frame, FFMAX(th, 0), 0); FFMAX 2592 libavcodec/vp9.c ff_thread_await_progress(ref_frame, FFMAX(th, 0), 0); FFMAX 3095 libavcodec/vp9.c limit = FFMAX(limit, 1); FFMAX 307 libavcodec/webp.c max_code_length = FFMAX(max_code_length, code_lengths[sym]); FFMAX 488 libavcodec/webp.c max = FFMAX(max, p); FFMAX 714 libavcodec/webp.c distance = FFMAX(1, xi + yi * width); FFMAX 735 libavcodec/webp.c ref_x = FFMAX(0, ref_x); FFMAX 736 libavcodec/webp.c ref_y = FFMAX(0, ref_y); FFMAX 136 libavcodec/wmaenc.c max_scale = FFMAX(max_scale, v); FFMAX 518 libavcodec/wmalosslessdec.c FFMAX(s->channel[ch].transient_counter, s->samples_per_frame / 2); FFMAX 994 libavcodec/wmaprodec.c FFMAX(s->channel[c].max_scale_factor, *sf); FFMAX 519 libavcodec/wmavoice.c const float *ptr = &in[-FFMAX(s->min_pitch_val, pitch - 3)], FFMAX 584 libavcodec/wmavoice.c max = FFMAX(max, tmp); min = FFMIN(min, tmp); \ FFMAX 607 libavcodec/wmavoice.c idx = FFMAX(0, lrint((max - lpcs[n]) * irange) - 1); FFMAX 617 libavcodec/wmavoice.c coeffs[n] = wmavoice_energy_table[FFMAX(0, idx)]; FFMAX 1634 libavcodec/wmavoice.c lsps[0] = FFMAX(lsps[0], 0.0015 * M_PI); FFMAX 1636 libavcodec/wmavoice.c lsps[n] = FFMAX(lsps[n], lsps[n - 1] + 0.0125 * M_PI); FFMAX 262 libavcodec/wmv2dec.c diff = FFMAX(FFABS(A[0] - B[0]), FFABS(A[1] - B[1])); FFMAX 182 libavcodec/x86/videodsp_init.c start_y = FFMAX(0, -src_y); FFMAX 183 libavcodec/x86/videodsp_init.c start_x = FFMAX(0, -src_x); FFMAX 102 libavcodec/zmbvenc.c for(ty = FFMAX(y - c->range, 0); ty < FFMIN(y + c->range, c->avctx->height - bh); ty++){ FFMAX 103 libavcodec/zmbvenc.c for(tx = FFMAX(x - c->range, 0); tx < FFMIN(x + c->range, c->avctx->width - bw); tx++){ FFMAX 416 libavdevice/decklink_enc.cpp ctx->last_pts = FFMAX(ctx->last_pts, pkt->pts); FFMAX 320 libavdevice/lavfi.c avctx->probesize = FFMAX(avctx->probesize, FFMAX 707 libavdevice/opengl_enc.c int max = FFMIN(FFMAX(in_width, in_height), opengl->max_texture_size); FFMAX 473 libavdevice/pulse_audio_enc.c buffer_attributes.tlength = FFMAX(s->buffer_size, av_clip64(bytes, 0, UINT32_MAX - 1)); FFMAX 82 libavdevice/timefilter.c self->cycle_time += FFMAX(self->feedback2_factor, 1.0 / self->count) * loop_error; FFMAX 156 libavdevice/timefilter.c samples[FFMAX(i, 1)] - samples[FFMAX(i - 1, 0)], filtered - lastfil); FFMAX 538 libavdevice/v4l2.c if (avpriv_atomic_int_get(&s->buffers_queued) == FFMAX(s->buffers / 8, 1)) { FFMAX 317 libavdevice/x11grab.c x_off = FFMIN(FFMAX(x_off, 0), screen_w - x11grab->width); FFMAX 318 libavdevice/x11grab.c y_off = FFMIN(FFMAX(y_off, 0), screen_h - x11grab->height); FFMAX 437 libavdevice/x11grab.c for (line = FFMAX(y, y_off); line < to_line; line++) { FFMAX 438 libavdevice/x11grab.c for (column = FFMAX(x, x_off); column < to_column; column++) { FFMAX 589 libavdevice/x11grab.c s->x_off = x_off = FFMIN(FFMAX(x_off, 0), screen_w - s->width); FFMAX 590 libavdevice/x11grab.c s->y_off = y_off = FFMIN(FFMAX(y_off, 0), screen_h - s->height); FFMAX 140 libavdevice/xcbgrab.c c->x = FFMIN(FFMAX(0, x), geo->width - w); FFMAX 141 libavdevice/xcbgrab.c c->y = FFMIN(FFMAX(0, y), geo->height - h); FFMAX 323 libavdevice/xcbgrab.c x = FFMAX(cx, gr->x); FFMAX 324 libavdevice/xcbgrab.c y = FFMAX(cy, gr->y); FFMAX 162 libavfilter/af_adelay.c s->max_delay = FFMAX(s->max_delay, d->delay); FFMAX 237 libavfilter/af_aecho.c s->max_samples = FFMAX(s->max_samples, s->samples[i]); FFMAX 124 libavfilter/af_afade.c gain = FFMAX(0.0, FFMIN(1.0, 1.0 * index / range)); FFMAX 90 libavfilter/af_aformat.c return FFMAX(ret, 0); FFMAX 208 libavfilter/af_amix.c s->scale_norm = FFMAX(s->scale_norm, s->active_inputs); FFMAX 79 libavfilter/af_apad.c apad->whole_len_left = FFMAX(apad->whole_len_left - frame->nb_samples, 0); FFMAX 190 libavfilter/af_aresample.c n_out += FFMIN(delay, FFMAX(4096, n_out)); FFMAX 73 libavfilter/af_asetrate.c if (av_q2d(intb) > 1.0 / FFMAX(inrate, outlink->sample_rate)) FFMAX 140 libavfilter/af_astats.c p->max_sigma_x2 = FFMAX(p->max_sigma_x2, p->avg_sigma_x2); FFMAX 198 libavfilter/af_astats.c max = FFMAX(max, p->max); FFMAX 200 libavfilter/af_astats.c max_sigma_x2 = FFMAX(max_sigma_x2, p->max_sigma_x2); FFMAX 215 libavfilter/af_astats.c av_log(ctx, AV_LOG_INFO, "Peak level dB: %f\n", LINEAR_TO_DB(FFMAX(-p->min, p->max))); FFMAX 220 libavfilter/af_astats.c av_log(ctx, AV_LOG_INFO, "Crest factor: %f\n", p->sigma_x2 ? FFMAX(-p->min, p->max) / sqrt(p->sigma_x2 / p->nb_samples) : 1); FFMAX 229 libavfilter/af_astats.c av_log(ctx, AV_LOG_INFO, "Peak level dB: %f\n", LINEAR_TO_DB(FFMAX(-min, max))); FFMAX 663 libavfilter/af_atempo.c i0 = FFMAX(window / 2 - delta_max - drift, 0); FFMAX 667 libavfilter/af_atempo.c i1 = FFMAX(i1, 0); FFMAX 777 libavfilter/af_atempo.c const int64_t start_here = FFMAX(atempo->position[1], FFMAX 959 libavfilter/af_atempo.c start_here = FFMAX(atempo->position[1], overlap_end); FFMAX 389 libavfilter/af_replaygain.c *peak_p = FFMAX(peak, *peak_p); FFMAX 128 libavfilter/af_silenceremove.c s->start_holdoff = av_malloc_array(FFMAX(s->start_duration, 1), FFMAX 138 libavfilter/af_silenceremove.c s->stop_holdoff = av_malloc_array(FFMAX(s->stop_duration, 1), FFMAX 106 libavfilter/avf_avectorscope.c d[j+0] = FFMAX(d[j+0] - s->fade[0], 0); FFMAX 107 libavfilter/avf_avectorscope.c d[j+1] = FFMAX(d[j+1] - s->fade[1], 0); FFMAX 108 libavfilter/avf_avectorscope.c d[j+2] = FFMAX(d[j+2] - s->fade[2], 0); FFMAX 151 libavfilter/avf_avectorscope.c nb_samples = FFMAX(1024, ((double)inlink->sample_rate / av_q2d(s->frame_rate)) + 0.5); FFMAX 247 libavfilter/avf_concat.c pts = FFMAX(pts, cat->in[i].pts); FFMAX 268 libavfilter/avf_concat.c frame_nb_samples = FFMAX(9600, rate_tb.den / 5); /* arbitrary */ FFMAX 406 libavfilter/avf_showspectrum.c a = 1 - log(FFMAX(FFMIN(1, a), 1e-6)) / log(1e-6); // zero = -120dBFS FFMAX 468 libavfilter/avf_showspectrum.c *p = rint(FFMAX(0, FFMIN(s->combine_buffer[3 * y + plane], 255))); FFMAX 129 libavfilter/avf_showwaves.c showwaves->n = FFMAX(1, ((double)inlink->sample_rate / (showwaves->w * av_q2d(showwaves->rate))) + 0.5); FFMAX 181 libavfilter/drawutils.c nb_planes = FFMAX(nb_planes, c->plane + 1); FFMAX 561 libavfilter/f_ebur128.c ebur128->true_peaks[ch] = FFMAX(ebur128->true_peaks[ch], FFABS(*swr_samples)); FFMAX 562 libavfilter/f_ebur128.c ebur128->true_peaks_per_frame[ch] = FFMAX(ebur128->true_peaks_per_frame[ch], FFMAX 589 libavfilter/f_ebur128.c ebur128->sample_peaks[ch] = FFMAX(ebur128->sample_peaks[ch], FFABS(*samples)); FFMAX 881 libavfilter/f_ebur128.c maxpeak = FFMAX(maxpeak, sp[ch]); \ FFMAX 216 libavfilter/f_sendcmd.c n = FFMAX(16, 2*n); /* first allocation = 16, or double the number */ FFMAX 345 libavfilter/f_sendcmd.c n = FFMAX(16, 2*n); /* first allocation = 16, or double the number */ FFMAX 62 libavfilter/framesync.c level = FFMAX(level, fs->in[i].sync); FFMAX 78 libavfilter/graphdump.c max_src_name = FFMAX(max_src_name, ln); FFMAX 79 libavfilter/graphdump.c max_in_name = FFMAX(max_in_name, strlen(l->dstpad->name)); FFMAX 80 libavfilter/graphdump.c max_in_fmt = FFMAX(max_in_fmt, print_link_prop(NULL, l)); FFMAX 85 libavfilter/graphdump.c max_dst_name = FFMAX(max_dst_name, ln); FFMAX 86 libavfilter/graphdump.c max_out_name = FFMAX(max_out_name, strlen(l->srcpad->name)); FFMAX 87 libavfilter/graphdump.c max_out_fmt = FFMAX(max_out_fmt, print_link_prop(NULL, l)); FFMAX 91 libavfilter/graphdump.c width = FFMAX(lname + 2, ltype + 4); FFMAX 275 libavfilter/src_movie.c movie->max_stream_index = FFMAX(movie->max_stream_index, st->index); FFMAX 300 libavfilter/trim.c end_sample = FFMAX(end_sample, s->end_sample - s->nb_samples); FFMAX 306 libavfilter/trim.c end_sample = FFMAX(end_sample, s->end_pts - pts); FFMAX 311 libavfilter/trim.c end_sample = FFMAX(end_sample, s->first_pts + s->duration_tb - pts); FFMAX 321 libavfilter/trim.c start_sample = FFMAX(0, start_sample); FFMAX 191 libavfilter/vf_blend.c #define BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, 255 - ((255 - (b)) << 8) / (a))) FFMAX 196 libavfilter/vf_blend.c DEFINE_BLEND(subtract, FFMAX(0, A - B)) FFMAX 205 libavfilter/vf_blend.c DEFINE_BLEND(lighten, FFMAX(A, B)) FFMAX 211 libavfilter/vf_blend.c DEFINE_BLEND(pinlight, (B < 128) ? FFMIN(A, 2 * B) : FFMAX(A, 2 * (B - 128))) FFMAX 212 libavfilter/vf_blend.c DEFINE_BLEND(phoenix, FFMIN(A, B) - FFMAX(A, B) + 255) FFMAX 146 libavfilter/vf_boxblur.c if (!(s->temp[0] = av_malloc(2*FFMAX(w, h))) || FFMAX 147 libavfilter/vf_boxblur.c !(s->temp[1] = av_malloc(2*FFMAX(w, h)))) FFMAX 156 libavfilter/vf_colorlevels.c imax = FFMAX(imax, src[x + offset]); FFMAX 203 libavfilter/vf_colorlevels.c imax = FFMAX(imax, src[x + offset]); FFMAX 194 libavfilter/vf_cropdetect.c FIND(s->y2, frame->height - 1, y > FFMAX(s->y2, s->y1), -1, frame->linesize[0], bpp, frame->width); FFMAX 196 libavfilter/vf_cropdetect.c FIND(s->x2, frame->width - 1, y > FFMAX(s->x2, s->x1), -1, bpp, frame->linesize[0], frame->height); FFMAX 621 libavfilter/vf_dctdnoiz.c const int slice_start_ctx = FFMAX(slice_start - s->bsize + 1, 0); FFMAX 72 libavfilter/vf_delogo.c xclipl = FFMAX(-logo_x, 0); FFMAX 73 libavfilter/vf_delogo.c xclipr = FFMAX(logo_x+logo_w-w, 0); FFMAX 74 libavfilter/vf_delogo.c yclipt = FFMAX(-logo_y, 0); FFMAX 75 libavfilter/vf_delogo.c yclipb = FFMAX(logo_y+logo_h-h, 0); FFMAX 131 libavfilter/vf_delogo.c dist = FFMAX(dist, logo_x-x+band); FFMAX 133 libavfilter/vf_delogo.c dist = FFMAX(dist, x-(logo_x+logo_w-1-band)); FFMAX 136 libavfilter/vf_delogo.c dist = FFMAX(dist, logo_y-y+band); FFMAX 138 libavfilter/vf_delogo.c dist = FFMAX(dist, y-(logo_y+logo_h-1-band)); FFMAX 212 libavfilter/vf_drawbox.c for (y = FFMAX(yb, 0); y < frame->height && y < (yb + s->h); y++) { FFMAX 220 libavfilter/vf_drawbox.c for (x = FFMAX(xb, 0); x < xb + s->w && x < frame->width; x++) FFMAX 225 libavfilter/vf_drawbox.c for (x = FFMAX(xb, 0); x < xb + s->w && x < frame->width; x++) { FFMAX 1181 libavfilter/vf_drawtext.c y_max = FFMAX(glyph->bbox.yMax, y_max); FFMAX 1183 libavfilter/vf_drawtext.c x_max = FFMAX(glyph->bbox.xMax, x_max); FFMAX 1200 libavfilter/vf_drawtext.c max_text_line_w = FFMAX(max_text_line_w, x); FFMAX 1225 libavfilter/vf_drawtext.c max_text_line_w = FFMAX(x, max_text_line_w); FFMAX 449 libavfilter/vf_fieldmatch.c for (u = FFMAX(x-4,0); u < FFMIN(x+5,width); u++) { FFMAX 583 libavfilter/vf_fieldmatch.c FFMAX(accumPml,accumNml) > 3*FFMIN(accumPml,accumNml)) { FFMAX 592 libavfilter/vf_fieldmatch.c c1 = ((float)FFMAX(norm1,norm2)) / ((float)FFMAX(FFMIN(norm1,norm2),1)); FFMAX 593 libavfilter/vf_fieldmatch.c c2 = ((float)FFMAX(mtn1, mtn2)) / ((float)FFMAX(FFMIN(mtn1, mtn2), 1)); FFMAX 594 libavfilter/vf_fieldmatch.c mr = ((float)FFMAX(mtn1, mtn2)) / ((float)FFMAX(FFMAX(norm1,norm2),1)); FFMAX 600 libavfilter/vf_fieldmatch.c else if (mr > 0.005 && FFMAX(mtn1, mtn2) > 150 && (mtn1*2 < mtn2*1 || mtn2*2 < mtn1*1)) FFMAX 188 libavfilter/vf_fps.c first_pts = FFMIN(FFMAX(first_pts, INT64_MIN), INT64_MAX); FFMAX 64 libavfilter/vf_gradfun.c m = FFMAX(0, 127 - m); FFMAX 163 libavfilter/vf_histogram.c outlink->h = (h->level_height + h->scale_height) * FFMAX(h->ncomp * h->display_mode, 1); FFMAX 167 libavfilter/vf_histogram.c outlink->h = 256 * FFMAX(h->ncomp * h->display_mode, 1); FFMAX 169 libavfilter/vf_histogram.c outlink->w = 256 * FFMAX(h->ncomp * h->display_mode, 1); FFMAX 274 libavfilter/vf_histogram.c max_hval = FFMAX(max_hval, h->histogram[i]); FFMAX 156 libavfilter/vf_libopencv.c *cols = FFMAX(*cols, w); FFMAX 93 libavfilter/vf_mergeplanes.c s->nb_inputs = FFMAX(s->nb_inputs, s->map[i][1] + 1); FFMAX 185 libavfilter/vf_mpdecimate.c decimate->drop_count = FFMAX(1, decimate->drop_count+1); FFMAX 394 libavfilter/vf_overlay.c i = FFMAX(-y, 0); FFMAX 399 libavfilter/vf_overlay.c j = FFMAX(-x, 0); FFMAX 452 libavfilter/vf_overlay.c i = FFMAX(-y, 0); FFMAX 457 libavfilter/vf_overlay.c j = FFMAX(-x, 0); FFMAX 495 libavfilter/vf_overlay.c j = FFMAX(-yp, 0); FFMAX 501 libavfilter/vf_overlay.c k = FFMAX(-xp, 0); FFMAX 301 libavfilter/vf_pad.c FFMAX(inlink->w, s->w), FFMAX 302 libavfilter/vf_pad.c FFMAX(inlink->h, s->h)); FFMAX 335 libavfilter/vf_palettegen.c min[0] = FFMIN(r, min[0]), max[0] = FFMAX(r, max[0]); FFMAX 336 libavfilter/vf_palettegen.c min[1] = FFMIN(g, min[1]), max[1] = FFMAX(g, max[1]); FFMAX 337 libavfilter/vf_palettegen.c min[2] = FFMIN(b, min[2]), max[2] = FFMAX(b, max[2]); FFMAX 96 libavfilter/vf_pp7.c p->thres2[qp][i] = ((i&1) ? SN2 : SN0) * ((i&4) ? SN2 : SN0) * FFMAX(1, qp) * (1<<2) - 1 - bias; FFMAX 165 libavfilter/vf_psnr.c s->max_mse = FFMAX(s->max_mse, mse); FFMAX 395 libavfilter/vf_pullup.c lc = FFMAX(lc, 0); FFMAX 396 libavfilter/vf_pullup.c rc = FFMAX(rc, 0); FFMAX 309 libavfilter/vf_removelogo.c s->max_mask_size = FFMAX(full_max_mask_size, half_max_mask_size); FFMAX 404 libavfilter/vf_removelogo.c start_posx = FFMAX(0, x - mask_size); FFMAX 405 libavfilter/vf_removelogo.c start_posy = FFMAX(0, y - mask_size); FFMAX 160 libavfilter/vf_rotate.c return FFMAX(0, inh * sinx) + FFMAX(0, -inw * cosx) + FFMAX 161 libavfilter/vf_rotate.c FFMAX(0, inw * cosx) + FFMAX(0, -inh * sinx); FFMAX 172 libavfilter/vf_rotate.c return FFMAX(0, -inh * cosx) + FFMAX(0, -inw * sinx) + FFMAX 173 libavfilter/vf_rotate.c FFMAX(0, inh * cosx) + FFMAX(0, inw * sinx); FFMAX 318 libavfilter/vf_scale.c w = FFMAX(tmp_w, w); FFMAX 319 libavfilter/vf_scale.c h = FFMAX(tmp_h, h); FFMAX 161 libavfilter/vf_signalstats.c s->nb_jobs = FFMAX(1, FFMIN(inlink->h, ctx->graph->nb_threads)); FFMAX 275 libavfilter/vf_spp.c qp = FFMAX(1, ff_norm_qscale(qp, p->qscale_type)); FFMAX 87 libavfilter/vf_telecine.c max = FFMAX(*p - '0', max); FFMAX 73 libavfilter/vf_yadif.c int min = FFMIN3(d - e, d - c, FFMAX(b - c, f - e)); \ FFMAX 183 libavfilter/vf_zoompan.c x = dx = av_clipd(dx, 0, FFMAX(in->width - w, 0)); FFMAX 191 libavfilter/vf_zoompan.c y = dy = av_clipd(dy, 0, FFMAX(in->height - h, 0)); FFMAX 177 libavfilter/vsrc_life.c h++; max_w = FFMAX(w, max_w); w = 0; FFMAX 202 libavfilter/vsrc_mandelbrot.c dist= FFMAX(FFABS(x-(mb->w>>1))*mb->h, FFABS(y-(mb->h>>1))*mb->w); FFMAX 161 libavfilter/vsrc_mptestsrc.c const int step = FFMAX(256/(w*h/256), 1); FFMAX 62 libavformat/aacdec.c max_frames = FFMAX(max_frames, frames); FFMAX 75 libavformat/ac3dec.c max_frames = FFMAX(max_frames, frames); FFMAX 114 libavformat/anm.c anm->nb_records = FFMAX(anm->nb_records - 1, 0); FFMAX 1536 libavformat/asfdec.c int64_t index_pts = FFMAX(av_rescale(itime, i, 10000) - asf->hdr.preroll, 0); FFMAX 898 libavformat/asfenc.c asf->maximum_packet = FFMAX(asf->maximum_packet, packet_count); FFMAX 929 libavformat/asfenc.c asf->duration = FFMAX(asf->duration, pts + pkt->duration * 10000); FFMAX 142 libavformat/au.c st->codec->block_align = FFMAX(bps * st->codec->channels / 8, 1); FFMAX 441 libavformat/avidec.c maxpos = FFMAX(maxpos, st->index_entries[j-1].pos); FFMAX 668 libavformat/avidec.c ast->cum_len *= FFMAX(1, ast->sample_size); FFMAX 1312 libavformat/avidec.c (AVRational) { FFMAX(1, ast->sample_size), FFMAX 1608 libavformat/avidec.c FFMAX(ast->sample_size, 1), FFMAX 1621 libavformat/avidec.c FFMAX(ast->sample_size, 1), FFMAX 1623 libavformat/avidec.c max_dts = FFMAX(max_dts, dts); FFMAX 1624 libavformat/avidec.c max_buffer = FFMAX(max_buffer, FFMAX 1758 libavformat/avidec.c timestamp * FFMAX(ast->sample_size, 1), FFMAX 1763 libavformat/avidec.c timestamp * FFMAX(ast->sample_size, 1), FFMAX 1771 libavformat/avidec.c timestamp = st->index_entries[index].timestamp / FFMAX(ast->sample_size, 1); FFMAX 1814 libavformat/avidec.c FFMAX(ast2->sample_size, 1), FFMAX 1832 libavformat/avidec.c av_rescale_q(timestamp, st->time_base, st2->time_base) * FFMAX(ast2->sample_size, 1), FFMAX 147 libavformat/avienc.c nb_frames = FFMAX(nb_frames, avist->packet_count); FFMAX 677 libavformat/avienc.c avist->max_size = FFMAX(avist->max_size, size); FFMAX 324 libavformat/avio.c fast_retries = FFMAX(fast_retries, 2); FFMAX 876 libavformat/aviobuf.c alloc_size = FFMAX(s->buffer_size, new_size); FFMAX 215 libavformat/cache.c c->end = FFMAX(c->end, c->logical_pos); FFMAX 234 libavformat/cache.c c->end = FFMAX(c->end, pos); FFMAX 279 libavformat/cache.c c->end = FFMAX(c->end, ret); FFMAX 302 libavformat/cafdec.c avio_skip(pb, FFMAX(0, pos + size - avio_tell(pb))); FFMAX 396 libavformat/cafdec.c timestamp = FFMAX(timestamp, 0); FFMAX 129 libavformat/concatdec.c size_t n = FFMAX(*nb_files_alloc * 2, 16); FFMAX 199 libavformat/dashenc.c start_index = FFMAX(os->nb_segments - c->window_size, 0); FFMAX 200 libavformat/dashenc.c start_number = FFMAX(os->segment_index - c->window_size, 1); FFMAX 487 libavformat/dashenc.c int start_index = FFMAX(os->nb_segments - c->window_size, 0); FFMAX 918 libavformat/dashenc.c os->max_pts = FFMAX(os->max_pts, pkt->pts + pkt->duration); FFMAX 124 libavformat/ffmdec.c seekback = FFMAX(seekback, 0); FFMAX 160 libavformat/ffmdec.c pos = FFMAX(pos, FFM_PACKET_SIZE); FFMAX 103 libavformat/filmstripdec.c if (avio_seek(s->pb, FFMAX(timestamp, 0) * st->codec->width * st->codec->height * 4, SEEK_SET) < 0) FFMAX 649 libavformat/flvenc.c flv->duration = FFMAX(flv->duration, FFMAX 199 libavformat/format.c if (nodat == 0) score = FFMAX(score, 1); FFMAX 200 libavformat/format.c else if (nodat == 1) score = FFMAX(score, AVPROBE_SCORE_EXTENSION / 2 - 1); FFMAX 201 libavformat/format.c else score = FFMAX(score, AVPROBE_SCORE_EXTENSION); FFMAX 208 libavformat/format.c score = FFMAX(score, AVPROBE_SCORE_MIME); FFMAX 276 libavformat/format.c FFMAX(max_probe_size, probe_size + 1))) { FFMAX 747 libavformat/ftp.c s->filesize = FFMAX(s->filesize, s->position); FFMAX 578 libavformat/gxf.c maxlen = FFMAX(maxlen, 200 * 1024); FFMAX 37 libavformat/h261dec.c uint32_t code = AV_RB64(&p->buf[FFMAX(i-1, 0)]) >> (24+shift); FFMAX 230 libavformat/hdsenc.c start = FFMAX(os->nb_fragments - c->window_size, 0); FFMAX 87 libavformat/hevc.c hvcc->general_level_idc = FFMAX(hvcc->general_level_idc, ptl->level_idc); FFMAX 93 libavformat/hevc.c hvcc->general_tier_flag = FFMAX(hvcc->general_tier_flag, ptl->tier_flag); FFMAX 109 libavformat/hevc.c hvcc->general_profile_idc = FFMAX(hvcc->general_profile_idc, ptl->profile_idc); FFMAX 378 libavformat/hevc.c hvcc->numTemporalLayers = FFMAX(hvcc->numTemporalLayers, FFMAX 494 libavformat/hevc.c hvcc->numTemporalLayers = FFMAX(hvcc->numTemporalLayers, FFMAX 246 libavformat/hlsenc.c int64_t sequence = FFMAX(hls->start_sequence, hls->sequence - hls->nb_entries); FFMAX 210 libavformat/jvdec.c avio_skip(pb, FFMAX(e->size - jvf->audio_size - jvf->video_size FFMAX 53 libavformat/loasdec.c max_frames = FFMAX(max_frames, frames); FFMAX 2826 libavformat/matroskadec.c FFMAX(track->end_timecode, timecode + block_duration); FFMAX 2994 libavformat/matroskadec.c timestamp = FFMAX(timestamp, st->index_entries[0].timestamp); FFMAX 1413 libavformat/matroskaenc.c mkv->chapter_id_offset = FFMAX(mkv->chapter_id_offset, 1LL - s->chapters[i]->id); FFMAX 1734 libavformat/matroskaenc.c put_ebml_uint(pb, MATROSKA_ID_CLUSTERTIMECODE, FFMAX(0, ts)); FFMAX 1735 libavformat/matroskaenc.c mkv->cluster_pts = FFMAX(0, ts); FFMAX 1767 libavformat/matroskaenc.c mkv->duration = FFMAX(mkv->duration, ts + duration); FFMAX 379 libavformat/mmsh.c ret= mmsh_open_internal(h, mmsh_old->location, 0, FFMAX(timestamp, 0), 0); FFMAX 2253 libavformat/mov.c sc->dts_shift = FFMAX(sc->dts_shift, -duration); FFMAX 2395 libavformat/mov.c sc->ctts_data[0].duration / FFMAX(sc->stts_data[0].duration, 1) > 16) { FFMAX 3665 libavformat/mov.c score = FFMAX(score, AVPROBE_SCORE_EXTENSION); FFMAX 3668 libavformat/mov.c score = FFMAX(score, 5); FFMAX 3672 libavformat/mov.c offset = FFMAX(4, AV_RB32(p->buf+offset)) + offset; FFMAX 3680 libavformat/mov.c score = FFMAX(score, AVPROBE_SCORE_MAX - 5); FFMAX 3681 libavformat/mov.c offset = FFMAX(4, AV_RB32(p->buf+offset)) + offset; FFMAX 3688 libavformat/mov.c score = FFMAX(score, AVPROBE_SCORE_EXTENSION); FFMAX 3689 libavformat/mov.c offset = FFMAX(4, AV_RB32(p->buf+offset)) + offset; FFMAX 3692 libavformat/mov.c offset = FFMAX(4, AV_RB32(p->buf+offset)) + offset; FFMAX 170 libavformat/movenc.c sSize = FFMAX(1, sSize); // adpcm mono case could make sSize == 0 FFMAX 351 libavformat/movenc.c info->data_rate = FFMAX(info->data_rate, hdr->bit_rate / 1000); FFMAX 90 libavformat/mp3dec.c max_frames = FFMAX(max_frames, frames); FFMAX 164 libavformat/mp3dec.c delta = FFMAX(fsize, mp3->header_filesize) - min; FFMAX 453 libavformat/mp3dec.c avio_seek(s->pb, FFMAX(ie->pos - 4096, 0), SEEK_SET); FFMAX 254 libavformat/mp3enc.c avio_wb24(dyn_ctx, FFMAX(codec->initial_padding - 528 - 1, 0)<<12); FFMAX 198 libavformat/mpc.c int index = av_index_search_timestamp(st, FFMAX(timestamp - DELAY_FRAMES, 0), flags); FFMAX 1023 libavformat/mpegenc.c scr = FFMAX(best_dts + 1, scr); FFMAX 545 libavformat/mpegts.c return best_score - FFMAX(stat_all - 10*best_score, 0)/10; FFMAX 2404 libavformat/mpegts.c maxscore = FFMAX(maxscore, score); FFMAX 441 libavformat/mux.c int delay = FFMAX(st->codec->has_b_frames, st->codec->max_b_frames > 0); FFMAX 815 libavformat/mux.c delta_dts = FFMAX(delta_dts, last_dts - top_dts); FFMAX 1221 libavformat/mxfdec.c edit_unit = FFMAX(edit_unit, s->index_start_position); /* clamp if trying to seek before start */ FFMAX 1353 libavformat/mxfdec.c max_temporal_offset = FFMAX(max_temporal_offset, offset); FFMAX 3050 libavformat/mxfdec.c sample_time = FFMAX(sample_time, 0); FFMAX 698 libavformat/nutenc.c nut->version = FFMAX(NUT_STABLE_VERSION, 3 + !!nut->flags); FFMAX 747 libavformat/nutenc.c FFMAX(time_base.den, time_base.num) / time_base.num; FFMAX 95 libavformat/oggparseopus.c unsigned frame_size = toc_config < 12 ? FFMAX(480, 960 * (toc_config & 3)) : FFMAX 453 libavformat/oggparsevorbis.c s->streams[idx]->start_time = FFMAX(os->lastpts, 0); FFMAX 64 libavformat/rtpdec_mpeg4.c uint8_t buf[FFMAX(RTP_MAX_PACKET_LENGTH, MAX_AAC_HBR_FRAME_SIZE)]; FFMAX 164 libavformat/sbgdec.c int m = FFMAX(32, FFMIN(*max_size, INT_MAX / 2) * 2); FFMAX 861 libavformat/sbgdec.c bufsize = FFMIN(FFMAX(2 * bufsize, 8192), max_size); FFMAX 1183 libavformat/sbgdec.c int nb_elements = FFMAX(ev1->nb_elements, ev2->nb_elements); FFMAX 1273 libavformat/sbgdec.c period = FFMAX(period, DAY_TS); FFMAX 1287 libavformat/sbgdec.c ev1->ts_trans = FFMAX(ev1->ts_int, ev1->ts_trans - trans_time); FFMAX 1400 libavformat/sbgdec.c sbg->frame_size = FFMAX(1, sbg->sample_rate / 10); FFMAX 278 libavformat/segment.c max_duration = FFMAX(max_duration, entry->end_time - entry->start_time); FFMAX 789 libavformat/segment.c FFMAX(seg->cur_entry.end_time, (double)(pkt->pts + pkt->duration) * av_q2d(st->time_base)); FFMAX 113 libavformat/smjpegenc.c smc->duration = FFMAX(smc->duration, pkt->pts + pkt->duration); FFMAX 203 libavformat/smoothstreamingenc.c start = FFMAX(os->nb_fragments - skip - window_size, 0); FFMAX 167 libavformat/srtp.c seq_largest = FFMAX(seq_largest, seq); FFMAX 510 libavformat/swfdec.c len = FFMAX(0, len); FFMAX 165 libavformat/thp.c thp->next_frame += FFMAX(thp->next_framesz, 1); FFMAX 95 libavformat/tty.c s->chars_per_frame = FFMAX(av_q2d(st->time_base)*s->chars_per_frame, 1); FFMAX 186 libavformat/utils.c remaining= FFMAX(remaining, 0); FFMAX 225 libavformat/utils.c av_shrink_packet(pkt, prev_size + FFMAX(ret, 0)); FFMAX 860 libavformat/utils.c diff = FFMAX(diff, st->pts_reorder_error[i]); FFMAX 1815 libavformat/utils.c index = FFMAX(index, 0); FFMAX 1865 libavformat/utils.c pos_max = FFMAX(0, (pos_max) - step); FFMAX 2267 libavformat/utils.c end_time = FFMAX(end_time, end_time1); FFMAX 2279 libavformat/utils.c duration = FFMAX(duration, duration1); FFMAX 2294 libavformat/utils.c duration = FFMAX(duration, p->end_time - p->start_time); FFMAX 2297 libavformat/utils.c duration = FFMAX(duration, end_time - start_time); FFMAX 2426 libavformat/utils.c if (read_size >= DURATION_MAX_READ_SIZE << (FFMAX(retry - 1, 0))) FFMAX 2521 libavformat/utils.c file_size = FFMAX(0, file_size); FFMAX 2959 libavformat/utils.c if (tb_unreliable(st->codec) && st->info->duration_count > 15 && st->info->duration_gcd > FFMAX(1, st->time_base.den/(500LL*st->time_base.num)) && !st->r_frame_rate.num) FFMAX 3255 libavformat/utils.c t = FFMAX(t, av_rescale_q(st->codec_info_nb_frames, av_inv_q(st->avg_frame_rate), AV_TIME_BASE_Q)); FFMAX 3261 libavformat/utils.c t = FFMAX(t, av_rescale_q(st->info->fps_last_dts - st->info->fps_first_dts, st->time_base, AV_TIME_BASE_Q)); FFMAX 213 libavformat/wavenc.c FFMAX(wav->peak_maxpos[c], wav->peak_maxneg[c]); FFMAX 391 libavformat/wavenc.c wav->peak_maxpos[c] = FFMAX(wav->peak_maxpos[c], *(int8_t*)(pkt->data + i)); FFMAX 394 libavformat/wavenc.c wav->peak_maxpos[c] = FFMAX(wav->peak_maxpos[c], (int16_t)AV_RL16(pkt->data + i)); FFMAX 409 libavformat/wavenc.c wav->maxpts = FFMAX(wav->maxpts, pkt->pts); FFMAX 477 libavformat/wtvdec.c buf_size = FFMAX(2*length, LEN_PRETTY_GUID) + 1; FFMAX 701 libavformat/wtvdec.c avio_skip(pb, FFMAX(size - consumed, 0)); FFMAX 705 libavformat/wtvdec.c avio_skip(pb, FFMAX(size - consumed, 0)); FFMAX 206 libavformat/yop.c timestamp = FFMAX(0, FFMIN(frame_count, timestamp)); FFMAX 454 libavresample/audio_mix.c for (i = 0, j = 0; i < FFMAX(am->in_channels, am->out_channels); i++) { FFMAX 281 libavresample/audio_mix_matrix.c maxcoef = FFMAX(maxcoef, sum); FFMAX 432 libavresample/dither.c generate_dither_noise(c, state, FFMAX(32768, sample_rate / 2)); FFMAX 102 libavresample/resample.c y *= bessel(c->kaiser_beta * sqrt(FFMAX(1 - w * w, 0))); FFMAX 146 libavresample/resample.c c->filter_length = FFMAX((int)ceil(avr->filter_size / factor), 1); FFMAX 486 libavresample/resample.c c->initial_padding_samples = FFMAX(c->initial_padding_samples - consumed, 0); FFMAX 502 libavresample/resample.c return FFMAX(c->buffer->nb_samples - c->padding_size, 0); FFMAX 74 libavresample/utils.c int max_bps = FFMAX(av_get_bytes_per_sample(in_fmt), FFMAX 177 libavresample/utils.c avr->in_buffer = ff_audio_data_alloc(FFMAX(avr->in_channels, avr->out_channels), FFMAX 321 libavutil/avstring.c len = FFMAX(p - names, namelen); FFMAX 154 libavutil/channel_layout.c return FFMAX(layout, 0); FFMAX 65 libavutil/common.h #define FFMAX3(a,b,c) FFMAX(FFMAX(a,b),c) FFMAX 116 libavutil/fifo.c return av_fifo_realloc2(f, FFMAX(size, 2*size)); FFMAX 300 libavutil/imgutils.c planes_nb = FFMAX(planes_nb, desc->comp[i].plane + 1); FFMAX 375 libavutil/imgutils.c nb_planes = FFMAX(desc->comp[i].plane, nb_planes); FFMAX 91 libavutil/lzo.c cnt = FFMAX(c->in_end - src, 0); FFMAX 95 libavutil/lzo.c cnt = FFMAX(c->out_end - dst, 0); FFMAX 127 libavutil/lzo.c cnt = FFMAX(c->out_end - dst, 0); FFMAX 483 libavutil/mem.c min_size = FFMAX(17 * min_size / 16 + 32, min_size); FFMAX 503 libavutil/mem.c min_size = FFMAX(17 * min_size / 16 + 32, min_size); FFMAX 326 libavutil/opt.c min = FFMAX(o->min, -1); FFMAX 590 libavutil/opt.c min = FFMAX(o->min, -1); FFMAX 159 libavutil/pca.c ROTATE(pca->covariance,FFMIN(k,i),FFMAX(k,i),FFMIN(k,j),FFMAX(k,j)) FFMAX 238 libavutil/pca.c v[j] += pca->covariance[FFMIN(k,j) + FFMAX(k,j)*LEN] * eigenvector[i + k*LEN]; FFMAX 2187 libavutil/pixdesc.c *max = FFMAX(desc->comp[i].depth_minus1+1, *max); FFMAX 116 libavutil/rational.c exponent = FFMAX( (int)(log(fabs(d) + 1e-20)/LOG2), 0); FFMAX 187 libavutil/tree.c return FFMAX(left, right) + 1; FFMAX 312 libpostproc/postprocess.c d= FFMAX(d, 0); FFMAX 319 libpostproc/postprocess.c d = FFMAX(d, 0); FFMAX 325 libpostproc/postprocess.c d = FFMAX(d, q); FFMAX 417 libpostproc/postprocess.c int d= FFMAX(FFABS(b) - (FFABS(a) + FFABS(c))/2, 0); FFMAX 520 libpostproc/postprocess.c d= FFMAX(d, 0); FFMAX 526 libpostproc/postprocess.c d = FFMAX(d, 0); FFMAX 530 libpostproc/postprocess.c d = FFMAX(d, q); FFMAX 983 libpostproc/postprocess.c int minStride= FFMAX(FFABS(srcStride[0]), FFABS(dstStride[0])); FFMAX 989 libpostproc/postprocess.c FFMAX(minStride, c->stride), FFMAX 990 libpostproc/postprocess.c FFMAX(c->qpStride, absQPStride)); FFMAX 1004 libpostproc/postprocess.c const int count= FFMAX(mbHeight * absQPStride, mbWidth); FFMAX 1029 libpostproc/postprocess.c const int count= FFMAX(mbHeight * QPStride, mbWidth); FFMAX 516 libpostproc/postprocess_template.c d= FFMAX(d, 0); FFMAX 1070 libpostproc/postprocess_template.c d= FFMAX(d, 0); FFMAX 1076 libpostproc/postprocess_template.c d = FFMAX(d, 0); FFMAX 1080 libpostproc/postprocess_template.c d = FFMAX(d, q); FFMAX 3459 libpostproc/postprocess_template.c FFMAX(height-y-copyAhead, 0), srcStride); FFMAX 3462 libpostproc/postprocess_template.c for(i=FFMAX(height-y, 8); i<copyAhead+8; i++) FFMAX 15 libswresample/dither_template.c # define CLIP(v) v = FFMAX(FFMIN(v, INT32_MAX), INT32_MIN) FFMAX 20 libswresample/dither_template.c # define CLIP(v) v = FFMAX(FFMIN(v, INT16_MAX), INT16_MIN) FFMAX 314 libswresample/rematrix.c maxcoef= FFMAX(maxcoef, sum); FFMAX 103 libswresample/resample.c y *= bessel(kaiser_beta*sqrt(FFMAX(1-w*w, 0))); FFMAX 157 libswresample/resample.c maxff= FFMAX(maxff, ff); FFMAX 159 libswresample/resample.c maxsf= FFMAX(maxsf, sf); FFMAX 183 libswresample/resample.c || c->filter_length != FFMAX((int)ceil(filter_size/factor), 1) || c->format != format FFMAX 218 libswresample/resample.c c->filter_length = FFMAX((int)ceil(filter_size/factor), 1); FFMAX 402 libswresample/resample.c *out_sz = FFMAX(*out_sz + c->filter_length, FFMAX 406 libswresample/resample.c return FFMAX(res, 0); FFMAX 51 libswresample/soxr_resample.c q_spec.bw_pc = cutoff? FFMAX(FFMIN(cutoff,.995),.8)*100 : q_spec.bw_pc; FFMAX 53 libswresample/soxr_resample.c q_spec.passband_end = cutoff? FFMAX(FFMIN(cutoff,.995),.8) : q_spec.passband_end; FFMAX 372 libswresample/swresample-test.c maxdiff= FFMAX(maxdiff, FFABS(a-b)); FFMAX 402 libswresample/swresample-test.c maxdiff= FFMAX(maxdiff, FFABS(a-b)); FFMAX 474 libswresample/swresample.c ret= s->resampler->multiple_resample(s->resample, &out, out_count, &in, FFMAX(in_count-padless, 0), &consumed); FFMAX 597 libswresample/swresample.c int dither_count= FFMAX(out_count, 1<<16); FFMAX 61 libswresample/x86/rematrix_init.c sh = FFMAX(sh, FFABS(((int*)s->native_matrix)[i * nb_in + j])); FFMAX 62 libswresample/x86/rematrix_init.c sh = FFMAX(av_log2(sh) - 14, 0); FFMAX 435 libswscale/swscale.c const int firstLumSrcY = FFMAX(1 - vLumFilterSize, vLumFilterPos[dstY]); FFMAX 436 libswscale/swscale.c const int firstLumSrcY2 = FFMAX(1 - vLumFilterSize, vLumFilterPos[FFMIN(dstY | ((1 << c->chrDstVSubSample) - 1), dstH - 1)]); FFMAX 438 libswscale/swscale.c const int firstChrSrcY = FFMAX(1 - vChrFilterSize, vChrFilterPos[chrDstY]); FFMAX 376 libswscale/utils.c filterSize = FFMAX(filterSize, 1); FFMAX 606 libswscale/utils.c int left = FFMAX(j + (*filterPos)[i], 0); FFMAX 1401 libswscale/utils.c int nextSlice = FFMAX(c->vLumFilterPos[i] + c->vLumFilterSize - 1, FFMAX 1763 libswscale/utils.c int length = FFMAX(a->length, b->length); FFMAX 1780 libswscale/utils.c int length = FFMAX(a->length, b->length); FFMAX 823 libswscale/yuv2rgb.c crv = ((crv << 16) + 0x8000) / FFMAX(cy, 1); FFMAX 824 libswscale/yuv2rgb.c cbu = ((cbu << 16) + 0x8000) / FFMAX(cy, 1); FFMAX 825 libswscale/yuv2rgb.c cgu = ((cgu << 16) + 0x8000) / FFMAX(cy, 1); FFMAX 826 libswscale/yuv2rgb.c cgv = ((cgv << 16) + 0x8000) / FFMAX(cy, 1); FFMAX 565 tools/ismindex.c tracks->duration = FFMAX(tracks->duration, FFMAX 147 tools/probetest.c for (retry = 0; retry < retry_count; retry += FFMAX(size, 32)) { FFMAX 188 tools/sidxindex.c tracks->duration = FFMAX(tracks->duration,