OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
5 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
6 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
7 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
8 #include "media/base/mock_media_log.h" | 12 #include "media/base/mock_media_log.h" |
9 #include "media/formats/mp4/box_definitions.h" | 13 #include "media/formats/mp4/box_definitions.h" |
10 #include "media/formats/mp4/rcheck.h" | 14 #include "media/formats/mp4/rcheck.h" |
11 #include "media/formats/mp4/track_run_iterator.h" | 15 #include "media/formats/mp4/track_run_iterator.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
14 | 18 |
15 using ::testing::StrictMock; | 19 using ::testing::StrictMock; |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 // no dependents, but we occasionally encounter media where all samples are | 705 // no dependents, but we occasionally encounter media where all samples are |
702 // marked "sync" and we must rely on combining the two flags to pick out the | 706 // marked "sync" and we must rely on combining the two flags to pick out the |
703 // true key frames. See http://crbug.com/310712 and http://crbug.com/507916. | 707 // true key frames. See http://crbug.com/310712 and http://crbug.com/507916. |
704 // Realiably knowing the keyframes for video is also critical to SPS PPS | 708 // Realiably knowing the keyframes for video is also critical to SPS PPS |
705 // insertion. | 709 // insertion. |
706 EXPECT_EQ("2 K P P P K P", KeyframeAndRAPInfo(iter_.get())); | 710 EXPECT_EQ("2 K P P P K P", KeyframeAndRAPInfo(iter_.get())); |
707 } | 711 } |
708 | 712 |
709 } // namespace mp4 | 713 } // namespace mp4 |
710 } // namespace media | 714 } // namespace media |
OLD | NEW |