Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 const int kAppendTimeSec = 1; | 120 const int kAppendTimeSec = 1; |
| 121 const int kAppendTimeMs = kAppendTimeSec * 1000; | 121 const int kAppendTimeMs = kAppendTimeSec * 1000; |
| 122 const int k320WebMFileDurationMs = 2736; | 122 const int k320WebMFileDurationMs = 2736; |
| 123 const int k320EncWebMFileDurationMs = 2737; | 123 const int k320EncWebMFileDurationMs = 2737; |
| 124 const int k640WebMFileDurationMs = 2749; | 124 const int k640WebMFileDurationMs = 2749; |
| 125 const int kOpusEndTrimmingWebMFileDurationMs = 2741; | 125 const int kOpusEndTrimmingWebMFileDurationMs = 2741; |
| 126 const int kVP9WebMFileDurationMs = 2736; | 126 const int kVP9WebMFileDurationMs = 2736; |
| 127 const int kVP8AWebMFileDurationMs = 2734; | 127 const int kVP8AWebMFileDurationMs = 2734; |
| 128 | 128 |
| 129 #if !defined(MOJO_RENDERER) | 129 #if !defined(MOJO_RENDERER) |
| 130 #if defined(OPUS_FIXED_POINT) | 130 #if defined(OPUS_FIXED_POINT) |
|
chcunningham
2016/12/19 18:28:14
Can you add a little comment here?
NOTE: Hashes a
| |
| 131 static const char kOpusEndTrimmingHash_1[] = | 131 static const char kOpusEndTrimmingHash_1[] = |
| 132 "-4.57,-5.66,-6.52,-6.30,-4.37,-3.61,"; | 132 "-4.57,-5.66,-6.52,-6.30,-4.37,-3.61,"; |
| 133 static const char kOpusEndTrimmingHash_2[] = | 133 static const char kOpusEndTrimmingHash_2[] = |
| 134 "-11.91,-11.11,-8.27,-7.13,-7.86,-10.00,"; | 134 "-11.91,-11.11,-8.27,-7.13,-7.86,-10.00,"; |
| 135 static const char kOpusEndTrimmingHash_3[] = | 135 static const char kOpusEndTrimmingHash_3[] = |
| 136 "-13.31,-14.38,-13.70,-11.71,-10.21,-10.49,"; | 136 "-13.31,-14.38,-13.70,-11.71,-10.21,-10.49,"; |
| 137 static const char kOpusSmallCodecDelayHash_1[] = | 137 static const char kOpusSmallCodecDelayHash_1[] = |
| 138 "-0.48,-0.09,1.27,1.06,1.54,-0.22,"; | 138 "-0.48,-0.09,1.27,1.06,1.54,-0.22,"; |
| 139 static const char kOpusSmallCodecDelayHash_2[] = | 139 static const char kOpusSmallCodecDelayHash_2[] = |
| 140 "0.29,0.15,-0.19,0.25,0.68,0.83,"; | 140 "0.29,0.14,-0.20,0.24,0.68,0.83,"; |
| 141 #else | 141 #else |
| 142 // Hash for a full playthrough of "opus-trimming-test.(webm|ogg)". | 142 // Hash for a full playthrough of "opus-trimming-test.(webm|ogg)". |
| 143 static const char kOpusEndTrimmingHash_1[] = | 143 static const char kOpusEndTrimmingHash_1[] = |
| 144 "-4.56,-5.65,-6.51,-6.29,-4.36,-3.59,"; | 144 "-4.56,-5.65,-6.51,-6.29,-4.36,-3.59,"; |
| 145 // The above hash, plus an additional playthrough starting from T=1s. | 145 // The above hash, plus an additional playthrough starting from T=1s. |
| 146 static const char kOpusEndTrimmingHash_2[] = | 146 static const char kOpusEndTrimmingHash_2[] = |
| 147 "-11.89,-11.09,-8.25,-7.11,-7.84,-9.97,"; | 147 "-11.89,-11.09,-8.25,-7.11,-7.84,-9.97,"; |
| 148 // The above hash, plus an additional playthrough starting from T=6.36s. | 148 // The above hash, plus an additional playthrough starting from T=6.36s. |
| 149 static const char kOpusEndTrimmingHash_3[] = | 149 static const char kOpusEndTrimmingHash_3[] = |
| 150 "-13.28,-14.35,-13.67,-11.68,-10.18,-10.46,"; | 150 "-13.28,-14.35,-13.67,-11.68,-10.18,-10.46,"; |
| (...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2552 | 2552 |
| 2553 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { | 2553 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { |
| 2554 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); | 2554 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); |
| 2555 Play(); | 2555 Play(); |
| 2556 ASSERT_TRUE(WaitUntilOnEnded()); | 2556 ASSERT_TRUE(WaitUntilOnEnded()); |
| 2557 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), | 2557 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), |
| 2558 demuxer_->GetStartTime()); | 2558 demuxer_->GetStartTime()); |
| 2559 } | 2559 } |
| 2560 | 2560 |
| 2561 } // namespace media | 2561 } // namespace media |
| OLD | NEW |