OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 /* | 11 /* |
12 * This is an example demonstrating how to implement a multi-layer | 12 * This is an example demonstrating how to implement a multi-layer |
13 * VP9 encoding scheme based on spatial scalability for video applications | 13 * VP9 encoding scheme based on spatial scalability for video applications |
14 * that benefit from a scalable bitstream. | 14 * that benefit from a scalable bitstream. |
15 */ | 15 */ |
16 | 16 |
17 #include <stdarg.h> | 17 #include <stdarg.h> |
18 #include <stdlib.h> | 18 #include <stdlib.h> |
19 #include <string.h> | 19 #include <string.h> |
20 #include <time.h> | 20 #include <time.h> |
21 | 21 |
22 #include "./args.h" | 22 #include "../args.h" |
23 #include "./tools_common.h" | 23 #include "../tools_common.h" |
24 #include "./video_writer.h" | 24 #include "../video_writer.h" |
25 | 25 |
26 #include "vpx/svc_context.h" | 26 #include "vpx/svc_context.h" |
27 #include "vpx/vp8cx.h" | 27 #include "vpx/vp8cx.h" |
28 #include "vpx/vpx_encoder.h" | 28 #include "vpx/vpx_encoder.h" |
29 #include "./vpxstats.h" | 29 #include "../vpxstats.h" |
30 | 30 |
31 static const arg_def_t skip_frames_arg = | 31 static const arg_def_t skip_frames_arg = |
32 ARG_DEF("s", "skip-frames", 1, "input frames to skip"); | 32 ARG_DEF("s", "skip-frames", 1, "input frames to skip"); |
33 static const arg_def_t frames_arg = | 33 static const arg_def_t frames_arg = |
34 ARG_DEF("f", "frames", 1, "number of frames to encode"); | 34 ARG_DEF("f", "frames", 1, "number of frames to encode"); |
35 static const arg_def_t width_arg = ARG_DEF("w", "width", 1, "source width"); | 35 static const arg_def_t width_arg = ARG_DEF("w", "width", 1, "source width"); |
36 static const arg_def_t height_arg = ARG_DEF("h", "height", 1, "source height"); | 36 static const arg_def_t height_arg = ARG_DEF("h", "height", 1, "source height"); |
37 static const arg_def_t timebase_arg = | 37 static const arg_def_t timebase_arg = |
38 ARG_DEF("t", "timebase", 1, "timebase (num/den)"); | 38 ARG_DEF("t", "timebase", 1, "timebase (num/den)"); |
39 static const arg_def_t bitrate_arg = ARG_DEF( | 39 static const arg_def_t bitrate_arg = ARG_DEF( |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 | 439 |
440 vpx_img_free(&raw); | 440 vpx_img_free(&raw); |
441 | 441 |
442 // display average size, psnr | 442 // display average size, psnr |
443 printf("%s", vpx_svc_dump_statistics(&svc_ctx)); | 443 printf("%s", vpx_svc_dump_statistics(&svc_ctx)); |
444 | 444 |
445 vpx_svc_release(&svc_ctx); | 445 vpx_svc_release(&svc_ctx); |
446 | 446 |
447 return EXIT_SUCCESS; | 447 return EXIT_SUCCESS; |
448 } | 448 } |
OLD | NEW |