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 <stdint.h> | 5 #include <stdint.h> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/port.h" | |
10 #include "base/test/perf_test_suite.h" | 9 #include "base/test/perf_test_suite.h" |
11 #include "media/formats/mp2t/timestamp_unroller.h" | 10 #include "media/formats/mp2t/timestamp_unroller.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
13 | 12 |
14 namespace media { | 13 namespace media { |
15 namespace mp2t { | 14 namespace mp2t { |
16 | 15 |
17 static std::vector<int64> TruncateTimestamps( | 16 static std::vector<int64> TruncateTimestamps( |
18 const std::vector<int64>& timestamps) { | 17 const std::vector<int64>& timestamps) { |
19 const int nbits = 33; | 18 const int nbits = 33; |
(...skipping 30 matching lines...) Expand all Loading... |
50 INT64_C(0x00000003ffffff44), // + 0xaaaaaaab | 49 INT64_C(0x00000003ffffff44), // + 0xaaaaaaab |
51 }; | 50 }; |
52 | 51 |
53 std::vector<int64> timestamps_vector( | 52 std::vector<int64> timestamps_vector( |
54 timestamps, timestamps + arraysize(timestamps)); | 53 timestamps, timestamps + arraysize(timestamps)); |
55 RunUnrollTest(timestamps_vector); | 54 RunUnrollTest(timestamps_vector); |
56 } | 55 } |
57 | 56 |
58 } // namespace mp2t | 57 } // namespace mp2t |
59 } // namespace media | 58 } // namespace media |
OLD | NEW |