/third_party/ffmpeg/libavfilter/ |
D | vf_removegrain.c | 59 const int ma1 = FFMAX(a1, a8); \ 61 const int ma2 = FFMAX(a2, a7); \ 63 const int ma3 = FFMAX(a3, a6); \ 65 const int ma4 = FFMAX(a4, a5); \ 71 const int ma = FFMAX(FFMAX(FFMAX(a1, a2), FFMAX(a3, a4)), FFMAX(FFMAX(a5, a6), FFMAX(a7, a8))); in mode01() 312 return av_clip(average, FFMIN(a2, a7), FFMAX(a2, a7)); in mode1516() 315 return av_clip(average, FFMIN(a3, a6), FFMAX(a3, a6)); in mode1516() 318 return av_clip(average, FFMIN(a1, a8), FFMAX(a1, a8)); in mode1516() 325 const int l = FFMAX(FFMAX(mi1, mi2), FFMAX(mi3, mi4)); in mode17() 328 return av_clip(c, FFMIN(l, u), FFMAX(l, u)); in mode17() [all …]
|
D | motion_estimation.c | 81 int x_min = FFMAX(me_ctx->x_min, x_mb - me_ctx->search_param); in ff_me_search_esa() 82 int y_min = FFMAX(me_ctx->y_min, y_mb - me_ctx->search_param); in ff_me_search_esa() 100 int x_min = FFMAX(me_ctx->x_min, x_mb - me_ctx->search_param); in ff_me_search_tss() 101 int y_min = FFMAX(me_ctx->y_min, y_mb - me_ctx->search_param); in ff_me_search_tss() 131 int x_min = FFMAX(me_ctx->x_min, x_mb - me_ctx->search_param); in ff_me_search_tdls() 132 int y_min = FFMAX(me_ctx->y_min, y_mb - me_ctx->search_param); in ff_me_search_tdls() 163 int x_min = FFMAX(me_ctx->x_min, x_mb - me_ctx->search_param); in ff_me_search_ntss() 164 int y_min = FFMAX(me_ctx->y_min, y_mb - me_ctx->search_param); in ff_me_search_ntss() 216 int x_min = FFMAX(me_ctx->x_min, x_mb - me_ctx->search_param); in ff_me_search_fss() 217 int y_min = FFMAX(me_ctx->y_min, y_mb - me_ctx->search_param); in ff_me_search_fss() [all …]
|
D | graphdump.c | 81 max_src_name = FFMAX(max_src_name, ln); in avfilter_graph_dump_to_buf() 82 max_in_name = FFMAX(max_in_name, strlen(l->dstpad->name)); in avfilter_graph_dump_to_buf() 83 max_in_fmt = FFMAX(max_in_fmt, print_link_prop(NULL, l)); in avfilter_graph_dump_to_buf() 88 max_dst_name = FFMAX(max_dst_name, ln); in avfilter_graph_dump_to_buf() 89 max_out_name = FFMAX(max_out_name, strlen(l->srcpad->name)); in avfilter_graph_dump_to_buf() 90 max_out_fmt = FFMAX(max_out_fmt, print_link_prop(NULL, l)); in avfilter_graph_dump_to_buf() 94 width = FFMAX(lname + 2, ltype + 4); in avfilter_graph_dump_to_buf()
|
D | vf_neighbor.c | 84 int limit = FFMAX(min - threshold, 0); in erosion() 90 min = FFMAX(min, limit); in erosion() 106 int limit = FFMAX(min - threshold, 0); in erosion16() 112 min = FFMAX(min, limit); in erosion16() 131 max = FFMAX(max, *(coordinates[i] + x)); in dilation() 153 max = FFMAX(max, AV_RN16A(coordinates[i] + x * 2)); in dilation16() 170 int limit = FFMAX(p1[x] - threshold, 0); in deflate() 174 dst[x] = FFMAX(FFMIN(sum / 8, p1[x]), limit); in deflate() 187 int limit = FFMAX(AV_RN16A(&p1[2 * x]) - threshold, 0); in deflate16() 191 dst[x] = FFMAX(FFMIN(sum / 8, AV_RN16A(&p1[2 * x])), limit); in deflate16() [all …]
|
D | vf_blockdetect.c | 111 temp = FFMAX(1, temp); in calculate_blockiness() 128 block += FFMAX(FFMAX(grad[i + 0], grad[i + 1]), grad[i - 1]); in calculate_blockiness() 137 ret = FFMAX(ret, temp); in calculate_blockiness() 154 temp = FFMAX(1, temp); in calculate_blockiness() 171 block += FFMAX(FFMAX(grad[(j + 0) * grad_linesize], in calculate_blockiness() 182 ret = FFMAX(ret, temp); in calculate_blockiness()
|
D | af_astats.c | 201 s->tc_samples = FFMAX(s->time_constant * outlink->sample_rate + .5, 1); in config_output() 308 p->max_diff = FFMAX(p->max_diff, fabs(d - p->last)); in update_stat() 319 p->max_index = FFMAX(p->max_index, index); in update_stat() 356 p->max_sigma_x2 = FFMAX(p->max_sigma_x2, p->avg_sigma_x2); in update_stat() 421 max = FFMAX(max, p->max); in set_metadata() 423 nmax = FFMAX(nmax, p->nmax); in set_metadata() 425 max_diff = FFMAX(max_diff, p->max_diff); in set_metadata() 429 max_sigma_x2 = FFMAX(max_sigma_x2, p->max_sigma_x2); in set_metadata() 431 noise_floor = FFMAX(noise_floor, p->noise_floor); in set_metadata() 463 set_meta(metadata, c + 1, "Peak_level", "%f", LINEAR_TO_DB(FFMAX(-p->nmin, p->nmax))); in set_metadata() [all …]
|
D | vf_despill.c | 70 spillmap = FFMAX(blue - (red * spillmix + green * factor), 0.f); in do_despill_slice() 72 spillmap = FFMAX(green - (red * spillmix + blue * factor), 0.f); in do_despill_slice() 75 red = FFMAX(red + spillmap * redscale + brightness * spillmap, 0.f); in do_despill_slice() 76 green = FFMAX(green + spillmap * greenscale + brightness * spillmap, 0.f); in do_despill_slice() 77 blue = FFMAX(blue + spillmap * bluescale + brightness * spillmap, 0.f); in do_despill_slice()
|
D | blend_modes.c | 64 #define BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, MAX - ((MAX - (b)) << DEPTH) / (a))) 74 #define BURN(a, b) (((a) <= 0.0) ? (a) : FFMAX(0.0, 1.0 - (1.0 - (b)) / (a))) 119 fn(subtract, FFMAX(0, A - B)) 133 fn(lighten, FFMAX(A, B)) 139 fn(pinlight, (B < HALF) ? FFMIN(A, 2 * B) : FFMAX(A, 2 * (B - HALF))) 140 fn(phoenix, FFMIN(A, B) - FFMAX(A, B) + MAX)
|
D | median_template.c | 73 srcp = src + FFMAX(0, slice_h_start - radiusV) * src_linesize; in fn() 81 srcp = src + FFMAX(0, slice_h_start - radiusV - (jobnr != 0)) * src_linesize; in fn() 97 p = srcp + src_linesize * FFMAX(0, i - radiusV - 1); in fn() 140 … s->hsub(fine[k], &cfine[BINS * (width * k + FFMAX(luc[k] - 2 * radius - 1, 0))], BINS); in fn() 145 s->hsub(coarse, &ccoarse[BINS * FFMAX(j - radius, 0)], BINS); in fn()
|
D | vf_delogo.c | 113 xclipl = FFMAX(-logo_x, 0); in apply_delogo() 114 xclipr = FFMAX(logo_x+logo_w-w, 0); in apply_delogo() 115 yclipt = FFMAX(-logo_y, 0); in apply_delogo() 116 yclipb = FFMAX(logo_y+logo_h-h, 0); in apply_delogo() 179 dist = FFMAX(dist, logo_x-x+band); in apply_delogo() 181 dist = FFMAX(dist, x-(logo_x+logo_w-1-band)); in apply_delogo() 184 dist = FFMAX(dist, logo_y-y+band); in apply_delogo() 186 dist = FFMAX(dist, y-(logo_y+logo_h-1-band)); in apply_delogo()
|
D | avf_showvolume.c | 152 *peak = FFMAX(*peak, FFABS(src[i])); in find_peak() 168 s->nb_samples = FFMAX(1, av_rescale(inlink->sample_rate, s->frame_rate.den, s->frame_rate.num)); in config_input() 190 … s->persistent_max_frames = (int) FFMAX(av_q2d(s->frame_rate) * s->draw_persistent_duration, 1.); in config_input() 350 dst[k * 4 + 0] = FFMAX(dst[k * 4 + 0] * s->f, 0); in filter_frame() 351 dst[k * 4 + 1] = FFMAX(dst[k * 4 + 1] * s->f, 0); in filter_frame() 352 dst[k * 4 + 2] = FFMAX(dst[k * 4 + 2] * s->f, 0); in filter_frame() 353 dst[k * 4 + 3] = FFMAX(dst[k * 4 + 3] * s->f, alpha); in filter_frame() 391 max_draw = FFMAX(0, calc_max_draw(s, outlink, s->max_persistent[c]) - 1); in filter_frame() 427 max_draw = FFMAX(0, calc_max_draw(s, outlink, s->max_persistent[c]) - 1); in filter_frame() 448 … drawtext(out, FFMAX(0, s->w - 8 * (int)strlen(buf)), c * (s->h + s->b) + (s->h - 8) / 2, buf, 0); in filter_frame()
|
D | vf_huesaturation.c | 141 f = FFMAX(f, ir - FFMAX(ig, ib)); \ 143 f = FFMAX(f, FFMIN(ir, ig) - ib); \ 145 f = FFMAX(f, ig - FFMAX(ir, ib)); \ 147 f = FFMAX(f, FFMIN(ig, ib) - ir); \ 149 f = FFMAX(f, ib - FFMAX(ir, ig)); \ 151 f = FFMAX(f, FFMIN(ir, ib) - ig); \
|
D | vf_epx.c | 61 src_line[0] = src + src_linesize * FFMAX(slice_start - 1, 0); in epx2_slice() 76 D = src_line[1][FFMAX(x-1, 0)]; in epx2_slice() 128 src_line[0] = src + src_linesize * FFMAX(slice_start - 1, 0); in epx3_slice() 143 A = src_line[0][FFMAX(x-1, 0)]; in epx3_slice() 146 D = src_line[1][FFMAX(x-1, 0)]; in epx3_slice() 149 G = src_line[2][FFMAX(x-1, 0)]; in epx3_slice()
|
D | af_stereotools.c | 182 gl = 1. - FFMAX(0., balance_in); in filter_frame() 192 gr = FFMAX(0.5, gr); in filter_frame() 195 gl = FFMAX(0.5, gl); in filter_frame() 301 gl = 1. - FFMAX(0., balance_out); in filter_frame() 311 gr = FFMAX(0.5, gr); in filter_frame() 314 gl = FFMAX(0.5, gl); in filter_frame()
|
/third_party/ffmpeg/libavcodec/ |
D | ac3.c | 159 a = FFMAX(a - 64, 0); in calc_lowcomp1() 171 return FFMAX(a - 128, 0); in calc_lowcomp() 192 int max = FFMAX(v, psd[bin]); in ff_ac3_bit_alloc_calc_psd() 244 fastleak = FFMAX(fastleak - s->fast_decay, band_psd[band] - fast_gain); in ff_ac3_bit_alloc_calc_mask() 245 slowleak = FFMAX(slowleak - s->slow_decay, band_psd[band] - s->slow_gain); in ff_ac3_bit_alloc_calc_mask() 246 excite[band] = FFMAX(fastleak - lowcomp, slowleak); in ff_ac3_bit_alloc_calc_mask() 257 fastleak = FFMAX(fastleak - s->fast_decay, band_psd[band] - fast_gain); in ff_ac3_bit_alloc_calc_mask() 258 slowleak = FFMAX(slowleak - s->slow_decay, band_psd[band] - s->slow_gain); in ff_ac3_bit_alloc_calc_mask() 259 excite[band] = FFMAX(fastleak, slowleak); in ff_ac3_bit_alloc_calc_mask() 269 … mask[band] = FFMAX(ac3_hearing_threshold_tab[band >> s->sr_shift][s->sr_code], excite[band]); in ff_ac3_bit_alloc_calc_mask()
|
D | jpegls.c | 44 state->bpp = FFMAX(av_log2(state->maxval) + 1, 2); in ff_jpegls_init_state() 45 state->limit = 2*(state->bpp + FFMAX(state->bpp, 8)) - state->qbpp; in ff_jpegls_init_state() 48 state->A[i] = FFMAX(state->range + 32 >> 6, 2); in ff_jpegls_init_state() 90 s->T1 = iso_clip(FFMAX(2, basic_t1 / factor + 3 * s->near), in ff_jpegls_reset_coding_parameters() 93 s->T2 = iso_clip(FFMAX(3, basic_t2 / factor + 5 * s->near), in ff_jpegls_reset_coding_parameters() 96 s->T3 = iso_clip(FFMAX(4, basic_t3 / factor + 7 * s->near), in ff_jpegls_reset_coding_parameters()
|
D | aacpsy.c | 244 if (FFMAX(bitrate, psy_abr_map[i].quality) != bitrate) { in lame_calc_attack_threshold() 524 ctx->pe.max = FFMAX(pe, ctx->pe.max); in calc_bit_demand() 526 + FFMAX(ctx->pe.min, pe * (pe / ctx->pe.max))) / (PSY_PE_FORGET_SLOPE + 1); in calc_bit_demand() 534 FFMAX(ctx->frame_bits + size - bits, ctx->frame_bits / 8)); in calc_bit_demand() 571 return FFMAX(reduction, 0.0f); in calc_reduction_3gpp() 591 thr = FFMAX(band->thr, band->energy * min_snr); in calc_reduced_thr_3gpp() 660 …float pe = pctx->chan_bitrate > 32000 ? 0.0f : FFMAX(50.0f, 100.0f - pctx->chan_bitrate * 100.0f /… in psy_3gpp_analyze_channel() 678 bands[g].thr = FFMAX(bands[g].thr, bands[g-1].thr * coeffs[g].spread_hi[0]); in psy_3gpp_analyze_channel() 679 spread_en[w+g] = FFMAX(bands[g].energy, spread_en[w+g-1] * coeffs[g].spread_hi[1]); in psy_3gpp_analyze_channel() 682 bands[g].thr = FFMAX(bands[g].thr, bands[g+1].thr * coeffs[g].spread_low[0]); in psy_3gpp_analyze_channel() [all …]
|
D | intrax8dsp.c | 98 max_pix = FFMAX(max_pix, c); in x8_setup_spatial_compensation() 111 max_pix = FFMAX(max_pix, c); in x8_setup_spatial_compensation() 380 max = FFMAX(max, p3); in x8_loop_filter() 382 max = FFMAX(max, p5); in x8_loop_filter() 384 max = FFMAX(max, p8); in x8_loop_filter() 387 max = FFMAX(max, p2); in x8_loop_filter() 389 max = FFMAX(max, p4); in x8_loop_filter() 391 max = FFMAX(max, p6); in x8_loop_filter() 393 max = FFMAX(max, p7); in x8_loop_filter()
|
D | g729postfilter.c | 172 sh_ener = FFMAX(sh_ener, 0); in long_term_filter() 246 sh_gain_num = FFMAX(sh_gain_den, sh_ener); in long_term_filter() 265 gain_num_short = FFMAX(sum >> sh_gain_num, 0); in long_term_filter() 328 tmp = FFMAX(tmp, 0); in long_term_filter() 338 tmp = FFMAX(tmp, 0); in long_term_filter() 400 lt_filt_factor_a = FFMAX((L64_temp1 << 15) / (L64_temp1 + L64_temp0), MIN_LT_FILT_FACTOR_A); in long_term_filter() 553 *voicing = FFMAX(*voicing, i); in ff_g729_postfilter()
|
D | opus.c | 525 effective_lowband = FFMAX(ff_celt_freq_bands[f->start_band], in ff_celt_quant_bands() 614 quanta = FFMIN(quanta << 3, FFMAX(6 << 3, quanta)); in ff_celt_bitalloc() 635 dynalloc = FFMAX(dynalloc - 1, 2); in ff_celt_bitalloc() 682 threshold[i] = FFMAX(3 * ff_celt_freq_range[i] << duration >> 4, in ff_celt_bitalloc() 702 bandbits = FFMAX(bandbits + trim_offset[i], 0); in ff_celt_bitalloc() 727 bits1[i] = FFMAX(bits1[i] + trim_offset[i], 0); in ff_celt_bitalloc() 729 bits2[i] = FFMAX(bits2[i] + trim_offset[i], 0); in ff_celt_bitalloc() 737 bits2[i] = FFMAX(bits2[i] - bits1[i], 0); in ff_celt_bitalloc() 794 … allocation += FFMAX(remaining - (ff_celt_freq_bands[j] - ff_celt_freq_bands[f->start_band]), 0); in ff_celt_bitalloc() 798 if (allocation >= FFMAX(threshold[j], (f->channels + 1) << 3)) { in ff_celt_bitalloc() [all …]
|
D | aaccoder_twoloop.h | 198 bandwidth = FFMAX(3000, AAC_CUTOFF_FROM_BITRATE(frame_bit_rate, 1, avctx->sample_rate)); in search_for_quantizers_twoloop() 256 max_spread_thr_r = FFMAX(max_spread_thr_r, spread_thr_r[w*16+g]); in search_for_quantizers_twoloop() 278 + 1.75*log2f(FFMAX(0.00125f,uplims[w*16+g]) / sce->ics.swb_sizes[g]) in search_for_quantizers_twoloop() 339 energy2uplim = FFMAX(0.015625f, FFMIN(1.0f, energy2uplim)); in search_for_quantizers_twoloop() 353 energy2uplim = FFMAX(0.015625f, FFMIN(1.0f, energy2uplim)); in search_for_quantizers_twoloop() 509 float ovrdist = dists[w*16+g] / FFMAX(uplims[w*16+g],euplims[w*16+g]); in search_for_quantizers_twoloop() 510 maxoverdist = FFMAX(maxoverdist, ovrdist); in search_for_quantizers_twoloop() 529 maxspread = FFMAX(maxspread, spread_thr_r[w*16+g]); in search_for_quantizers_twoloop() 542 … maxzeroed = FFMIN(zeroable, FFMAX(1, (zeroable * its + maxits - 1) / (2 * maxits))); in search_for_quantizers_twoloop() 582 maxscaler = FFMAX(maxscaler, sce->sf_idx[w*16+g]); in search_for_quantizers_twoloop() [all …]
|
D | mathops.h | 120 if (c < d) return (FFMIN(b, d) + FFMAX(a, c)) / 2; in median4() 121 else return (FFMIN(b, c) + FFMAX(a, d)) / 2; in median4() 123 if (c < d) return (FFMIN(a, d) + FFMAX(b, c)) / 2; in median4() 124 else return (FFMIN(a, c) + FFMAX(b, d)) / 2; in median4()
|
/third_party/ffmpeg/tests/checkasm/ |
D | audiodsp.c | 69 len = 16 * FFMAX(len, 1); in checkasm_check_audiodsp() 102 max = FFMAX(val1, val2); in checkasm_check_audiodsp() 107 len = 32 * FFMAX(len, 1); in checkasm_check_audiodsp() 130 max = FFMAX(val1, val2); in checkasm_check_audiodsp() 135 len = 16 * FFMAX(len, 1); in checkasm_check_audiodsp()
|
/third_party/ffmpeg/libswscale/ |
D | slice.c | 172 s->plane[i].sliceH = FFMAX(tot_lines, s->plane[i].sliceH); in ff_init_slice_from_src() 235 int nextSlice = FFMAX(lumFilterPos[lumY] + lumFilterSize - 1, in get_min_buffer_size() 241 (*out_lum_size) = FFMAX((*out_lum_size), nextSlice - lumFilterPos[lumY]); in get_min_buffer_size() 242 (*out_chr_size) = FFMAX((*out_chr_size), (nextSlice >> chrSubSample) - chrFilterPos[chrY]); in get_min_buffer_size() 268 lumBufSize = FFMAX(lumBufSize, c->vLumFilterSize + MAX_LINES_AHEAD); in ff_init_filters() 269 chrBufSize = FFMAX(chrBufSize, c->vChrFilterSize + MAX_LINES_AHEAD); in ff_init_filters() 280 c->numSlice = FFMAX(num_ydesc, num_cdesc) + 2; in ff_init_filters() 336 dstIdx = FFMAX(num_ydesc, num_cdesc); in ff_init_filters() 353 dstIdx = FFMAX(num_ydesc, num_cdesc); in ff_init_filters()
|
/third_party/ffmpeg/libavutil/ |
D | macros.h | 47 #define FFMAX(a,b) ((a) > (b) ? (a) : (b)) macro 48 #define FFMAX3(a,b,c) FFMAX(FFMAX(a,b),c)
|