Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
c6641709
Commit
c6641709
authored
Nov 04, 2015
by
Marco Paniconi
Committed by
Gerrit Code Review
Nov 04, 2015
Browse files
Merge "Bias against non-zero mv for large blocks."
parents
17534d29
04a99cb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_pickmode.c
View file @
c6641709
...
...
@@ -1483,6 +1483,20 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
this_rdc
.
rate
+=
ref_frame_cost
[
ref_frame
];
this_rdc
.
rdcost
=
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
this_rdc
.
rate
,
this_rdc
.
dist
);
// Bias against non-zero (above some threshold) motion for large blocks.
// This is temporary fix to avoid selection of large mv for big blocks.
if
(
cpi
->
oxcf
.
speed
>
5
&&
cpi
->
oxcf
.
content
!=
VP9E_CONTENT_SCREEN
&&
(
frame_mv
[
this_mode
][
ref_frame
].
as_mv
.
row
>
64
||
frame_mv
[
this_mode
][
ref_frame
].
as_mv
.
row
<
-
64
||
frame_mv
[
this_mode
][
ref_frame
].
as_mv
.
col
>
64
||
frame_mv
[
this_mode
][
ref_frame
].
as_mv
.
col
<
-
64
))
{
if
(
bsize
==
BLOCK_64X64
)
this_rdc
.
rdcost
=
this_rdc
.
rdcost
<<
1
;
else
if
(
bsize
>=
BLOCK_32X32
)
this_rdc
.
rdcost
=
3
*
this_rdc
.
rdcost
>>
1
;
}
// Skipping checking: test to see if this block can be reconstructed by
// prediction only.
if
(
cpi
->
allow_encode_breakout
)
{
...
...
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