/third_party/ffmpeg/libavfilter/ |
D | vf_removegrain.c | 68 const int mi1 = FFMIN(a1, a8); \ 70 const int mi2 = FFMIN(a2, a7); \ 72 const int mi3 = FFMIN(a3, a6); \ 74 const int mi4 = FFMIN(a4, a5); 78 const int mi = FFMIN(FFMIN(FFMIN(a1, a2), FFMIN(a3, a4)), FFMIN(FFMIN(a5, a6), FFMIN(a7, a8))); in mode01() 127 const int mindiff = FFMIN(FFMIN(c1, c2), FFMIN(c3, c4)); in mode05() 160 const int mindiff = FFMIN(FFMIN(c1, c2), FFMIN(c3, c4)); in mode06() 192 const int mindiff = FFMIN(FFMIN(c1, c2), FFMIN(c3, c4)); in mode07() 224 const int mindiff = FFMIN(FFMIN(c1, c2), FFMIN(c3, c4)); in mode08() 246 const int mindiff = FFMIN(FFMIN(d1, d2), FFMIN(d3, d4)); in mode09() [all …]
|
D | af_stereotools.c | 184 gr = 1. + FFMIN(0., balance_in); in filter_frame() 213 l = m * mlev * FFMIN(1., 2. - mpan) + S * slev * FFMIN(1., 2. - sbal); in filter_frame() 214 r = m * mlev * FFMIN(1., mpan) - S * slev * FFMIN(1., sbal); in filter_frame() 219 l = L * FFMIN(1., 2. - sbal); in filter_frame() 220 r = R * FFMIN(1., sbal); in filter_frame() 225 l = L * mlev * FFMIN(1., 2. - mpan) + R * slev * FFMIN(1., 2. - sbal); in filter_frame() 226 r = L * mlev * FFMIN(1., mpan) - R * slev * FFMIN(1., sbal); in filter_frame() 246 l = m * mlev * FFMIN(1., 2. - mpan) + S * slev * FFMIN(1., 2. - sbal); in filter_frame() 247 r = m * mlev * FFMIN(1., mpan) - S * slev * FFMIN(1., sbal); in filter_frame() 252 l = L * mlev * FFMIN(1., 2. - mpan) + R * slev * FFMIN(1., 2. - sbal); in filter_frame() [all …]
|
D | motion_estimation.c | 82 int x_max = FFMIN(x_mb + me_ctx->search_param, me_ctx->x_max); in ff_me_search_esa() 83 int y_max = FFMIN(y_mb + me_ctx->search_param, me_ctx->y_max); in ff_me_search_esa() 101 int x_max = FFMIN(x_mb + me_ctx->search_param, me_ctx->x_max); in ff_me_search_tss() 102 int y_max = FFMIN(y_mb + me_ctx->search_param, me_ctx->y_max); in ff_me_search_tss() 132 int x_max = FFMIN(x_mb + me_ctx->search_param, me_ctx->x_max); in ff_me_search_tdls() 133 int y_max = FFMIN(y_mb + me_ctx->search_param, me_ctx->y_max); in ff_me_search_tdls() 164 int x_max = FFMIN(x_mb + me_ctx->search_param, me_ctx->x_max); in ff_me_search_ntss() 165 int y_max = FFMIN(y_mb + me_ctx->search_param, me_ctx->y_max); in ff_me_search_ntss() 217 int x_max = FFMIN(x_mb + me_ctx->search_param, me_ctx->x_max); in ff_me_search_fss() 218 int y_max = FFMIN(y_mb + me_ctx->search_param, me_ctx->y_max); in ff_me_search_fss() [all …]
|
D | vf_blend.c | 291 #define DODGE(a, b) (((a) == 255) ? (a) : FFMIN(255, (((b) << 8) / (255 - (a))))) 293 DEFINE_BLEND8(addition, FFMIN(255, A + B)) 307 DEFINE_BLEND8(heat, (A == 0) ? 0 : 255 - FFMIN(((255 - B) * (255 - B)) / A, 255)) 308 DEFINE_BLEND8(freeze, (B == 0) ? 0 : 255 - FFMIN(((255 - A) * (255 - A)) / B, 255)) 309 DEFINE_BLEND8(darken, FFMIN(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() 318 DEFINE_BLEND8(reflect, (B == 255) ? B : FFMIN(255, (A * A / (255 - B)))) in DEFINE_BLEND8() 319 DEFINE_BLEND8(glow, (A == 255) ? A : FFMIN(255, (B * B / (255 - A)))) in DEFINE_BLEND8() 334 #define DODGE(a, b) (((a) == 65535) ? (a) : FFMIN(65535, (((b) << 16) / (65535 - (a))))) in DEFINE_BLEND8() [all …]
|
D | vf_neighbor.c | 91 min = FFMIN(min, *(coordinates[i] + x)); in erosion() 113 min = FFMIN(min, AV_RN16A(coordinates[i] + x * 2)); in erosion16() 130 int limit = FFMIN(max + threshold, 255); in dilation() 136 max = FFMIN(max, limit); in dilation() 152 int limit = FFMIN(max + threshold, maxc); in dilation16() 158 max = FFMIN(max, limit); in dilation16() 177 dst[x] = FFMAX(FFMIN(sum / 8, p1[x]), limit); in deflate() 194 dst[x] = FFMAX(FFMIN(sum / 8, AV_RN16A(&p1[2 * x])), limit); in deflate16() 206 int limit = FFMIN(p1[x] + threshold, 255); in inflate() 210 dst[x] = FFMIN(FFMAX(sum / 8, p1[x]), limit); in inflate() [all …]
|
D | vf_epx.c | 64 src_line[2] = src + src_linesize * FFMIN(slice_start + 1, height-1); in epx2_slice() 79 F = src_line[1][FFMIN(x+1, width - 1)]; in epx2_slice() 131 src_line[2] = src + src_linesize * FFMIN(slice_start + 1, height-1); in epx3_slice() 146 C = src_line[0][FFMIN(x+1, width - 1)]; in epx3_slice() 149 F = src_line[1][FFMIN(x+1, width - 1)]; in epx3_slice() 152 I = src_line[2][FFMIN(x+1, width - 1)]; in epx3_slice() 254 …ctx->internal->execute(ctx, s->epx_slice, &td, NULL, FFMIN(inlink->h, ff_filter_get_nb_threads(ctx… in filter_frame()
|
D | af_atempo.c | 370 s = FFMIN((FFTSample)scalar_max, \ 378 si = FFMIN((FFTSample)scalar_max, \ 444 int nsamples = FFMIN(read_size, src_samples); in yae_load_data() 448 nsamples = FFMIN(nsamples, atempo->ring); in yae_load_data() 449 na = FFMIN(nsamples, atempo->ring - atempo->tail); in yae_load_data() 450 nb = FFMIN(nsamples - na, atempo->ring); in yae_load_data() 459 atempo->size = FFMIN(atempo->size + na, atempo->ring); in yae_load_data() 474 atempo->size = FFMIN(atempo->size + nb, atempo->ring); in yae_load_data() 534 zeros = FFMIN(start - frag->position[0], (int64_t)nsamples); in yae_load_frag() 561 n0 = i0 < na ? FFMIN(na - i0, (int)(nsamples - zeros)) : 0; in yae_load_frag() [all …]
|
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()
|
D | af_speechnorm.c | 177 …min_pi_nb_samples = FFMIN(min_pi_nb_samples, get_pi_samples(cc->pi, cc->pi_start, cc->pi_end, cc->… in available_samples() 195 const double expansion = FFMIN(s->max_expansion, s->peak_value / pi_max_peak); in next_gain() 202 return FFMIN(expansion, state + s->raise_amount); in next_gain() 204 return FFMIN(expansion, FFMAX(compression, state - s->fall_amount)); in next_gain() 236 min_gain = FFMIN(min_gain, gain_state); in min_gain() 241 min_gain = FFMIN(min_gain, gain_state); in min_gain() 326 size = FFMIN(nb_samples - n, cc->pi_size); \ 364 min_size = FFMIN(min_size, cc->pi_size); \ 374 gain = FFMIN(gain, min_gain(ctx, cc, max_size)); \
|
/third_party/ffmpeg/libavutil/ |
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(buf->len + 1, buf->size); in av_bprint_finalize()
|
D | audio_fifo.c | 144 nb_samples = FFMIN(nb_samples, af->nb_samples); in av_audio_fifo_peek() 165 nb_samples = FFMIN(nb_samples, af->nb_samples); in av_audio_fifo_peek_at() 187 nb_samples = FFMIN(nb_samples, af->nb_samples); in av_audio_fifo_read() 207 nb_samples = FFMIN(nb_samples, af->nb_samples); in av_audio_fifo_drain()
|
/third_party/ffmpeg/libavcodec/ |
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(min, p6); in x8_loop_filter() [all …]
|
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(zeroable, FFMAX(1, (zeroable * its + maxits - 1) / (2 * maxits))); in search_for_quantizers_twoloop() [all …]
|
D | pictordec.c | 187 npal = FFMIN(esize, 16); in decode_frame() 190 palette[i] = ff_cga_palette[FFMIN(pal_idx, 15)]; in decode_frame() 193 npal = FFMIN(esize, 16); in decode_frame() 196 palette[i] = ff_ega_palette[FFMIN(pal_idx, 63)]; in decode_frame() 199 npal = FFMIN(esize / 3, 256); in decode_frame() 233 stop_size = t1 - FFMIN(t1, t2); in decode_frame() 273 …memcpy(frame->data[0] + y * frame->linesize[0], s->g.buffer, FFMIN(avctx->width, bytestream2_get_b… in decode_frame()
|
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(1, 32768 - low); in ff_opus_rc_enc_laplace()
|
D | libwebpenc_common.c | 174 for (y2 = ys; y2 < FFMIN(ys + bs2, h); y2++) { in ff_libwebp_get_frame() 175 for (x2 = xs; x2 < FFMIN(xs + bs2, w); x2++) { in ff_libwebp_get_frame() 190 for (y2 = ys; y2 < FFMIN(ys + bs2, h); y2++) { in ff_libwebp_get_frame() 192 … & frame->data[p][frame->linesize[p] * y2 + xs], FFMIN(bs2, w-xs)); in ff_libwebp_get_frame() 195 for (y2 = y; y2 < FFMIN(y+bs, frame->height); y2++) { in ff_libwebp_get_frame() 198 FFMIN(bs, frame->width-x)); in ff_libwebp_get_frame()
|
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()
|
D | msp2dec.c | 74 size = FFMIN(size, bytestream2_get_bytes_left(&gb)); in msp2_decode_frame() 75 memcpy(p->data[0] + y * p->linesize[0] + x, gb.buffer, FFMIN(size, width - x)); in msp2_decode_frame() 83 memset(p->data[0] + y * p->linesize[0] + x, value, FFMIN(size, width - x)); in msp2_decode_frame()
|
D | aaccoder.c | 252 q0f = FFMIN(q0f, t); in search_for_quantizers_anmr() 324 qmin = FFMIN(qmin, t); in search_for_quantizers_anmr() 351 minrd = FFMIN(minrd, dist); in search_for_quantizers_anmr() 410 destbits = FFMIN(destbits, 5800); in search_for_quantizers_fast() 432 minthr = FFMIN(minthr, uplim); in search_for_quantizers_fast() 443 sce->sf_idx[w*16+g] = SCALE_ONE_POS + FFMIN(log2f(uplims[w*16+g]/minthr)*4,59); in search_for_quantizers_fast() 484 minscaler = FFMIN(minscaler, sce->sf_idx[w*16+g]); in search_for_quantizers_fast() 533 sce->sf_idx[w*16+g] = FFMIN(sce->sf_idx[w*16+g], 219); in search_for_quantizers_fast() 555 const float spread_threshold = FFMIN(0.75f, NOISE_SPREAD_THRESHOLD*FFMAX(0.5f, lambda/100.f)); in search_for_pns() 557 const float pns_transient_energy_r = FFMIN(0.7f, lambda / 140.f); in search_for_pns() [all …]
|
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()
|
D | aacenc_tns.c | 107 const int mmm = FFMIN(ics->tns_max_bands, ics->max_sfb); in ff_aac_apply_tns() 122 start = ics->swb_offset[FFMIN(bottom, mmm)]; in ff_aac_apply_tns() 123 end = ics->swb_offset[FFMIN( top, mmm)]; in ff_aac_apply_tns() 136 for (i = 1; i <= FFMIN(m, order); i++) { in ff_aac_apply_tns() 166 const int mmm = FFMIN(sce->ics.tns_max_bands, sce->ics.max_sfb); in ff_aac_search_for_tns()
|
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/ |
D | icodec.c | 58 return FFMIN(i, AVPROBE_SCORE_MAX / 4); in probe() 60 return FFMIN(i, AVPROBE_SCORE_MAX / 4); in probe() 62 return FFMIN(i, AVPROBE_SCORE_MAX / 4); in probe() 65 return FFMIN(i, AVPROBE_SCORE_MAX / 4); in probe() 69 return FFMIN(i, AVPROBE_SCORE_MAX / 4); in probe() 74 return AVPROBE_SCORE_MAX / 4 + FFMIN(checked, 1); in probe()
|
/third_party/ffmpeg/libswscale/ |
D | swscale.c | 93 dst[i] = FFMIN(val >> sh, (1 << 19) - 1); in hScale16To19_c() 121 dst[i] = FFMIN(val >> sh, (1 << 15) - 1); in hScale16To15_c() 138 dst[i] = FFMIN(val >> 7, (1 << 15) - 1); // the cubic equation does overflow ... in hScale8To15_c() 155 dst[i] = FFMIN(val >> 3, (1 << 19) - 1); // the cubic equation does overflow ... in hScale8To19_c() 165 dstU[i] = (FFMIN(dstU[i], 30775) * 4663 - 9289992) >> 12; // -264 in chrRangeToJpeg_c() 166 dstV[i] = (FFMIN(dstV[i], 30775) * 4663 - 9289992) >> 12; // -264 in chrRangeToJpeg_c() 183 dst[i] = (FFMIN(dst[i], 30189) * 19077 - 39057361) >> 14; in lumRangeToJpeg_c() 199 dstU[i] = (FFMIN(dstU[i], 30775 << 4) * 4663 - (9289992 << 4)) >> 12; // -264 in chrRangeToJpeg16_c() 200 dstV[i] = (FFMIN(dstV[i], 30775 << 4) * 4663 - (9289992 << 4)) >> 12; // -264 in chrRangeToJpeg16_c() 220 dst[i] = ((int)(FFMIN(dst[i], 30189 << 4) * 4769U - (39057361 << 2))) >> 12; in lumRangeToJpeg16_c() [all …]
|
/third_party/ffmpeg/tests/ |
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()
|