OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // ffmpeg_unittests verify that the parts of the FFmpeg API that Chromium uses | 5 // ffmpeg_unittests verify that the parts of the FFmpeg API that Chromium uses |
6 // function as advertised for each media format that Chromium supports. This | 6 // function as advertised for each media format that Chromium supports. This |
7 // mostly includes stuff like reporting proper timestamps, seeking to | 7 // mostly includes stuff like reporting proper timestamps, seeking to |
8 // keyframes, and supporting certain features like reordered_opaque. | 8 // keyframes, and supporting certain features like reordered_opaque. |
9 // | 9 // |
10 // Known failures as of r54591: | 10 // Known failures as of r54591: |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "base/perftimer.h" | 35 #include "base/perftimer.h" |
36 #include "base/string_util.h" | 36 #include "base/string_util.h" |
37 #include "base/test/perf_test_suite.h" | 37 #include "base/test/perf_test_suite.h" |
38 #include "media/base/media.h" | 38 #include "media/base/media.h" |
39 #include "media/ffmpeg/ffmpeg_common.h" | 39 #include "media/ffmpeg/ffmpeg_common.h" |
40 #include "media/ffmpeg/ffmpeg_util.h" | 40 #include "media/ffmpeg/ffmpeg_util.h" |
41 #include "media/ffmpeg/file_protocol.h" | 41 #include "media/ffmpeg/file_protocol.h" |
42 #include "testing/gtest/include/gtest/gtest.h" | 42 #include "testing/gtest/include/gtest/gtest.h" |
43 | 43 |
44 int main(int argc, char** argv) { | 44 int main(int argc, char** argv) { |
45 return base::PerfTestSuite(argc, argv).Run(); | 45 return PerfTestSuite(argc, argv).Run(); |
46 } | 46 } |
47 | 47 |
48 namespace media { | 48 namespace media { |
49 | 49 |
50 class AVPacketQueue { | 50 class AVPacketQueue { |
51 public: | 51 public: |
52 AVPacketQueue() { | 52 AVPacketQueue() { |
53 } | 53 } |
54 | 54 |
55 ~AVPacketQueue() { | 55 ~AVPacketQueue() { |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 SeekTo(0.4); | 646 SeekTo(0.4); |
647 ReadRemainingFile(); | 647 ReadRemainingFile(); |
648 EXPECT_TRUE(StepDecodeVideo()); | 648 EXPECT_TRUE(StepDecodeVideo()); |
649 LOG(INFO) << decoded_video_time(); | 649 LOG(INFO) << decoded_video_time(); |
650 | 650 |
651 CloseCodecs(); | 651 CloseCodecs(); |
652 CloseFile(); | 652 CloseFile(); |
653 } | 653 } |
654 | 654 |
655 } // namespace media | 655 } // namespace media |
OLD | NEW |