Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
a0327f5e
Commit
a0327f5e
authored
May 01, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
May 01, 2014
Browse files
Merge "Simplifying vp9_is_upper_layer_key_frame()."
parents
e05b92c0
eae4a467
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_svc_layercontext.c
View file @
a0327f5e
...
...
@@ -221,15 +221,9 @@ void vp9_inc_frame_in_layer(SVC *svc) {
++
lc
->
current_video_frame_in_layer
;
}
int
vp9_is_upper_layer_key_frame
(
const
struct
VP9_COMP
*
const
cpi
)
{
int
is_upper_layer_key_frame
=
0
;
if
(
cpi
->
use_svc
&&
cpi
->
svc
.
number_temporal_layers
==
1
&&
cpi
->
svc
.
spatial_layer_id
>
0
)
{
if
(
cpi
->
svc
.
layer_context
[
cpi
->
svc
.
spatial_layer_id
].
is_key_frame
)
{
is_upper_layer_key_frame
=
1
;
}
}
return
is_upper_layer_key_frame
;
int
vp9_is_upper_layer_key_frame
(
const
VP9_COMP
*
cpi
)
{
return
cpi
->
use_svc
&&
cpi
->
svc
.
number_temporal_layers
==
1
&&
cpi
->
svc
.
spatial_layer_id
>
0
&&
cpi
->
svc
.
layer_context
[
cpi
->
svc
.
spatial_layer_id
].
is_key_frame
;
}
Write
Preview
Supports
Markdown
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