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
82481405
Commit
82481405
authored
Aug 10, 2014
by
Deb Mukherjee
Committed by
Gerrit Code Review
Aug 10, 2014
Browse files
Merge "Adds spatial-svc macros to code to allow disabling"
parents
93ef0e0e
80656a1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
vpx/src/svc_encodeframe.c
View file @
82481405
...
...
@@ -510,8 +510,10 @@ vpx_codec_err_t vpx_svc_init(SvcContext *svc_ctx, vpx_codec_ctx_t *codec_ctx,
}
}
#if CONFIG_SPATIAL_SVC
for
(
i
=
0
;
i
<
si
->
layers
;
++
i
)
enc_cfg
->
ss_enable_auto_alt_ref
[
i
]
=
si
->
enable_auto_alt_ref
[
i
];
#endif
// modify encoder configuration
enc_cfg
->
ss_number_layers
=
si
->
layers
;
...
...
@@ -709,12 +711,14 @@ vpx_codec_err_t vpx_svc_encode(SvcContext *svc_ctx, vpx_codec_ctx_t *codec_ctx,
si
->
rc_stats_buf_used
+=
cx_pkt
->
data
.
twopass_stats
.
sz
;
break
;
}
#if CONFIG_SPATIAL_SVC
case
VPX_CODEC_SPATIAL_SVC_LAYER_SIZES
:
{
int
i
;
for
(
i
=
0
;
i
<
si
->
layers
;
++
i
)
si
->
bytes_sum
[
i
]
+=
cx_pkt
->
data
.
layer_sizes
[
i
];
break
;
}
#endif
default:
{
break
;
}
...
...
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