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 #ifndef MEDIA_BASE_DECODER_BUFFER_QUEUE_H_ | 5 #ifndef MEDIA_BASE_DECODER_BUFFER_QUEUE_H_ |
6 #define MEDIA_BASE_DECODER_BUFFER_QUEUE_H_ | 6 #define MEDIA_BASE_DECODER_BUFFER_QUEUE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/time.h" | 11 #include "base/time/time.h" |
12 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
13 | 13 |
14 namespace media { | 14 namespace media { |
15 | 15 |
16 class DecoderBuffer; | 16 class DecoderBuffer; |
17 | 17 |
18 // Maintains a queue of DecoderBuffers in increasing timestamp order. | 18 // Maintains a queue of DecoderBuffers in increasing timestamp order. |
19 // | 19 // |
20 // Individual buffer durations are ignored when calculating the duration of the | 20 // Individual buffer durations are ignored when calculating the duration of the |
21 // queue i.e., the queue must have at least 2 in-order buffers to calculate | 21 // queue i.e., the queue must have at least 2 in-order buffers to calculate |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 Queue in_order_queue_; | 61 Queue in_order_queue_; |
62 | 62 |
63 base::TimeDelta earliest_valid_timestamp_; | 63 base::TimeDelta earliest_valid_timestamp_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(DecoderBufferQueue); | 65 DISALLOW_COPY_AND_ASSIGN(DecoderBufferQueue); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace media | 68 } // namespace media |
69 | 69 |
70 #endif // MEDIA_BASE_DECODER_BUFFER_QUEUE_H_ | 70 #endif // MEDIA_BASE_DECODER_BUFFER_QUEUE_H_ |
OLD | NEW |