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 "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "webrtc/base/scoped_ptr.h" | 12 #include "webrtc/base/scoped_ptr.h" |
13 #include "webrtc/common_video/interface/video_image.h" | 13 #include "webrtc/common_video/interface/video_image.h" |
14 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 14 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
15 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 15 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
16 #include "webrtc/system_wrappers/interface/tick_util.h" | 16 #include "webrtc/system_wrappers/include/tick_util.h" |
17 #include "webrtc/test/testsupport/fileutils.h" | 17 #include "webrtc/test/testsupport/fileutils.h" |
18 #include "webrtc/test/testsupport/metrics/video_metrics.h" | 18 #include "webrtc/test/testsupport/metrics/video_metrics.h" |
19 #include "webrtc/tools/simple_command_line_parser.h" | 19 #include "webrtc/tools/simple_command_line_parser.h" |
20 #include "webrtc/video_frame.h" | 20 #include "webrtc/video_frame.h" |
21 | 21 |
22 class Vp8SequenceCoderEncodeCallback : public webrtc::EncodedImageCallback { | 22 class Vp8SequenceCoderEncodeCallback : public webrtc::EncodedImageCallback { |
23 public: | 23 public: |
24 explicit Vp8SequenceCoderEncodeCallback(FILE* encoded_file) | 24 explicit Vp8SequenceCoderEncodeCallback(FILE* encoded_file) |
25 : encoded_file_(encoded_file), | 25 : encoded_file_(encoded_file), |
26 encoded_bytes_(0) {} | 26 encoded_bytes_(0) {} |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 parser.ProcessFlags(); | 230 parser.ProcessFlags(); |
231 if (parser.GetFlag("help") == "true") { | 231 if (parser.GetFlag("help") == "true") { |
232 parser.PrintUsageMessage(); | 232 parser.PrintUsageMessage(); |
233 exit(EXIT_SUCCESS); | 233 exit(EXIT_SUCCESS); |
234 } | 234 } |
235 parser.PrintEnteredFlags(); | 235 parser.PrintEnteredFlags(); |
236 | 236 |
237 return SequenceCoder(parser); | 237 return SequenceCoder(parser); |
238 } | 238 } |
OLD | NEW |