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
a66b68c7
Commit
a66b68c7
authored
Mar 14, 2014
by
Jingning Han
Committed by
Gerrit Code Review
Mar 14, 2014
Browse files
Merge "Return rate and distortion cost values from non-RD mode decision"
parents
7c6337ba
ca0625ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_pickmode.c
View file @
a66b68c7
...
...
@@ -327,6 +327,8 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
if
(
this_rd
<
best_rd
)
{
best_rd
=
this_rd
;
*
returnrate
=
rate
;
*
returndistortion
=
dist
;
best_mode
=
this_mode
;
best_ref_frame
=
ref_frame
;
}
...
...
@@ -353,6 +355,8 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
if
(
this_rd
+
intra_mode_cost
<
best_rd
)
{
best_rd
=
this_rd
;
*
returnrate
=
rate
;
*
returndistortion
=
dist
;
mbmi
->
mode
=
this_mode
;
mbmi
->
ref_frame
[
0
]
=
INTRA_FRAME
;
mbmi
->
uv_mode
=
this_mode
;
...
...
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