Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
45658120
Commit
45658120
authored
Apr 09, 2015
by
Jingning Han
Committed by
Gerrit Code Review
Apr 09, 2015
Browse files
Merge "Compute prediction filter type cost only when needed"
parents
93d9c504
25206e7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_pickmode.c
View file @
45658120
...
...
@@ -1347,9 +1347,6 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
model_rd_for_sb_y
(
cpi
,
bsize
,
x
,
xd
,
&
this_rdc
.
rate
,
&
this_rdc
.
dist
,
&
var_y
,
&
sse_y
);
}
this_rdc
.
rate
+=
cm
->
interp_filter
==
SWITCHABLE
?
vp9_get_switchable_rate
(
cpi
,
xd
)
:
0
;
}
if
(
!
this_early_term
)
{
...
...
@@ -1375,6 +1372,8 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
this_rdc
.
rate
+=
vp9_get_switchable_rate
(
cpi
,
xd
);
}
}
else
{
this_rdc
.
rate
+=
cm
->
interp_filter
==
SWITCHABLE
?
vp9_get_switchable_rate
(
cpi
,
xd
)
:
0
;
this_rdc
.
rate
+=
vp9_cost_bit
(
vp9_get_skip_prob
(
cm
,
xd
),
1
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment