OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Defines various types of timestamped media buffers used for transporting | 5 // Defines various types of timestamped media buffers used for transporting |
6 // data between filters. Every buffer contains a timestamp in microseconds | 6 // data between filters. Every buffer contains a timestamp in microseconds |
7 // describing the relative position of the buffer within the media stream, and | 7 // describing the relative position of the buffer within the media stream, and |
8 // the duration in microseconds for the length of time the buffer will be | 8 // the duration in microseconds for the length of time the buffer will be |
9 // rendered. | 9 // rendered. |
10 // | 10 // |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 class MEDIA_EXPORT Buffer : public StreamSample { | 81 class MEDIA_EXPORT Buffer : public StreamSample { |
82 public: | 82 public: |
83 // Returns a read only pointer to the buffer data. | 83 // Returns a read only pointer to the buffer data. |
84 virtual const uint8* GetData() const = 0; | 84 virtual const uint8* GetData() const = 0; |
85 | 85 |
86 // Returns the size of valid data in bytes. | 86 // Returns the size of valid data in bytes. |
87 virtual size_t GetDataSize() const = 0; | 87 virtual size_t GetDataSize() const = 0; |
88 | 88 |
89 // If there's no data in this buffer, it represents end of stream. | 89 // If there's no data in this buffer, it represents end of stream. |
90 virtual bool IsEndOfStream() const; | 90 virtual bool IsEndOfStream() const OVERRIDE; |
91 | 91 |
92 protected: | 92 protected: |
93 virtual ~Buffer() {} | 93 virtual ~Buffer() {} |
94 }; | 94 }; |
95 | 95 |
96 } // namespace media | 96 } // namespace media |
97 | 97 |
98 #endif // MEDIA_BASE_BUFFERS_H_ | 98 #endif // MEDIA_BASE_BUFFERS_H_ |
OLD | NEW |