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