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 #include "media/formats/mp4/offset_byte_queue.h" | 5 #include "media/formats/common/offset_byte_queue.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
11 | 11 |
12 OffsetByteQueue::OffsetByteQueue() : buf_(NULL), size_(0), head_(0) {} | 12 OffsetByteQueue::OffsetByteQueue() : buf_(NULL), size_(0), head_(0) {} |
13 OffsetByteQueue::~OffsetByteQueue() {} | 13 OffsetByteQueue::~OffsetByteQueue() {} |
14 | 14 |
15 void OffsetByteQueue::Reset() { | 15 void OffsetByteQueue::Reset() { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 55 } |
56 Pop(max_offset - head_); | 56 Pop(max_offset - head_); |
57 return true; | 57 return true; |
58 } | 58 } |
59 | 59 |
60 void OffsetByteQueue::Sync() { | 60 void OffsetByteQueue::Sync() { |
61 queue_.Peek(&buf_, &size_); | 61 queue_.Peek(&buf_, &size_); |
62 } | 62 } |
63 | 63 |
64 } // namespace media | 64 } // namespace media |
OLD | NEW |