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> |
| 6 #include <stdint.h> |
| 7 |
5 #include <algorithm> | 8 #include <algorithm> |
6 | 9 |
7 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/macros.h" |
8 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
9 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
11 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
12 #include "media/base/audio_decoder_config.h" | 16 #include "media/base/audio_decoder_config.h" |
13 #include "media/base/decoder_buffer.h" | 17 #include "media/base/decoder_buffer.h" |
14 #include "media/base/decrypt_config.h" | 18 #include "media/base/decrypt_config.h" |
15 #include "media/base/media_log.h" | 19 #include "media/base/media_log.h" |
16 #include "media/base/mock_demuxer_host.h" | 20 #include "media/base/mock_demuxer_host.h" |
17 #include "media/base/test_data_util.h" | 21 #include "media/base/test_data_util.h" |
(...skipping 3953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3971 // audio size is 80 bytes, new data is 28 bytes, we need to remove just one 10 | 3975 // audio size is 80 bytes, new data is 28 bytes, we need to remove just one 10 |
3972 // byte block to stay under 100 bytes memory limit after append | 3976 // byte block to stay under 100 bytes memory limit after append |
3973 // 80 - 10 + 28 = 98). | 3977 // 80 - 10 + 28 = 98). |
3974 // For video stream 150 + 52 = 202. Video limit is 150 bytes. We need to | 3978 // For video stream 150 + 52 = 202. Video limit is 150 bytes. We need to |
3975 // remove at least 6 blocks to stay under limit. | 3979 // remove at least 6 blocks to stay under limit. |
3976 CheckExpectedBuffers(audio_stream, "40K 80K 120K 160K 200K 240K 280K"); | 3980 CheckExpectedBuffers(audio_stream, "40K 80K 120K 160K 200K 240K 280K"); |
3977 CheckExpectedBuffers(video_stream, "60K 70 80K 90 100K 110 120K 130 140K"); | 3981 CheckExpectedBuffers(video_stream, "60K 70 80K 90 100K 110 120K 130 140K"); |
3978 } | 3982 } |
3979 | 3983 |
3980 } // namespace media | 3984 } // namespace media |
OLD | NEW |