Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
c9725813
Commit
c9725813
authored
Feb 11, 2015
by
Jingning Han
Committed by
Gerrit Code Review
Feb 11, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Account for inter prediction filter rate cost in rtc mode selection"
parents
532cb435
41b7f76d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vp9/encoder/vp9_pickmode.c
vp9/encoder/vp9_pickmode.c
+4
-3
No files found.
vp9/encoder/vp9_pickmode.c
View file @
c9725813
...
...
@@ -810,9 +810,8 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
vp9_build_inter_predictors_sby
(
xd
,
mi_row
,
mi_col
,
bsize
);
model_rd_for_sb_y
(
cpi
,
bsize
,
x
,
xd
,
&
pf_rate
[
filter
],
&
pf_dist
[
filter
],
&
pf_var
[
filter
],
&
pf_sse
[
filter
]);
cost
=
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
vp9_get_switchable_rate
(
cpi
,
xd
)
+
pf_rate
[
filter
],
pf_dist
[
filter
]);
pf_rate
[
filter
]
+=
vp9_get_switchable_rate
(
cpi
,
xd
);
cost
=
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
pf_rate
[
filter
],
pf_dist
[
filter
]);
pf_tx_size
[
filter
]
=
mbmi
->
tx_size
;
if
(
cost
<
best_cost
)
{
best_filter
=
filter
;
...
...
@@ -849,6 +848,8 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
vp9_build_inter_predictors_sby
(
xd
,
mi_row
,
mi_col
,
bsize
);
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
;
}
// chroma component rate-distortion cost modeling
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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