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
4fc8320f
Commit
4fc8320f
authored
Nov 05, 2013
by
Jingning Han
Committed by
Gerrit Code Review
Nov 05, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Avoid mv cost check for invalid mv values"
parents
a8260a38
c2217f22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
vp9/encoder/vp9_rdopt.c
vp9/encoder/vp9_rdopt.c
+10
-5
No files found.
vp9/encoder/vp9_rdopt.c
View file @
4fc8320f
...
...
@@ -1871,12 +1871,14 @@ static void rd_check_segment_txsize(VP9_COMP *cpi, MACROBLOCK *x,
mi_buf_restore
(
x
,
orig_src
,
orig_pre
);
}
if
(
has_second_rf
&&
this_mode
==
NEWMV
&&
mbmi
->
interp_filter
==
EIGHTTAP
)
{
if
(
has_second_rf
)
{
if
(
seg_mvs
[
i
][
mbmi
->
ref_frame
[
1
]].
as_int
==
INVALID_MV
||
seg_mvs
[
i
][
mbmi
->
ref_frame
[
0
]].
as_int
==
INVALID_MV
)
continue
;
}
if
(
has_second_rf
&&
this_mode
==
NEWMV
&&
mbmi
->
interp_filter
==
EIGHTTAP
)
{
// adjust src pointers
mi_buf_shift
(
x
,
i
);
if
(
cpi
->
sf
.
comp_inter_joint_search_thresh
<=
bsize
)
{
...
...
@@ -2660,6 +2662,12 @@ static int64_t handle_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
int
orig_dst_stride
[
MAX_MB_PLANE
];
int
rs
=
0
;
if
(
is_comp_pred
)
{
if
(
frame_mv
[
refs
[
0
]].
as_int
==
INVALID_MV
||
frame_mv
[
refs
[
1
]].
as_int
==
INVALID_MV
)
return
INT64_MAX
;
}
if
(
this_mode
==
NEWMV
)
{
int
rate_mv
;
if
(
is_comp_pred
)
{
...
...
@@ -2678,9 +2686,6 @@ static int64_t handle_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
&
mbmi
->
ref_mvs
[
refs
[
1
]][
0
].
as_mv
,
x
->
nmvjointcost
,
x
->
mvcost
,
MV_COST_WEIGHT
);
}
if
(
frame_mv
[
refs
[
0
]].
as_int
==
INVALID_MV
||
frame_mv
[
refs
[
1
]].
as_int
==
INVALID_MV
)
return
INT64_MAX
;
*
rate2
+=
rate_mv
;
}
else
{
int_mv
tmp_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