OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 <memory> | 11 #include <memory> |
12 | 12 |
13 #include "webrtc/test/gtest.h" | |
14 #include "webrtc/base/checks.h" | 13 #include "webrtc/base/checks.h" |
15 #include "webrtc/base/timeutils.h" | 14 #include "webrtc/base/timeutils.h" |
16 #include "webrtc/common_video/include/video_image.h" | 15 #include "webrtc/common_video/include/video_image.h" |
17 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 16 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
18 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 17 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
| 18 #include "webrtc/test/gtest.h" |
19 #include "webrtc/test/testsupport/fileutils.h" | 19 #include "webrtc/test/testsupport/fileutils.h" |
20 #include "webrtc/test/testsupport/metrics/video_metrics.h" | 20 #include "webrtc/test/testsupport/metrics/video_metrics.h" |
21 #include "webrtc/tools/simple_command_line_parser.h" | 21 #include "webrtc/tools/simple_command_line_parser.h" |
22 #include "webrtc/video_frame.h" | 22 #include "webrtc/video_frame.h" |
23 | 23 |
24 class Vp8SequenceCoderEncodeCallback : public webrtc::EncodedImageCallback { | 24 class Vp8SequenceCoderEncodeCallback : public webrtc::EncodedImageCallback { |
25 public: | 25 public: |
26 explicit Vp8SequenceCoderEncodeCallback(FILE* encoded_file) | 26 explicit Vp8SequenceCoderEncodeCallback(FILE* encoded_file) |
27 : encoded_file_(encoded_file), encoded_bytes_(0) {} | 27 : encoded_file_(encoded_file), encoded_bytes_(0) {} |
28 ~Vp8SequenceCoderEncodeCallback(); | 28 ~Vp8SequenceCoderEncodeCallback(); |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 parser.ProcessFlags(); | 241 parser.ProcessFlags(); |
242 if (parser.GetFlag("help") == "true") { | 242 if (parser.GetFlag("help") == "true") { |
243 parser.PrintUsageMessage(); | 243 parser.PrintUsageMessage(); |
244 exit(EXIT_SUCCESS); | 244 exit(EXIT_SUCCESS); |
245 } | 245 } |
246 parser.PrintEnteredFlags(); | 246 parser.PrintEnteredFlags(); |
247 | 247 |
248 return SequenceCoder(&parser); | 248 return SequenceCoder(&parser); |
249 } | 249 } |
OLD | NEW |