Home
last modified time | relevance | path

Searched refs:ROUNDED_DIV (Results 1 – 17 of 17) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dtwinvqdec.c167 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()
Dvp9_mc_template.c25 (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) }
Dadxenc.c84 d = av_clip_intp2(ROUNDED_DIV(d, scale), 3); in adx_encode()
Dmpeg4videodec.c94 … block[s->idsp.idct_permutation[i << 3]] += ROUNDED_DIV(ac_val[i] * qscale_table[xy], s->qscale); in ff_mpeg4_pred_ac()
109 … block[s->idsp.idct_permutation[i]] += ROUNDED_DIV(ac_val[i + 8] * qscale_table[xy], s->qscale); in ff_mpeg4_pred_ac()
254 ROUNDED_DIV(((w - w2) * in mpeg4_decode_sprite_trajectory()
258 ROUNDED_DIV(((w - w2) * in mpeg4_decode_sprite_trajectory()
262 ROUNDED_DIV(((h - h2) * (r * sprite_ref[0][0] - 16LL * vop_ref[0][0]) + in mpeg4_decode_sprite_trajectory()
265 ROUNDED_DIV(((h - h2) * (r * sprite_ref[0][1] - 16LL * vop_ref[0][1]) + in mpeg4_decode_sprite_trajectory()
2932 s->pp_field_time = (ROUNDED_DIV(s->last_non_b_time, ctx->t_frame) - in decode_vop_header()
2933 ROUNDED_DIV(s->last_non_b_time - s->pp_time, ctx->t_frame)) * 2; in decode_vop_header()
2934 s->pb_field_time = (ROUNDED_DIV(s->time, ctx->t_frame) - in decode_vop_header()
2935 ROUNDED_DIV(s->last_non_b_time - s->pp_time, ctx->t_frame)) * 2; in decode_vop_header()
[all …]
Dmetasound.c52 for (i = 1; i < ROUNDED_DIV(len, width); i++) { in add_peak()
Delbg.c78 res[i] = ROUNDED_DIV(vect[i],div); in vect_division()
Dmpeg4videoenc.c165 …block[n][s->idsp.idct_permutation[i]] = level - ROUNDED_DIV(ac_val[i + 8] * qscale_table[xy], s->q… in decide_ac_pred()
187 …block[n][s->idsp.idct_permutation[i << 3]] = level - ROUNDED_DIV(ac_val[i] * qscale_table[xy], s->… in decide_ac_pred()
Dsonic.c829 s->coded_samples[ch][i] = ROUNDED_DIV(s->coded_samples[ch][i], quant); in sonic_encode_frame()
Dsnowenc.c568 return av_clip_uint8( ROUNDED_DIV(ab<<LOG2_OBMC_MAX, aa) ); //FIXME we should not need clipping in get_dc()
Dmpegvideo_enc.c154 ROUNDED_DIV(bias * (1<<(16 - QUANT_BIAS_SHIFT)), in ff_convert_matrix()
/third_party/ffmpeg/libswscale/
Dutils.c707 int intV = ROUNDED_DIV(v, sum); in initFilter()
796 W = ROUNDED_DIV(ONE*ONE*ug, ub); in fill_rgb2yuv_table()
797 V = ROUNDED_DIV(ONE*ONE*vg, vr); in fill_rgb2yuv_table()
800 Cy = ROUNDED_DIV(cy*Z, ONE); in fill_rgb2yuv_table()
801 Cu = ROUNDED_DIV(ub*Z, ONE); in fill_rgb2yuv_table()
802 Cv = ROUNDED_DIV(vr*Z, ONE); in fill_rgb2yuv_table()
804 c->input_rgb2yuv_table[RY_IDX] = -ROUNDED_DIV((1 << RGB2YUV_SHIFT)*V , Cy); in fill_rgb2yuv_table()
805 c->input_rgb2yuv_table[GY_IDX] = ROUNDED_DIV((1 << RGB2YUV_SHIFT)*ONE*ONE , Cy); in fill_rgb2yuv_table()
806 c->input_rgb2yuv_table[BY_IDX] = -ROUNDED_DIV((1 << RGB2YUV_SHIFT)*W , Cy); in fill_rgb2yuv_table()
808 c->input_rgb2yuv_table[RU_IDX] = ROUNDED_DIV((1 << RGB2YUV_SHIFT)*V , Cu); in fill_rgb2yuv_table()
[all …]
/third_party/ffmpeg/libavfilter/
Dmotion_estimation.c104 int step = ROUNDED_DIV(me_ctx->search_param, 2); in ff_me_search_tss()
135 int step = ROUNDED_DIV(me_ctx->search_param, 2); in ff_me_search_tdls()
167 int step = ROUNDED_DIV(me_ctx->search_param, 2); in ff_me_search_ntss()
Dvf_codecview.c202 rx = ROUNDED_DIV(rx * (3 << 4), length); in draw_arrow()
203 ry = ROUNDED_DIV(ry * (3 << 4), length); in draw_arrow()
Daf_aresample.c213 outsamplesref->pts = ROUNDED_DIV(outpts, inlink->sample_rate); in filter_frame()
249 pts = ROUNDED_DIV(pts, inlink->sample_rate); in flush_frame()
Dvf_minterpolate.c965 val = ROUNDED_DIV(val, weight_sum); in set_frame_data()
/third_party/ffmpeg/libavutil/
Dcommon.h56 #define ROUNDED_DIV(a,b) (((a)>=0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) macro
/third_party/ffmpeg/libavformat/
Dmovenc.c2362 … nb_frames = ROUNDED_DIV(track->st->codec->time_base.den, track->st->codec->time_base.num); in mov_write_tmcd_tag()
2370 nb_frames = ROUNDED_DIV(track->st->avg_frame_rate.den, track->st->avg_frame_rate.num); in mov_write_tmcd_tag()