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 #ifndef MEDIA_BASE_BITSTREAM_BUFFER_H_ | 5 #ifndef MEDIA_BASE_BITSTREAM_BUFFER_H_ |
6 #define MEDIA_BASE_BITSTREAM_BUFFER_H_ | 6 #define MEDIA_BASE_BITSTREAM_BUFFER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 // data. This is the media-namespace equivalent of PP_VideoBitstreamBuffer_Dev. | 21 // data. This is the media-namespace equivalent of PP_VideoBitstreamBuffer_Dev. |
22 class MEDIA_EXPORT BitstreamBuffer { | 22 class MEDIA_EXPORT BitstreamBuffer { |
23 public: | 23 public: |
24 BitstreamBuffer(int32_t id, base::SharedMemoryHandle handle, size_t size); | 24 BitstreamBuffer(int32_t id, base::SharedMemoryHandle handle, size_t size); |
25 | 25 |
26 BitstreamBuffer(int32_t id, | 26 BitstreamBuffer(int32_t id, |
27 base::SharedMemoryHandle handle, | 27 base::SharedMemoryHandle handle, |
28 size_t size, | 28 size_t size, |
29 base::TimeDelta presentation_timestamp); | 29 base::TimeDelta presentation_timestamp); |
30 | 30 |
| 31 BitstreamBuffer(const BitstreamBuffer& other); |
| 32 |
31 ~BitstreamBuffer(); | 33 ~BitstreamBuffer(); |
32 | 34 |
33 void SetDecryptConfig(const DecryptConfig& decrypt_config); | 35 void SetDecryptConfig(const DecryptConfig& decrypt_config); |
34 | 36 |
35 int32_t id() const { return id_; } | 37 int32_t id() const { return id_; } |
36 base::SharedMemoryHandle handle() const { return handle_; } | 38 base::SharedMemoryHandle handle() const { return handle_; } |
37 size_t size() const { return size_; } | 39 size_t size() const { return size_; } |
38 | 40 |
39 // The timestamp is only valid if it's not equal to |media::kNoTimestamp()|. | 41 // The timestamp is only valid if it's not equal to |media::kNoTimestamp()|. |
40 base::TimeDelta presentation_timestamp() const { | 42 base::TimeDelta presentation_timestamp() const { |
(...skipping 23 matching lines...) Expand all Loading... |
64 std::string key_id_; // key ID. | 66 std::string key_id_; // key ID. |
65 std::string iv_; // initialization vector | 67 std::string iv_; // initialization vector |
66 std::vector<SubsampleEntry> subsamples_; // clear/cypher sizes | 68 std::vector<SubsampleEntry> subsamples_; // clear/cypher sizes |
67 | 69 |
68 // Allow compiler-generated copy & assign constructors. | 70 // Allow compiler-generated copy & assign constructors. |
69 }; | 71 }; |
70 | 72 |
71 } // namespace media | 73 } // namespace media |
72 | 74 |
73 #endif // MEDIA_BASE_BITSTREAM_BUFFER_H_ | 75 #endif // MEDIA_BASE_BITSTREAM_BUFFER_H_ |
OLD | NEW |