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
3cac9f0a
Commit
3cac9f0a
authored
Jun 27, 2014
by
Alex Converse
Committed by
Gerrit Code Review
Jun 27, 2014
Browse files
Merge "Use UV prediction when deciding to skip in for lossless."
parents
cb51192b
aed52718
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_pickmode.c
View file @
3cac9f0a
...
@@ -592,8 +592,14 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
...
@@ -592,8 +592,14 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
unsigned
int
sse_u
,
sse_v
;
unsigned
int
sse_u
,
sse_v
;
unsigned
int
var_u
,
var_v
;
unsigned
int
var_u
,
var_v
;
// Skip u v prediction for less calculation, that won't affect
// Skip UV prediction unless breakout is zero (lossless) to save
// result much.
// computation with low impact on the result
if
(
x
->
encode_breakout
==
0
)
{
xd
->
plane
[
1
].
pre
[
0
]
=
yv12_mb
[
ref_frame
][
1
];
xd
->
plane
[
2
].
pre
[
0
]
=
yv12_mb
[
ref_frame
][
2
];
vp9_build_inter_predictors_sbuv
(
xd
,
mi_row
,
mi_col
,
bsize
);
}
var_u
=
cpi
->
fn_ptr
[
uv_size
].
vf
(
x
->
plane
[
1
].
src
.
buf
,
var_u
=
cpi
->
fn_ptr
[
uv_size
].
vf
(
x
->
plane
[
1
].
src
.
buf
,
x
->
plane
[
1
].
src
.
stride
,
x
->
plane
[
1
].
src
.
stride
,
xd
->
plane
[
1
].
dst
.
buf
,
xd
->
plane
[
1
].
dst
.
buf
,
...
...
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