Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
ac211fe2
Commit
ac211fe2
authored
Jul 28, 2017
by
Jerome Jiang
Browse files
vp9: Adjust logic in source sad for screen content.
Change-Id: I917d106f4c95ea44e413e23881f6303982e1a6a3
parent
3c73e587
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encodeframe.c
View file @
ac211fe2
...
...
@@ -1011,7 +1011,8 @@ static void avg_source_sad(VP9_COMP *cpi, MACROBLOCK *x, int shift,
:
kHighSadHighSumdiff
;
// Detect large lighting change.
if
(
tmp_variance
<
(
tmp_sse
>>
3
)
&&
(
tmp_sse
-
tmp_variance
)
>
10000
)
if
(
cpi
->
oxcf
.
content
!=
VP9E_CONTENT_SCREEN
&&
tmp_variance
<
(
tmp_sse
>>
3
)
&&
(
tmp_sse
-
tmp_variance
)
>
10000
)
x
->
content_state_sb
=
kLowVarHighSumdiff
;
else
if
(
tmp_sad
>
(
avg_source_sad_threshold
<<
1
))
x
->
content_state_sb
=
kVeryHighSad
;
...
...
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