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
0f430084
Commit
0f430084
authored
Feb 22, 2012
by
Yaowu Xu
Committed by
On2 (Google) Code Review
Feb 22, 2012
Browse files
Merge "Reduced bias in picking loop filter level" into experimental
parents
76709333
737179f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
vp8/encoder/picklpf.c
vp8/encoder/picklpf.c
+12
-0
No files found.
vp8/encoder/picklpf.c
View file @
0f430084
...
@@ -354,6 +354,12 @@ void vp8cx_pick_filter_level_sg(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi, int segme
...
@@ -354,6 +354,12 @@ void vp8cx_pick_filter_level_sg(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi, int segme
if
(
cpi
->
twopass
.
section_intra_rating
<
20
)
if
(
cpi
->
twopass
.
section_intra_rating
<
20
)
Bias
=
Bias
*
cpi
->
twopass
.
section_intra_rating
/
20
;
Bias
=
Bias
*
cpi
->
twopass
.
section_intra_rating
/
20
;
#if CONFIG_T8X8
// yx, bias less for large block size
if
(
cpi
->
common
.
txfm_mode
==
ALLOW_8X8
)
Bias
>>=
1
;
#endif
filt_high
=
((
filt_mid
+
filter_step
)
>
max_filter_level
)
?
max_filter_level
:
(
filt_mid
+
filter_step
);
filt_high
=
((
filt_mid
+
filter_step
)
>
max_filter_level
)
?
max_filter_level
:
(
filt_mid
+
filter_step
);
filt_low
=
((
filt_mid
-
filter_step
)
<
min_filter_level
)
?
min_filter_level
:
(
filt_mid
-
filter_step
);
filt_low
=
((
filt_mid
-
filter_step
)
<
min_filter_level
)
?
min_filter_level
:
(
filt_mid
-
filter_step
);
...
@@ -572,6 +578,12 @@ void vp8cx_pick_filter_level(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi)
...
@@ -572,6 +578,12 @@ void vp8cx_pick_filter_level(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi)
if
(
cpi
->
twopass
.
section_intra_rating
<
20
)
if
(
cpi
->
twopass
.
section_intra_rating
<
20
)
Bias
=
Bias
*
cpi
->
twopass
.
section_intra_rating
/
20
;
Bias
=
Bias
*
cpi
->
twopass
.
section_intra_rating
/
20
;
#if CONFIG_T8X8
// yx, bias less for large block size
if
(
cpi
->
common
.
txfm_mode
==
ALLOW_8X8
)
Bias
>>=
1
;
#endif
filt_high
=
((
filt_mid
+
filter_step
)
>
max_filter_level
)
?
max_filter_level
:
(
filt_mid
+
filter_step
);
filt_high
=
((
filt_mid
+
filter_step
)
>
max_filter_level
)
?
max_filter_level
:
(
filt_mid
+
filter_step
);
filt_low
=
((
filt_mid
-
filter_step
)
<
min_filter_level
)
?
min_filter_level
:
(
filt_mid
-
filter_step
);
filt_low
=
((
filt_mid
-
filter_step
)
<
min_filter_level
)
?
min_filter_level
:
(
filt_mid
-
filter_step
);
...
...
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