/third_party/ffmpeg/libavcodec/ |
H A D | twinvqdec.c | 129 * @note if this function is replaced by just ROUNDED_DIV(a * b, 400.0), the 167 for (i = 1; i < ROUNDED_DIV(len, width); i++) { in add_peak() 185 int min_period = ROUNDED_DIV(40 * 2 * mtab->size, isampf); in decode_ppc() 186 int max_period = ROUNDED_DIV(40 * 2 * mtab->size * 6, isampf); in decode_ppc() 197 ROUNDED_DIV(period_coef * period_range, in decode_ppc() 203 width = ROUNDED_DIV((period + 800) * mtab->peak_per2wid, in decode_ppc()
|
H A D | vp9_mc_template.c | 25 (VP56mv) { .x = ROUNDED_DIV(a.x + b.x, 2), .y = ROUNDED_DIV(a.y + b.y, 2) } 27 (VP56mv) { .x = ROUNDED_DIV(a.x + b.x + c.x + d.x, 4), \ 28 .y = ROUNDED_DIV(a.y + b.y + c.y + d.y, 4) }
|
H A D | adxenc.c | 85 d = av_clip_intp2(ROUNDED_DIV(d, scale), 3); in adx_encode()
|
H A D | mpeg4videodec.c | 165 block[s->idsp.idct_permutation[i << 3]] += ROUNDED_DIV(ac_val[i] * qscale_table[xy], s->qscale); in ff_mpeg4_pred_ac() 180 block[s->idsp.idct_permutation[i]] += ROUNDED_DIV(ac_val[i + 8] * qscale_table[xy], s->qscale); in ff_mpeg4_pred_ac() 325 ROUNDED_DIV(((w - w2) * in mpeg4_decode_sprite_trajectory() 329 ROUNDED_DIV(((w - w2) * in mpeg4_decode_sprite_trajectory() 333 ROUNDED_DIV(((h - h2) * (r * sprite_ref[0][0] - 16LL * vop_ref[0][0]) + in mpeg4_decode_sprite_trajectory() 336 ROUNDED_DIV(((h - h2) * (r * sprite_ref[0][1] - 16LL * vop_ref[0][1]) + in mpeg4_decode_sprite_trajectory() 3010 s->pp_field_time = (ROUNDED_DIV(s->last_non_b_time, ctx->t_frame) - in decode_vop_header() 3011 ROUNDED_DIV(s->last_non_b_time - s->pp_time, ctx->t_frame)) * 2; in decode_vop_header() 3012 s->pb_field_time = (ROUNDED_DIV(s->time, ctx->t_frame) - in decode_vop_header() 3013 ROUNDED_DIV( in decode_vop_header() [all...] |
H A D | metasound.c | 52 for (i = 1; i < ROUNDED_DIV(len, width); i++) { in add_peak()
|
H A D | elbg.c | 91 res[i] = ROUNDED_DIV(vect[i],div); in vect_division()
|
H A D | mpeg4videoenc.c | 172 block[n][s->idsp.idct_permutation[i]] = level - ROUNDED_DIV(ac_val[i + 8] * qscale_table[xy], s->qscale); in decide_ac_pred() 194 block[n][s->idsp.idct_permutation[i << 3]] = level - ROUNDED_DIV(ac_val[i] * qscale_table[xy], s->qscale); in decide_ac_pred()
|
H A D | sonic.c | 835 s->coded_samples[ch][i] = ROUNDED_DIV(s->coded_samples[ch][i], quant); in sonic_encode_frame()
|
H A D | snowenc.c | 565 return av_clip_uint8( ROUNDED_DIV(ab<<LOG2_OBMC_MAX, aa) ); //FIXME we should not need clipping in get_dc()
|
H A D | mpegvideo_enc.c | 170 ROUNDED_DIV(bias * (1<<(16 - QUANT_BIAS_SHIFT)), in ff_convert_matrix()
|
/third_party/ffmpeg/libswscale/ |
H A D | utils.c | 736 int intV = ROUNDED_DIV(v, sum); in initFilter() 825 W = ROUNDED_DIV(ONE*ONE*ug, ub); in fill_rgb2yuv_table() 826 V = ROUNDED_DIV(ONE*ONE*vg, vr); in fill_rgb2yuv_table() 829 Cy = ROUNDED_DIV(cy*Z, ONE); in fill_rgb2yuv_table() 830 Cu = ROUNDED_DIV(ub*Z, ONE); in fill_rgb2yuv_table() 831 Cv = ROUNDED_DIV(vr*Z, ONE); in fill_rgb2yuv_table() 833 c->input_rgb2yuv_table[RY_IDX] = -ROUNDED_DIV((1 << RGB2YUV_SHIFT)*V , Cy); in fill_rgb2yuv_table() 834 c->input_rgb2yuv_table[GY_IDX] = ROUNDED_DIV((1 << RGB2YUV_SHIFT)*ONE*ONE , Cy); in fill_rgb2yuv_table() 835 c->input_rgb2yuv_table[BY_IDX] = -ROUNDED_DIV((1 << RGB2YUV_SHIFT)*W , Cy); in fill_rgb2yuv_table() 837 c->input_rgb2yuv_table[RU_IDX] = ROUNDED_DIV(( in fill_rgb2yuv_table() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | af_aresample.c | 208 outsamplesref->pts = ROUNDED_DIV(outpts, inlink->sample_rate); in filter_frame() 244 pts = ROUNDED_DIV(pts, inlink->sample_rate); in flush_frame()
|
H A D | motion_estimation.c | 105 int step = ROUNDED_DIV(me_ctx->search_param, 2); in ff_me_search_tss() 136 int step = ROUNDED_DIV(me_ctx->search_param, 2); in ff_me_search_tdls() 168 int step = ROUNDED_DIV(me_ctx->search_param, 2); in ff_me_search_ntss()
|
H A D | vf_codecview.c | 194 rx = ROUNDED_DIV(rx * (3 << 4), length); in draw_arrow() 195 ry = ROUNDED_DIV(ry * (3 << 4), length); in draw_arrow()
|
H A D | vf_minterpolate.c | 956 val = ROUNDED_DIV(val, weight_sum); in set_frame_data()
|
/third_party/ffmpeg/libavutil/ |
H A D | common.h | 48 #define ROUNDED_DIV(a,b) (((a)>=0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) macro
|
/third_party/ffmpeg/libavformat/ |
H A D | movenc.c | 2588 nb_frames = ROUNDED_DIV(track->st->avg_frame_rate.num, track->st->avg_frame_rate.den); in mov_write_tmcd_tag()
|