Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
d32e000a
Commit
d32e000a
authored
11 years ago
by
Marco Paniconi
Browse files
Options
Download
Patches
Plain Diff
Update some comments in vpx_temporal_scalable_patterns.
Change-Id: I747d26c544cc56feaaf7c75403f2f4c16a496bb7
parent
08f250f5
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
nextgen
nextgenv2
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/vpx_temporal_scalable_patterns.c
+9
-0
examples/vpx_temporal_scalable_patterns.c
with
9 additions
and
0 deletions
examples/vpx_temporal_scalable_patterns.c
+
9
−
0
View file @
d32e000a
...
...
@@ -52,6 +52,12 @@ struct RateControlMetrics {
double
layer_encoding_bitrate
[
VPX_TS_MAX_LAYERS
];
};
// Note: these rate control metrics assume only 1 key frame in the
// sequence (i.e., first frame only). So for temporal pattern# 7
// (which has key frame for every frame on base layer), the metrics
// computation will be off/wrong.
// TODO(marpan): Update these metrics to account for multiple key frames
// in the stream.
static
void
set_rate_control_metrics
(
struct
RateControlMetrics
*
rc
,
vpx_codec_enc_cfg_t
*
cfg
)
{
unsigned
int
i
=
0
;
...
...
@@ -565,6 +571,9 @@ int main(int argc, char **argv) {
}
vpx_codec_control
(
&
codec
,
VP8E_SET_STATIC_THRESHOLD
,
1
);
vpx_codec_control
(
&
codec
,
VP8E_SET_TOKEN_PARTITIONS
,
1
);
// This controls the maximum target size of the key frame.
// For generating smaller key frames, use a smaller max_intra_size_pct
// value, like 100 or 200.
max_intra_size_pct
=
(
int
)
(((
double
)
cfg
.
rc_buf_optimal_sz
*
0
.
5
)
*
((
double
)
cfg
.
g_timebase
.
den
/
cfg
.
g_timebase
.
num
)
/
10
.
0
);
vpx_codec_control
(
&
codec
,
VP8E_SET_MAX_INTRA_BITRATE_PCT
,
max_intra_size_pct
);
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets