Skip to content
GitLab
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
cd9ae6d7
Commit
cd9ae6d7
authored
Sep 11, 2015
by
Marco Paniconi
Committed by
Gerrit Code Review
Sep 11, 2015
Browse files
Merge "Avoid scaling last_source, unless needed."
parents
f79f71fc
e8a4a3e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encoder.c
View file @
cd9ae6d7
...
...
@@ -3201,7 +3201,13 @@ static void encode_without_recode_loop(VP9_COMP *cpi,
cpi
->
Source
=
vp9_scale_if_required
(
cm
,
cpi
->
un_scaled_source
,
&
cpi
->
scaled_source
);
if
(
cpi
->
unscaled_last_source
!=
NULL
)
// Avoid scaling last_source unless its needed.
// Last source is currently only used for screen-content mode,
// or if partition_search_type == SOURCE_VAR_BASED_PARTITION.
if
(
cpi
->
unscaled_last_source
!=
NULL
&&
(
cpi
->
oxcf
.
content
==
VP9E_CONTENT_SCREEN
||
cpi
->
sf
.
partition_search_type
==
SOURCE_VAR_BASED_PARTITION
))
cpi
->
Last_Source
=
vp9_scale_if_required
(
cm
,
cpi
->
unscaled_last_source
,
&
cpi
->
scaled_last_source
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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