/third_party/ffmpeg/libavfilter/ |
H A D | vf_removegrain.c | 60 const int mi1 = FFMIN(a1, a8); \ 62 const int mi2 = FFMIN(a2, a7); \ 64 const int mi3 = FFMIN(a3, a6); \ 66 const int mi4 = FFMIN(a4, a5); 70 const int mi = FFMIN(FFMIN(FFMIN(a1, a2), FFMIN(a3, a4)), FFMIN(FFMIN(a in mode01() [all...] |
H A D | af_stereotools.c | 183 gr = 1. + FFMIN(0., balance_in); in filter_frame() 212 l = m * mlev * FFMIN(1., 2. - mpan) + S * slev * FFMIN(1., 2. - sbal); in filter_frame() 213 r = m * mlev * FFMIN(1., mpan) - S * slev * FFMIN(1., sbal); in filter_frame() 218 l = L * FFMIN(1., 2. - sbal); in filter_frame() 219 r = R * FFMIN(1., sbal); in filter_frame() 224 l = L * mlev * FFMIN(1., 2. - mpan) + R * slev * FFMIN(1., 2. - sbal); in filter_frame() 225 r = L * mlev * FFMIN( in filter_frame() [all...] |
H A D | motion_estimation.c | 83 int x_max = FFMIN(x_mb + me_ctx->search_param, me_ctx->x_max); in ff_me_search_esa() 84 int y_max = FFMIN(y_mb + me_ctx->search_param, me_ctx->y_max); in ff_me_search_esa() 102 int x_max = FFMIN(x_mb + me_ctx->search_param, me_ctx->x_max); in ff_me_search_tss() 103 int y_max = FFMIN(y_mb + me_ctx->search_param, me_ctx->y_max); in ff_me_search_tss() 133 int x_max = FFMIN(x_mb + me_ctx->search_param, me_ctx->x_max); in ff_me_search_tdls() 134 int y_max = FFMIN(y_mb + me_ctx->search_param, me_ctx->y_max); in ff_me_search_tdls() 165 int x_max = FFMIN(x_mb + me_ctx->search_param, me_ctx->x_max); in ff_me_search_ntss() 166 int y_max = FFMIN(y_mb + me_ctx->search_param, me_ctx->y_max); in ff_me_search_ntss() 218 int x_max = FFMIN(x_mb + me_ctx->search_param, me_ctx->x_max); in ff_me_search_fss() 219 int y_max = FFMIN(y_m in ff_me_search_fss() [all...] |
H A D | blend_modes.c | 65 #define DODGE(a, b) (((a) == MAX) ? (a) : FFMIN(MAX, (((b) << DEPTH) / (MAX - (a))))) 75 #define DODGE(a, b) (((a) >= 1.0) ? (a) : FFMIN(1.0, ((b) / (1.0 - (a))))) 116 fn(addition, FFMIN(MAX, A + B)) 130 fn(heat, (A == 0) ? 0 : MAX - FFMIN(((MAX - B) * (MAX - B)) / A, MAX)) 131 fn(freeze, (B == 0) ? 0 : MAX - FFMIN(((MAX - A) * (MAX - A)) / B, MAX)) 132 fn(darken, FFMIN(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) 141 fn(reflect, (B == MAX) ? B : FFMIN(MAX, (A * A / (MAX - B)))) 142 fn(glow, (A == MAX) ? A : FFMIN(MA [all...] |
H A D | vf_neighbor.c | 88 min = FFMIN(min, *(coordinates[i] + x)); in erosion() 110 min = FFMIN(min, AV_RN16A(coordinates[i] + x * 2)); in erosion16() 127 int limit = FFMIN(max + threshold, 255); in dilation() 133 max = FFMIN(max, limit); in dilation() 149 int limit = FFMIN(max + threshold, maxc); in dilation16() 155 max = FFMIN(max, limit); in dilation16() 174 dst[x] = FFMAX(FFMIN(sum / 8, p1[x]), limit); in deflate() 191 dst[x] = FFMAX(FFMIN(sum / 8, AV_RN16A(&p1[2 * x])), limit); in deflate16() 203 int limit = FFMIN(p1[x] + threshold, 255); in inflate() 207 dst[x] = FFMIN(FFMA in inflate() [all...] |
H A D | vf_epx.c | 63 src_line[2] = src + src_linesize * FFMIN(slice_start + 1, height-1); in epx2_slice() 78 F = src_line[1][FFMIN(x+1, width - 1)]; in epx2_slice() 130 src_line[2] = src + src_linesize * FFMIN(slice_start + 1, height-1); in epx3_slice() 145 C = src_line[0][FFMIN(x+1, width - 1)]; in epx3_slice() 148 F = src_line[1][FFMIN(x+1, width - 1)]; in epx3_slice() 151 I = src_line[2][FFMIN(x+1, width - 1)]; in epx3_slice() 246 FFMIN(inlink->h, ff_filter_get_nb_threads(ctx))); in filter_frame()
|
H A D | vf_varblur.c | 164 const int l = FFMIN(radius, x); \ 165 const int r = FFMIN(radius, w - x - 1); \ 166 const int t = FFMIN(radius, y); \ 167 const int b = FFMIN(radius, h - y - 1); \ 168 const int nl = FFMIN(nradius, x); \ 169 const int nr = FFMIN(nradius, w - x - 1); \ 170 const int nt = FFMIN(nradius, y); \ 171 const int nb = FFMIN(nradius, h - y - 1); \ 280 FFMIN(s->planeheight[1], ff_filter_get_nb_threads(ctx))); in blur_frame()
|
H A D | af_speechnorm.c | 149 min_pi_nb_samples = FFMIN(min_pi_nb_samples, get_pi_samples(cc->pi, cc->pi_start, cc->pi_end, cc->pi_size)); in available_samples() 167 const double expansion = FFMIN(s->max_expansion, s->peak_value / pi_max_peak); in next_gain() 174 return FFMIN(expansion, state + s->raise_amount); in next_gain() 176 return FFMIN(expansion, FFMAX(compression, state - s->fall_amount)); in next_gain() 208 min_gain = FFMIN(min_gain, gain_state); in min_gain() 213 min_gain = FFMIN(min_gain, gain_state); in min_gain() 313 size = FFMIN(nb_samples - n, cc->pi_size); \ 358 min_size = FFMIN(min_size, cc->pi_size); \ 368 gain = FFMIN(gain, min_gain(ctx, cc, max_size)); \
|
H A D | vf_cas.c | 75 const int y1 = FFMIN(y + 1, h1); in cas_slice8() 78 const int x1 = FFMIN(x + 1, w1); in cas_slice8() 101 amp = sqrtf(av_clipf(FFMIN(mn, 511 - mx) / (float)mx, 0.f, 1.f)); in cas_slice8() 142 const int y1 = FFMIN(y + 1, h1); in cas_slice16() 145 const int x1 = FFMIN(x + 1, w1); in cas_slice16() 168 amp = sqrtf(av_clipf(FFMIN(mn, max - mx) / (float)mx, 0.f, 1.f)); in cas_slice16() 197 FFMIN(in->height, ff_filter_get_nb_threads(ctx))); in filter_frame()
|
H A D | avf_avectorscope.c | 127 y = FFMIN(y, s->h - 1); in draw_dot() 128 x = FFMIN(x, s->w - 1); in draw_dot() 132 dst[0] = FFMIN(dst[0] + s->contrast[0], 255); in draw_dot() 133 dst[1] = FFMIN(dst[1] + s->contrast[1], 255); in draw_dot() 134 dst[2] = FFMIN(dst[2] + s->contrast[2], 255); in draw_dot() 135 dst[3] = FFMIN(dst[3] + s->contrast[3], 255); in draw_dot() 280 ff_filter_execute(ctx, fade, NULL, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); in filter_frame()
|
H A D | median_template.c | 103 p = srcp + src_linesize * FFMIN(height - 1, i + radiusV); in filter_plane() 119 s->hadd(coarse, &ccoarse[BINS * FFMIN(j + radius, width - 1)], BINS); in filter_plane() 132 for (luc[k] = j - radius; luc[k] < FFMIN(j + radius + 1, width); luc[k]++) in filter_plane() 141 s->hadd(fine[k], &cfine[BINS * (width * k + FFMIN(luc[k], width - 1))], BINS); in filter_plane()
|
/third_party/ffmpeg/libavutil/ |
H A D | bprint.c | 33 #define av_bprint_room(buf) ((buf)->size - FFMIN((buf)->len, (buf)->size)) 45 min_size = buf->len + 1 + FFMIN(UINT_MAX - buf->len - 1, room); in av_bprint_alloc() 48 new_size = FFMIN(buf->size_max, min_size); in av_bprint_alloc() 63 extra_len = FFMIN(extra_len, UINT_MAX - 5 - buf->len); in av_bprint_grow() 66 buf->str[FFMIN(buf->len, buf->size - 1)] = 0; in av_bprint_grow() 78 buf->size = FFMIN(size_auto, size_max); in av_bprint_init() 152 real_n = FFMIN(n, room - 1); in av_bprint_chars() 170 real_n = FFMIN(size, room - 1); in av_bprint_append_data() 209 memcpy(buf->str + buf->len, txt, FFMIN(sizeof(txt) - 1, room)); in av_bprint_strftime() 237 unsigned real_size = FFMIN(bu in av_bprint_finalize() [all...] |
H A D | macros.h | 49 #define FFMIN(a,b) ((a) > (b) ? (b) : (a)) macro 50 #define FFMIN3(a,b,c) FFMIN(FFMIN(a,b),c)
|
H A D | fifo.c | 114 const size_t copy = FFMIN(inc, f->offset_w); in av_fifo_grow2() 163 size_t len = FFMIN(f->nb_elems - offset_w, to_write); in fifo_write_common() 218 size_t len = FFMIN(f->nb_elems - offset_r, to_read); in fifo_peek_common() 378 const size_t copy = FFMIN(new_size - old_size, offset_w); in av_fifo_realloc2() 421 int len = FFMIN(f->end - wptr, size); in av_fifo_generic_write() 459 len = FFMIN(f->end - rptr, buf_size); in av_fifo_generic_peek_at() 487 int len = FFMIN(f->end - f->rptr, buf_size); in av_fifo_generic_read()
|
/third_party/ffmpeg/libavcodec/ |
H A D | intrax8dsp.c | 97 min_pix = FFMIN(min_pix, c); in x8_setup_spatial_compensation() 110 min_pix = FFMIN(min_pix, c); in x8_setup_spatial_compensation() 221 dst[x] = src[area4 + FFMIN(2 * y + x + 2, 15)]; in spatial_compensation_1() 317 dst[x] = src[area2 + 6 - FFMIN(x + y, 6)]; in spatial_compensation_9() 379 min = FFMIN(min, p3); in x8_loop_filter() 381 min = FFMIN(min, p5); in x8_loop_filter() 383 min = FFMIN(min, p8); in x8_loop_filter() 386 min = FFMIN(min, p2); in x8_loop_filter() 388 min = FFMIN(min, p4); in x8_loop_filter() 390 min = FFMIN(mi in x8_loop_filter() [all...] |
H A D | aaccoder_twoloop.h | 210 destbits = FFMIN(destbits, 5800); in search_for_quantizers_twoloop() 211 toomanybits = FFMIN(toomanybits, 5800); in search_for_quantizers_twoloop() 212 toofewbits = FFMIN(toofewbits, 5800); in search_for_quantizers_twoloop() 255 min_spread_thr_r = FFMIN(min_spread_thr_r, spread_thr_r[w*16+g]); in search_for_quantizers_twoloop() 281 minscaler = FFMIN(minscaler, sce->sf_idx[w*16+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() 425 int new_sf = FFMIN(maxsf_i, sce->sf_idx[i] + qstep); in search_for_quantizers_twoloop() 528 minspread = FFMIN(minspread, spread_thr_r[w*16+g]); in search_for_quantizers_twoloop() 542 maxzeroed = FFMIN(zeroabl in search_for_quantizers_twoloop() [all...] |
H A D | opus_rc.c | 98 symbol = total - FFMIN(symbol, total); in ff_opus_rc_dec_cdf() 163 const int to_write = FFMIN(32 - rc->rb.cachelen, count); in ff_opus_rc_put_raw() 191 k = total - FFMIN(k, total); in ff_opus_rc_dec_uint() 196 return FFMIN(k, size - 1); in ff_opus_rc_dec_uint() 217 symbol = total - FFMIN(symbol, total); in ff_opus_rc_dec_uint_step() 241 center = total - FFMIN(center, total); in ff_opus_rc_dec_uint_tri() 283 center = (1 << 15) - FFMIN(center, 1 << 15); in ff_opus_rc_dec_laplace() 309 opus_rc_dec_update(rc, scale, low, FFMIN(low + symbol, 32768), 32768); in ff_opus_rc_dec_laplace() 330 const int distance = FFMIN(val - i, (((32768 - low) - !pos) >> 1) - 1); in ff_opus_rc_enc_laplace() 332 symbol = FFMIN( in ff_opus_rc_enc_laplace() [all...] |
H A D | pictordec.c | 185 npal = FFMIN(esize, 16); in decode_frame() 188 palette[i] = ff_cga_palette[FFMIN(pal_idx, 15)]; in decode_frame() 191 npal = FFMIN(esize, 16); in decode_frame() 194 palette[i] = ff_ega_palette[FFMIN(pal_idx, 63)]; in decode_frame() 197 npal = FFMIN(esize / 3, 256); in decode_frame() 231 stop_size = t1 - FFMIN(t1, t2); in decode_frame() 269 memcpy(frame->data[0] + y * frame->linesize[0], s->g.buffer, FFMIN(avctx->width, bytestream2_get_bytes_left(&s->g))); in decode_frame()
|
H A D | msp2dec.c | 73 size = FFMIN(size, bytestream2_get_bytes_left(&gb)); in msp2_decode_frame() 74 memcpy(p->data[0] + y * p->linesize[0] + x, gb.buffer, FFMIN(size, width - x)); in msp2_decode_frame() 82 memset(p->data[0] + y * p->linesize[0] + x, value, FFMIN(size, width - x)); in msp2_decode_frame()
|
H A D | libwebpenc_common.c | 212 for (y2 = ys; y2 < FFMIN(ys + bs2, h); y2++) { in ff_libwebp_get_frame() 213 for (x2 = xs; x2 < FFMIN(xs + bs2, w); x2++) { in ff_libwebp_get_frame() 228 for (y2 = ys; y2 < FFMIN(ys + bs2, h); y2++) { in ff_libwebp_get_frame() 230 & frame->data[p][frame->linesize[p] * y2 + xs], FFMIN(bs2, w-xs)); in ff_libwebp_get_frame() 233 for (y2 = y; y2 < FFMIN(y+bs, frame->height); y2++) { in ff_libwebp_get_frame() 236 FFMIN(bs, frame->width-x)); in ff_libwebp_get_frame()
|
H A D | h265_profile_level.c | 233 max_dpb_size = FFMIN(4 * profile->max_dpb_pic_buf, 16); in ff_h265_guess_level() 235 max_dpb_size = FFMIN(2 * profile->max_dpb_pic_buf, 16); in ff_h265_guess_level() 237 max_dpb_size = FFMIN(4 * profile->max_dpb_pic_buf / 3, 16); in ff_h265_guess_level()
|
H A D | bytestream.h | 171 g->buffer += FFMIN(g->buffer_end - g->buffer, size); in bytestream2_skip() 186 size2 = FFMIN(p->buffer_end - p->buffer, size); in bytestream2_skip_p() 271 int size2 = FFMIN(g->buffer_end - g->buffer, size); in bytestream2_get_buffer() 293 size2 = FFMIN(p->buffer_end - p->buffer, size); in bytestream2_put_buffer() 317 size2 = FFMIN(p->buffer_end - p->buffer, size); in bytestream2_set_buffer() 355 size = FFMIN(g->buffer_end - g->buffer, size); in bytestream2_copy_buffer() 356 size2 = FFMIN(p->buffer_end - p->buffer, size); in bytestream2_copy_buffer()
|
H A 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/libavformat/ |
H A D | icodec.c | 57 return FFMIN(i, AVPROBE_SCORE_MAX / 4); in probe() 59 return FFMIN(i, AVPROBE_SCORE_MAX / 4); in probe() 61 return FFMIN(i, AVPROBE_SCORE_MAX / 4); in probe() 64 return FFMIN(i, AVPROBE_SCORE_MAX / 4); in probe() 68 return FFMIN(i, AVPROBE_SCORE_MAX / 4); in probe() 73 return AVPROBE_SCORE_MAX / 4 + FFMIN(checked, 1); in probe()
|
/third_party/ffmpeg/tests/ |
H A D | audiomatch.c | 25 #define FFMIN(a,b) ((a) > (b) ? (b) : (a)) macro 100 int testlen = FFMIN(siglen, datlen-pos); in main() 106 maxshift = FFMIN(maxshift, FFABS(pos)+32); in main()
|