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
Toggle navigation
Open sidebar
BC
public
external
libvpx
Commits
5eb3efa9
Commit
5eb3efa9
authored
Aug 21, 2014
by
Dmitry Kovalev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converting configure_skippable_frame() to is_skippable_frame().
Change-Id: I9cc2b4c66a84386cc8a16cfe4545722876915126
parent
c72f0ee3
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 @
5eb3efa9
...
...
@@ -1945,18 +1945,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
...
...
@@ -2084,7 +2082,7 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi,
// second pass according to the first pass stats
if
(
cpi
->
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