Commit 1b131f1c authored by Angie Chiang's avatar Angie Chiang

Refactor: handle_inter()

Make the parenthesis symmetric
Replace interpolation filter mode number by macro

Change-Id: Ic6586114c4cebe920b950e1b3adc8ebc764d4713
parent 6305abe1
......@@ -7017,14 +7017,11 @@ static int64_t handle_inter_mode(
int64_t tmp_dist_sum = 0;
#if CONFIG_DUAL_FILTER
#if CONFIG_EXT_INTERP
for (i = 0; i < 25; ++i) {
#else
for (i = 0; i < 9; ++i) {
#endif
for (i = 0; i < SWITCHABLE_FILTERS * SWITCHABLE_FILTERS; ++i)
#else
for (i = 0; i < SWITCHABLE_FILTERS; ++i) {
for (i = 0; i < SWITCHABLE_FILTERS; ++i)
#endif
{
int j;
int64_t rs_rd;
int tmp_skip_sb = 0;
......@@ -7113,10 +7110,11 @@ static int64_t handle_inter_mode(
if ((cm->interp_filter == SWITCHABLE && newbest) ||
(cm->interp_filter != SWITCHABLE &&
#if CONFIG_DUAL_FILTER
cm->interp_filter == mbmi->interp_filter[0])) {
cm->interp_filter == mbmi->interp_filter[0]
#else
cm->interp_filter == mbmi->interp_filter)) {
cm->interp_filter == mbmi->interp_filter
#endif
)) {
pred_exists = 1;
tmp_rd = best_rd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment