OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC 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 #include <stdlib.h> | 11 #include <stdlib.h> |
12 #include <string.h> | 12 #include <string.h> |
13 | 13 |
14 #include "gflags/gflags.h" | 14 #include "gflags/gflags.h" |
15 #include "webrtc/modules/video_coding/include/video_coding.h" | 15 #include "webrtc/modules/video_coding/include/video_coding.h" |
16 #include "webrtc/modules/video_coding/test/receiver_tests.h" | 16 #include "webrtc/modules/video_coding/test/receiver_tests.h" |
17 #include "webrtc/test/testsupport/fileutils.h" | 17 #include "webrtc/test/testsupport/fileutils.h" |
18 | 18 |
19 DEFINE_string(codec, "VP8", "Codec to use (VP8 or I420)."); | 19 DEFINE_string(codec, "VP8", "Codec to use (VP8 or I420)."); |
20 DEFINE_int32(width, 352, "Width in pixels of the frames in the input file."); | 20 DEFINE_int32(width, 352, "Width in pixels of the frames in the input file."); |
21 DEFINE_int32(height, 288, "Height in pixels of the frames in the input file."); | 21 DEFINE_int32(height, 288, "Height in pixels of the frames in the input file."); |
22 DEFINE_int32(rtt, 0, "RTT (round-trip time), in milliseconds."); | 22 DEFINE_int32(rtt, 0, "RTT (round-trip time), in milliseconds."); |
23 DEFINE_string(input_filename, | 23 DEFINE_string(input_filename, |
24 webrtc::test::ProjectRootPath() + "/resources/foreman_cif.yuv", | 24 webrtc::test::ResourcePath("foreman_cif", "yuv"), |
25 "Input file."); | 25 "Input file."); |
26 DEFINE_string(output_filename, | 26 DEFINE_string(output_filename, |
27 webrtc::test::OutputPath() + | 27 webrtc::test::OutputPath() + |
28 "video_coding_test_output_352x288.yuv", | 28 "video_coding_test_output_352x288.yuv", |
29 "Output file."); | 29 "Output file."); |
30 | 30 |
31 namespace webrtc { | 31 namespace webrtc { |
32 | 32 |
33 /* | 33 /* |
34 * Build with EVENT_DEBUG defined | 34 * Build with EVENT_DEBUG defined |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 CmdArgs args; | 70 CmdArgs args; |
71 if (webrtc::ParseArguments(&args) != 0) { | 71 if (webrtc::ParseArguments(&args) != 0) { |
72 printf("Unable to parse input arguments\n"); | 72 printf("Unable to parse input arguments\n"); |
73 return -1; | 73 return -1; |
74 } | 74 } |
75 | 75 |
76 printf("Running video coding tests...\n"); | 76 printf("Running video coding tests...\n"); |
77 return RtpPlay(args); | 77 return RtpPlay(args); |
78 } | 78 } |
OLD | NEW |