Home
last modified time | relevance | path

Searched refs:FFMAX (Results 1 – 25 of 455) sorted by relevance

12345678910>>...19

/third_party/ffmpeg/libavfilter/
Dvf_removegrain.c67 const int ma1 = FFMAX(a1, a8); \
69 const int ma2 = FFMAX(a2, a7); \
71 const int ma3 = FFMAX(a3, a6); \
73 const int ma4 = FFMAX(a4, a5); \
79 const int ma = FFMAX(FFMAX(FFMAX(a1, a2), FFMAX(a3, a4)), FFMAX(FFMAX(a5, a6), FFMAX(a7, a8))); in mode01()
320 return av_clip(average, FFMIN(a2, a7), FFMAX(a2, a7)); in mode1516()
323 return av_clip(average, FFMIN(a3, a6), FFMAX(a3, a6)); in mode1516()
326 return av_clip(average, FFMIN(a1, a8), FFMAX(a1, a8)); in mode1516()
333 const int l = FFMAX(FFMAX(mi1, mi2), FFMAX(mi3, mi4)); in mode17()
336 return av_clip(c, FFMIN(l, u), FFMAX(l, u)); in mode17()
[all …]
Dmotion_estimation.c80 int x_min = FFMAX(me_ctx->x_min, x_mb - me_ctx->search_param); in ff_me_search_esa()
81 int y_min = FFMAX(me_ctx->y_min, y_mb - me_ctx->search_param); in ff_me_search_esa()
99 int x_min = FFMAX(me_ctx->x_min, x_mb - me_ctx->search_param); in ff_me_search_tss()
100 int y_min = FFMAX(me_ctx->y_min, y_mb - me_ctx->search_param); in ff_me_search_tss()
130 int x_min = FFMAX(me_ctx->x_min, x_mb - me_ctx->search_param); in ff_me_search_tdls()
131 int y_min = FFMAX(me_ctx->y_min, y_mb - me_ctx->search_param); in ff_me_search_tdls()
162 int x_min = FFMAX(me_ctx->x_min, x_mb - me_ctx->search_param); in ff_me_search_ntss()
163 int y_min = FFMAX(me_ctx->y_min, y_mb - me_ctx->search_param); in ff_me_search_ntss()
215 int x_min = FFMAX(me_ctx->x_min, x_mb - me_ctx->search_param); in ff_me_search_fss()
216 int y_min = FFMAX(me_ctx->y_min, y_mb - me_ctx->search_param); in ff_me_search_fss()
[all …]
Dgraphdump.c78 max_src_name = FFMAX(max_src_name, ln); in avfilter_graph_dump_to_buf()
79 max_in_name = FFMAX(max_in_name, strlen(l->dstpad->name)); in avfilter_graph_dump_to_buf()
80 max_in_fmt = FFMAX(max_in_fmt, print_link_prop(NULL, l)); in avfilter_graph_dump_to_buf()
85 max_dst_name = FFMAX(max_dst_name, ln); in avfilter_graph_dump_to_buf()
86 max_out_name = FFMAX(max_out_name, strlen(l->srcpad->name)); in avfilter_graph_dump_to_buf()
87 max_out_fmt = FFMAX(max_out_fmt, print_link_prop(NULL, l)); in avfilter_graph_dump_to_buf()
91 width = FFMAX(lname + 2, ltype + 4); in avfilter_graph_dump_to_buf()
Dvf_neighbor.c87 int limit = FFMAX(min - threshold, 0); in erosion()
93 min = FFMAX(min, limit); in erosion()
109 int limit = FFMAX(min - threshold, 0); in erosion16()
115 min = FFMAX(min, limit); in erosion16()
134 max = FFMAX(max, *(coordinates[i] + x)); in dilation()
156 max = FFMAX(max, AV_RN16A(coordinates[i] + x * 2)); in dilation16()
173 int limit = FFMAX(p1[x] - threshold, 0); in deflate()
177 dst[x] = FFMAX(FFMIN(sum / 8, p1[x]), limit); in deflate()
190 int limit = FFMAX(AV_RN16A(&p1[2 * x]) - threshold, 0); in deflate16()
194 dst[x] = FFMAX(FFMIN(sum / 8, AV_RN16A(&p1[2 * x])), limit); in deflate16()
[all …]
Dvf_despill.c70 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()
Dvf_blend.c290 #define BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, 255 - ((255 - (b)) << 8) / (a)))
296 DEFINE_BLEND8(subtract, FFMAX(0, A - B))
310 DEFINE_BLEND8(lighten, FFMAX(A, B)) in DEFINE_BLEND8()
316 DEFINE_BLEND8(pinlight, (B < 128) ? FFMIN(A, 2 * B) : FFMAX(A, 2 * (B - 128))) in DEFINE_BLEND8()
317 DEFINE_BLEND8(phoenix, FFMIN(A, B) - FFMAX(A, B) + 255) in DEFINE_BLEND8()
333 #define BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, 65535 - ((65535 - (b)) << 16) / (a))) in DEFINE_BLEND8()
339 DEFINE_BLEND16(subtract, FFMAX(0, A - B), 16) in DEFINE_BLEND8()
353 DEFINE_BLEND16(lighten, FFMAX(A, B), 16) in DEFINE_BLEND8()
359 DEFINE_BLEND16(pinlight, (B < 32768) ? FFMIN(A, 2 * B) : FFMAX(A, 2 * (B - 32768)), 16) in DEFINE_BLEND8()
360 DEFINE_BLEND16(phoenix, FFMIN(A, B) - FFMAX(A, B) + 65535, 16) in DEFINE_BLEND8()
[all …]
Daf_astats.c322 p->max_diff = FFMAX(p->max_diff, fabs(d - p->last)); in update_stat()
333 p->max_index = FFMAX(p->max_index, index); in update_stat()
369 p->max_sigma_x2 = FFMAX(p->max_sigma_x2, p->avg_sigma_x2); in update_stat()
434 max = FFMAX(max, p->max); in set_metadata()
436 nmax = FFMAX(nmax, p->nmax); in set_metadata()
438 max_diff = FFMAX(max_diff, p->max_diff); in set_metadata()
442 max_sigma_x2 = FFMAX(max_sigma_x2, p->max_sigma_x2); in set_metadata()
445 noise_floor = FFMAX(noise_floor, p->noise_floor); in set_metadata()
475 set_meta(metadata, c + 1, "Peak_level", "%f", LINEAR_TO_DB(FFMAX(-p->nmin, p->nmax))); in set_metadata()
483 …set_meta(metadata, c + 1, "Crest_factor", "%f", p->sigma_x2 ? FFMAX(-p->min, p->max) / sqrt(p->sig… in set_metadata()
[all …]
Dmedian_template.c73 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()
Dvf_epx.c62 src_line[0] = src + src_linesize * FFMAX(slice_start - 1, 0); in epx2_slice()
77 D = src_line[1][FFMAX(x-1, 0)]; in epx2_slice()
129 src_line[0] = src + src_linesize * FFMAX(slice_start - 1, 0); in epx3_slice()
144 A = src_line[0][FFMAX(x-1, 0)]; in epx3_slice()
147 D = src_line[1][FFMAX(x-1, 0)]; in epx3_slice()
150 G = src_line[2][FFMAX(x-1, 0)]; in epx3_slice()
Davf_showvolume.c152 *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()
345 dst[k * 4 + 0] = FFMAX(dst[k * 4 + 0] * s->f, 0); in filter_frame()
346 dst[k * 4 + 1] = FFMAX(dst[k * 4 + 1] * s->f, 0); in filter_frame()
347 dst[k * 4 + 2] = FFMAX(dst[k * 4 + 2] * s->f, 0); in filter_frame()
348 dst[k * 4 + 3] = FFMAX(dst[k * 4 + 3] * s->f, alpha); in filter_frame()
386 max_draw = FFMAX(0, calc_max_draw(s, outlink, s->max_persistent[c]) - 1); in filter_frame()
422 max_draw = FFMAX(0, calc_max_draw(s, outlink, s->max_persistent[c]) - 1); in filter_frame()
443 … drawtext(out, FFMAX(0, s->w - 8 * (int)strlen(buf)), c * (s->h + s->b) + (s->h - 8) / 2, buf, 0); in filter_frame()
Dvf_delogo.c113 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()
Davf_avectorscope.c172 d[j+0] = FFMAX(d[j+0] - s->fade[0], 0); in fade()
173 d[j+1] = FFMAX(d[j+1] - s->fade[1], 0); in fade()
174 d[j+2] = FFMAX(d[j+2] - s->fade[2], 0); in fade()
175 d[j+3] = FFMAX(d[j+3] - s->fade[3], 0); in fade()
214 s->nb_samples = FFMAX(1, av_rescale(inlink->sample_rate, s->frame_rate.den, s->frame_rate.num)); in config_input()
273 max = FFMAX(FFABS(sample), max); in filter_frame()
282 max = FFMAX(FFABS(samples[i]), max); in filter_frame()
Daf_stereotools.c183 gl = 1. - FFMAX(0., balance_in); in filter_frame()
193 gr = FFMAX(0.5, gr); in filter_frame()
196 gl = FFMAX(0.5, gl); in filter_frame()
302 gl = 1. - FFMAX(0., balance_out); in filter_frame()
312 gr = FFMAX(0.5, gr); in filter_frame()
315 gl = FFMAX(0.5, gl); in filter_frame()
/third_party/ffmpeg/libavcodec/
Dac3.c76 a = FFMAX(a - 64, 0); in calc_lowcomp1()
88 return FFMAX(a - 128, 0); in calc_lowcomp()
109 int max = FFMAX(v, psd[bin]); in ff_ac3_bit_alloc_calc_psd()
161 fastleak = FFMAX(fastleak - s->fast_decay, band_psd[band] - fast_gain); in ff_ac3_bit_alloc_calc_mask()
162 slowleak = FFMAX(slowleak - s->slow_decay, band_psd[band] - s->slow_gain); in ff_ac3_bit_alloc_calc_mask()
163 excite[band] = FFMAX(fastleak - lowcomp, slowleak); in ff_ac3_bit_alloc_calc_mask()
174 fastleak = FFMAX(fastleak - s->fast_decay, band_psd[band] - fast_gain); in ff_ac3_bit_alloc_calc_mask()
175 slowleak = FFMAX(slowleak - s->slow_decay, band_psd[band] - s->slow_gain); in ff_ac3_bit_alloc_calc_mask()
176 excite[band] = FFMAX(fastleak, slowleak); in ff_ac3_bit_alloc_calc_mask()
186 … mask[band] = FFMAX(ff_ac3_hearing_threshold_tab[band >> s->sr_shift][s->sr_code], excite[band]); in ff_ac3_bit_alloc_calc_mask()
Djpegls.c42 state->bpp = FFMAX(av_log2(state->maxval) + 1, 2); in ff_jpegls_init_state()
43 state->limit = 2*(state->bpp + FFMAX(state->bpp, 8)) - state->qbpp; in ff_jpegls_init_state()
46 state->A[i] = FFMAX(state->range + 32 >> 6, 2); in ff_jpegls_init_state()
88 s->T1 = iso_clip(FFMAX(2, basic_t1 / factor + 3 * s->near), in ff_jpegls_reset_coding_parameters()
91 s->T2 = iso_clip(FFMAX(3, basic_t2 / factor + 5 * s->near), in ff_jpegls_reset_coding_parameters()
94 s->T3 = iso_clip(FFMAX(4, basic_t3 / factor + 7 * s->near), in ff_jpegls_reset_coding_parameters()
Daacpsy.c244 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 …]
Dintrax8dsp.c98 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()
Dg729postfilter.c169 sh_ener = FFMAX(sh_ener, 0); in long_term_filter()
243 sh_gain_num = FFMAX(sh_gain_den, sh_ener); in long_term_filter()
262 gain_num_short = FFMAX(sum >> sh_gain_num, 0); in long_term_filter()
325 tmp = FFMAX(tmp, 0); in long_term_filter()
335 tmp = FFMAX(tmp, 0); in long_term_filter()
397 lt_filt_factor_a = FFMAX((L64_temp1 << 15) / (L64_temp1 + L64_temp0), MIN_LT_FILT_FACTOR_A); in long_term_filter()
550 *voicing = FFMAX(*voicing, i); in ff_g729_postfilter()
Dopus.c502 effective_lowband = FFMAX(ff_celt_freq_bands[f->start_band], in ff_celt_quant_bands()
591 quanta = FFMIN(quanta << 3, FFMAX(6 << 3, quanta)); in ff_celt_bitalloc()
612 dynalloc = FFMAX(dynalloc - 1, 2); in ff_celt_bitalloc()
659 threshold[i] = FFMAX(3 * ff_celt_freq_range[i] << duration >> 4, in ff_celt_bitalloc()
679 bandbits = FFMAX(bandbits + trim_offset[i], 0); in ff_celt_bitalloc()
704 bits1[i] = FFMAX(bits1[i] + trim_offset[i], 0); in ff_celt_bitalloc()
706 bits2[i] = FFMAX(bits2[i] + trim_offset[i], 0); in ff_celt_bitalloc()
714 bits2[i] = FFMAX(bits2[i] - bits1[i], 0); in ff_celt_bitalloc()
771 … allocation += FFMAX(remaining - (ff_celt_freq_bands[j] - ff_celt_freq_bands[f->start_band]), 0); in ff_celt_bitalloc()
775 if (allocation >= FFMAX(threshold[j], (f->channels + 1) << 3)) { in ff_celt_bitalloc()
[all …]
Dmathops.h120 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()
Daaccoder_twoloop.h198 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 …]
/third_party/ffmpeg/tests/checkasm/
Daudiodsp.c69 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/
Dslice.c172 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/pulseaudio/src/pulsecore/ffmpeg/
Dresample2.c122 y *= bessel(type*sqrt(FFMAX(1-w*w, 0))); in av_build_filter()
163 maxff= FFMAX(maxff, ff); in av_build_filter()
165 maxsf= FFMAX(maxsf, sf); in av_build_filter()
186 c->filter_length= FFMAX((int)ceil(filter_size/factor), 1); in av_resample_init()
276 *consumed= FFMAX(index, 0) >> c->phase_shift; in av_resample()
/third_party/ffmpeg/libswresample/
Dresample.c191 y *= bessel(kaiser_beta*sqrt(FFMAX(1-w*w, 0))); in build_filter()
259 maxff= FFMAX(maxff, ff); in build_filter()
261 maxsf= FFMAX(maxsf, sf); in build_filter()
295 int filter_length = FFMAX((int)ceil(filter_size/factor), 1); in resample_init()
470 dst_size = FFMAX(FFMIN(dst_size, new_size), 0); in multiple_resample()
491 dst_size = FFMAX(FFMIN(dst_size, delta_n), 0); in multiple_resample()
541 num = FFMAX(num, (num * c->ideal_dst_incr - 1) / c->dst_incr + 1); in get_out_samples()
607 *out_sz = FFMAX(*out_sz + c->filter_length, in invert_initial_buffer()
610 return FFMAX(res, 0); in invert_initial_buffer()

12345678910>>...19