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
160f3c7e
Commit
160f3c7e
authored
Dec 08, 2010
by
Yaowu Xu
Committed by
Code Review
Dec 08, 2010
Browse files
Options
Browse Files
Download
Plain Diff
Merge "vp8e - static threshold play"
parents
d88da986
718c1971
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
vp8/encoder/rdopt.c
vp8/encoder/rdopt.c
+14
-13
No files found.
vp8/encoder/rdopt.c
View file @
160f3c7e
...
...
@@ -2241,8 +2241,7 @@ int vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int
if
(
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
(
cpi
->
active_map_enabled
&&
x
->
active_ptr
[
0
]
==
0
)
{
if
(
cpi
->
active_map_enabled
&&
x
->
active_ptr
[
0
]
==
0
)
{
x
->
skip
=
1
;
}
else
if
(
sse
<
x
->
encode_breakout
)
...
...
@@ -2250,21 +2249,23 @@ int vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int
// Check u and v to make sure skip is ok
int
sse2
=
0
;
sse2
=
VP8_UVSSE
(
x
,
IF_RTCD
(
&
cpi
->
rtcd
.
variance
));
if
(
sse2
*
2
<
x
->
encode_breakout
)
// add dc check
if
(
abs
(
sum
)
<
(
cpi
->
common
.
Y2dequant
[
0
][
0
]
<<
2
))
{
x
->
skip
=
1
;
distortion2
=
sse
;
rate2
=
500
;
sse2
=
VP8_UVSSE
(
x
,
IF_RTCD
(
&
cpi
->
rtcd
.
variance
));
disable_skip
=
1
;
// We have no real rate data so trying to adjust for rate_y and rate_uv below will cause problems.
this_rd
=
RDFUNC
(
x
->
rdmult
,
x
->
rddiv
,
rate2
,
distortion2
,
cpi
->
target_bits_per_mb
);
if
(
sse2
*
2
<
x
->
encode_breakout
)
{
x
->
skip
=
1
;
distortion2
=
sse
;
rate2
=
500
;
disable_skip
=
1
;
this_rd
=
RDFUNC
(
x
->
rdmult
,
x
->
rddiv
,
rate2
,
distortion2
,
cpi
->
target_bits_per_mb
);
break
;
// (PGW) Move break here from below - for now at least
break
;
}
}
else
x
->
skip
=
0
;
}
//intermodecost[mode_index] = vp8_cost_mv_ref(this_mode, mdcounts); // Experimental debug code
...
...
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