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
87cf002e
Commit
87cf002e
authored
Jul 09, 2014
by
Yaowu Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup
Change-Id: I3a3ceeeed489f8b1ccd7199ff97f3fb991bbf5a4
parent
a51e389b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
vp9/encoder/vp9_pickmode.c
vp9/encoder/vp9_pickmode.c
+4
-10
No files found.
vp9/encoder/vp9_pickmode.c
View file @
87cf002e
...
...
@@ -127,6 +127,10 @@ static int combined_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
int
rv
=
0
;
const
YV12_BUFFER_CONFIG
*
scaled_ref_frame
=
vp9_get_scaled_ref_frame
(
cpi
,
ref
);
if
(
cpi
->
common
.
show_frame
&&
(
x
->
pred_mv_sad
[
ref
]
>>
3
)
>
x
->
pred_mv_sad
[
LAST_FRAME
])
return
rv
;
if
(
scaled_ref_frame
)
{
int
i
;
// Swap out the reference frame for a version that's been scaled to
...
...
@@ -138,16 +142,6 @@ static int combined_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
}
vp9_set_mv_search_range
(
x
,
&
ref_mv
);
if
(
cpi
->
common
.
show_frame
&&
(
x
->
pred_mv_sad
[
ref
]
>>
3
)
>
x
->
pred_mv_sad
[
LAST_FRAME
])
{
tmp_mv
->
as_int
=
INVALID_MV
;
if
(
scaled_ref_frame
)
{
int
i
;
for
(
i
=
0
;
i
<
MAX_MB_PLANE
;
i
++
)
xd
->
plane
[
i
].
pre
[
0
]
=
backup_yv12
[
i
];
}
return
rv
;
}
assert
(
x
->
mv_best_ref_index
[
ref
]
<=
2
);
if
(
x
->
mv_best_ref_index
[
ref
]
<
2
)
mvp_full
=
mbmi
->
ref_mvs
[
ref
][
x
->
mv_best_ref_index
[
ref
]].
as_mv
;
...
...
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