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
255241c6
Commit
255241c6
authored
Aug 25, 2017
by
Marco Paniconi
Committed by
Gerrit Code Review
Aug 25, 2017
Browse files
Merge "vp9: Speed 6 adapt_partition for live/vbr usage."
parents
43b9e785
a0de2692
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_encodeframe.c
+4
-1
vp9/encoder/vp9_speed_features.c
vp9/encoder/vp9_speed_features.c
+3
-2
vp9/encoder/vp9_speed_features.h
vp9/encoder/vp9_speed_features.h
+4
-2
No files found.
vp9/encoder/vp9_encodeframe.c
View file @
255241c6
...
...
@@ -4178,7 +4178,10 @@ static void encode_nonrd_sb_row(VP9_COMP *cpi, ThreadData *td,
int
shift
=
cpi
->
Source
->
y_stride
*
(
mi_row
<<
3
)
+
(
mi_col
<<
3
);
int
sb_offset2
=
((
cm
->
mi_cols
+
7
)
>>
3
)
*
(
mi_row
>>
3
)
+
(
mi_col
>>
3
);
int64_t
source_sad
=
avg_source_sad
(
cpi
,
x
,
shift
,
sb_offset2
);
if
(
sf
->
adapt_partition_source_sad
&&
source_sad
>
40000
)
if
(
sf
->
adapt_partition_source_sad
&&
(
cpi
->
oxcf
.
rc_mode
==
VPX_VBR
&&
source_sad
>
sf
->
adapt_partition_thresh
&&
cpi
->
refresh_golden_frame
))
partition_search_type
=
REFERENCE_PARTITION
;
}
...
...
vp9/encoder/vp9_speed_features.c
View file @
255241c6
...
...
@@ -535,8 +535,9 @@ static void set_rt_speed_feature_framesize_independent(
if
(
!
cpi
->
external_resize
&&
cm
->
width
<=
1920
)
sf
->
use_source_sad
=
1
;
if
(
sf
->
use_source_sad
)
{
if
(
cm
->
width
*
cm
->
height
<=
640
*
360
)
sf
->
adapt_partition_source_sad
=
1
;
sf
->
adapt_partition_thresh
=
(
cm
->
width
*
cm
->
height
<=
640
*
360
)
?
40000
:
80000
;
if
(
cpi
->
content_state_sb_fd
==
NULL
&&
(
!
cpi
->
use_svc
||
cpi
->
svc
.
spatial_layer_id
==
cpi
->
svc
.
number_spatial_layers
-
1
))
{
...
...
vp9/encoder/vp9_speed_features.h
View file @
255241c6
...
...
@@ -491,9 +491,11 @@ typedef struct SPEED_FEATURES {
int
use_simple_block_yrd
;
// If source sad of superblock is high, will switch from VARIANCE_PARTITION to
// REFERENCE_PARTITION (which selects partition based on the nonrd-pickmode).
// If source sad of superblock is high (> adapt_partition_thresh), will switch
// from VARIANCE_PARTITION to REFERENCE_PARTITION (which selects partition
// based on the nonrd-pickmode).
int
adapt_partition_source_sad
;
int
adapt_partition_thresh
;
}
SPEED_FEATURES
;
struct
VP9_COMP
;
...
...
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