Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
57e0b2ba
Commit
57e0b2ba
authored
Aug 28, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Aug 28, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Converting configure_skippable_frame() to is_skippable_frame()."
parents
1b087023
5eb3efa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_encoder.c
+6
-8
No files found.
vp9/encoder/vp9_encoder.c
View file @
57e0b2ba
...
...
@@ -2013,18 +2013,16 @@ YV12_BUFFER_CONFIG *vp9_scale_if_required(VP9_COMMON *cm,
}
}
static
void
configure
_skippable_frame
(
VP9_COMP
*
cpi
)
{
static
int
is
_skippable_frame
(
const
VP9_COMP
*
cpi
)
{
// If the current frame does not have non-zero motion vector detected in the
// first pass, and so do its previous and forward frames, then this frame
// can be skipped for partition check, and the partition size is assigned
// according to the variance
const
SVC
*
const
svc
=
&
cpi
->
svc
;
const
TWO_PASS
*
const
twopass
=
is_spatial_svc
(
cpi
)
?
&
svc
->
layer_context
[
svc
->
spatial_layer_id
].
twopass
:
&
cpi
->
twopass
;
SVC
*
const
svc
=
&
cpi
->
svc
;
TWO_PASS
*
const
twopass
=
is_spatial_svc
(
cpi
)
?
&
svc
->
layer_context
[
svc
->
spatial_layer_id
].
twopass
:
&
cpi
->
twopass
;
cpi
->
skippable_frame
=
(
!
frame_is_intra_only
(
&
cpi
->
common
)
&&
return
(
!
frame_is_intra_only
(
&
cpi
->
common
)
&&
twopass
->
stats_in
-
2
>
twopass
->
stats_in_start
&&
twopass
->
stats_in
<
twopass
->
stats_in_end
&&
(
twopass
->
stats_in
-
1
)
->
pcnt_inter
-
(
twopass
->
stats_in
-
1
)
->
pcnt_motion
...
...
@@ -2198,7 +2196,7 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi,
// second pass according to the first pass stats
if
(
oxcf
->
pass
==
2
&&
(
!
cpi
->
use_svc
||
is_spatial_svc
(
cpi
)))
{
c
onfigure
_skippable_frame
(
cpi
);
c
pi
->
skippable_frame
=
is
_skippable_frame
(
cpi
);
}
// For 1 pass CBR, check if we are dropping this frame.
...
...
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