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