Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
6d19d407
Commit
6d19d407
authored
Jan 31, 2011
by
Yaowu Xu
Committed by
Code Review
Jan 31, 2011
Browse files
Options
Browse Files
Download
Plain Diff
Merge "change the threshold of DC check for encode breakout"
parents
f6214d1d
8f279596
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
vp8/encoder/rdopt.c
vp8/encoder/rdopt.c
+12
-5
No files found.
vp8/encoder/rdopt.c
View file @
6d19d407
...
...
@@ -2229,22 +2229,28 @@ int vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int
else
if
(
x
->
encode_breakout
)
{
int
sum
,
sse
;
int
threshold
=
(
xd
->
block
[
0
].
dequant
[
1
]
*
xd
->
block
[
0
].
dequant
[
1
]
>>
4
);
if
(
threshold
<
x
->
encode_breakout
)
threshold
=
x
->
encode_breakout
;
VARIANCE_INVOKE
(
&
cpi
->
rtcd
.
variance
,
get16x16var
)
(
x
->
src
.
y_buffer
,
x
->
src
.
y_stride
,
x
->
e_mbd
.
predictor
,
16
,
(
unsigned
int
*
)(
&
sse
),
&
sum
);
if
(
sse
<
x
->
encode_breakout
)
if
(
sse
<
threshold
)
{
// Check u and v to make sure skip is ok
int
sse2
=
0
;
// add dc check
if
(
abs
(
sum
)
<
(
cpi
->
common
.
Y2dequant
[
0
][
0
]
<<
2
))
/* If theres is no codeable 2nd order dc
or a very small uniform pixel change change */
if
(
abs
(
sum
)
<
(
xd
->
block
[
24
].
dequant
[
0
]
<<
2
)
||
((
sum
*
sum
>>
8
)
>
sse
&&
abs
(
sum
)
<
128
))
{
sse2
=
VP8_UVSSE
(
x
,
IF_RTCD
(
&
cpi
->
rtcd
.
variance
));
if
(
sse2
*
2
<
x
->
encode_breakout
)
if
(
sse2
*
2
<
threshold
)
{
x
->
skip
=
1
;
distortion2
=
sse
+
sse2
;
...
...
@@ -2390,6 +2396,7 @@ int vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int
if
(
x
->
skip
)
break
;
}
// Reduce the activation RD thresholds for the best choice mode
...
...
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