Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
3430820b
Commit
3430820b
authored
Nov 27, 2010
by
Jim Bankoski
Browse files
vp8e - remove unnecessary variance calc
only do the variance calculation if necessary ( eg needed for breakout test)
parent
19e32ac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp8/encoder/rdopt.c
View file @
3430820b
...
...
@@ -1839,7 +1839,8 @@ int vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int
vp8_set_mbmode_and_mvs
(
x
,
this_mode
,
&
mode_mv
[
this_mode
]);
vp8_build_inter_predictors_mby
(
&
x
->
e_mbd
);
VARIANCE_INVOKE
(
&
cpi
->
rtcd
.
variance
,
get16x16var
)(
x
->
src
.
y_buffer
,
x
->
src
.
y_stride
,
x
->
e_mbd
.
predictor
,
16
,
(
unsigned
int
*
)(
&
sse
),
&
sum
);
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
)
{
...
...
Write
Preview
Supports
Markdown
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