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 #ifndef MEDIA_FORMATS_COMMON_OFFSET_BYTE_QUEUE_H_ | 5 #ifndef MEDIA_FORMATS_COMMON_OFFSET_BYTE_QUEUE_H_ |
6 #define MEDIA_FORMATS_COMMON_OFFSET_BYTE_QUEUE_H_ | 6 #define MEDIA_FORMATS_COMMON_OFFSET_BYTE_QUEUE_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "media/base/byte_queue.h" | 11 #include "media/base/byte_queue.h" |
10 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
11 | 13 |
12 namespace media { | 14 namespace media { |
13 | 15 |
14 // A wrapper around a ByteQueue which maintains a notion of a | 16 // A wrapper around a ByteQueue which maintains a notion of a |
15 // monotonically-increasing offset. All buffer access is done by passing these | 17 // monotonically-increasing offset. All buffer access is done by passing these |
16 // offsets into this class, going some way towards preventing the proliferation | 18 // offsets into this class, going some way towards preventing the proliferation |
17 // of many different meanings of "offset", "head", etc. | 19 // of many different meanings of "offset", "head", etc. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const uint8_t* buf_; | 59 const uint8_t* buf_; |
58 int size_; | 60 int size_; |
59 int64_t head_; | 61 int64_t head_; |
60 | 62 |
61 DISALLOW_COPY_AND_ASSIGN(OffsetByteQueue); | 63 DISALLOW_COPY_AND_ASSIGN(OffsetByteQueue); |
62 }; | 64 }; |
63 | 65 |
64 } // namespace media | 66 } // namespace media |
65 | 67 |
66 #endif // MEDIA_FORMATS_COMMON_OFFSET_BYTE_QUEUE_H_ | 68 #endif // MEDIA_FORMATS_COMMON_OFFSET_BYTE_QUEUE_H_ |
OLD | NEW |