summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2019-03-01 09:50:50 -0800
committerJerome Jiang <jianj@google.com>2019-03-05 15:22:16 -0800
commit0b3d9226881f53da91021d24ef74e5df22a24990 (patch)
tree172d936a9849dd75061442ef33ba2a2ac5f25d18 /examples
parent8971779e60c5127d2cf0d74b0b6493a07e3e5132 (diff)
downloadlibvpx-0b3d9226881f53da91021d24ef74e5df22a24990.tar
libvpx-0b3d9226881f53da91021d24ef74e5df22a24990.tar.gz
libvpx-0b3d9226881f53da91021d24ef74e5df22a24990.tar.bz2
libvpx-0b3d9226881f53da91021d24ef74e5df22a24990.zip
vp9: map speed > 9 to speed 9.
Report warning in example encoder. Change-Id: Iec4cdffce9faa65241756fbdac498214c8b93cc1
Diffstat (limited to 'examples')
-rw-r--r--examples/vp9_spatial_svc_encoder.c3
-rw-r--r--examples/vpx_temporal_svc_encoder.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/vp9_spatial_svc_encoder.c b/examples/vp9_spatial_svc_encoder.c
index 465c3818c..0c501248c 100644
--- a/examples/vp9_spatial_svc_encoder.c
+++ b/examples/vp9_spatial_svc_encoder.c
@@ -261,6 +261,9 @@ static void parse_command_line(int argc, const char **argv_,
#endif
} else if (arg_match(&arg, &speed_arg, argi)) {
svc_ctx->speed = arg_parse_uint(&arg);
+ if (svc_ctx->speed > 9) {
+ warn("Mapping speed %d to speed 9.\n", svc_ctx->speed);
+ }
} else if (arg_match(&arg, &aqmode_arg, argi)) {
svc_ctx->aqmode = arg_parse_uint(&arg);
} else if (arg_match(&arg, &threads_arg, argi)) {
diff --git a/examples/vpx_temporal_svc_encoder.c b/examples/vpx_temporal_svc_encoder.c
index ba71ca712..310740975 100644
--- a/examples/vpx_temporal_svc_encoder.c
+++ b/examples/vpx_temporal_svc_encoder.c
@@ -726,6 +726,9 @@ int main(int argc, char **argv) {
if (speed < 0) {
die("Invalid speed setting: must be positive");
}
+ if (strncmp(encoder->name, "vp9", 3) == 0 && speed > 9) {
+ warn("Mapping speed %d to speed 9.\n", speed);
+ }
for (i = min_args_base;
(int)i < min_args_base + mode_to_num_layers[layering_mode]; ++i) {