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_CAST_NET_CAST_TRANSPORT_CONFIG_H_ | 5 #ifndef MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ |
6 #define MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ | 6 #define MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 DEPENDENCY_LAST = KEY | 100 DEPENDENCY_LAST = KEY |
101 }; | 101 }; |
102 | 102 |
103 EncodedFrame(); | 103 EncodedFrame(); |
104 virtual ~EncodedFrame(); | 104 virtual ~EncodedFrame(); |
105 | 105 |
106 // Convenience accessors to data as an array of uint8_t elements. | 106 // Convenience accessors to data as an array of uint8_t elements. |
107 const uint8_t* bytes() const { | 107 const uint8_t* bytes() const { |
108 return reinterpret_cast<uint8_t*>( | 108 return reinterpret_cast<uint8_t*>( |
109 string_as_array(const_cast<std::string*>(&data))); | 109 base::string_as_array(const_cast<std::string*>(&data))); |
110 } | 110 } |
111 uint8_t* mutable_bytes() { | 111 uint8_t* mutable_bytes() { |
112 return reinterpret_cast<uint8_t*>(string_as_array(&data)); | 112 return reinterpret_cast<uint8_t*>(base::string_as_array(&data)); |
113 } | 113 } |
114 | 114 |
115 // Copies all data members except |data| to |dest|. | 115 // Copies all data members except |data| to |dest|. |
116 // Does not modify |dest->data|. | 116 // Does not modify |dest->data|. |
117 void CopyMetadataTo(EncodedFrame* dest) const; | 117 void CopyMetadataTo(EncodedFrame* dest) const; |
118 | 118 |
119 // This frame's dependency relationship with respect to other frames. | 119 // This frame's dependency relationship with respect to other frames. |
120 Dependency dependency; | 120 Dependency dependency; |
121 | 121 |
122 // The label associated with this frame. Implies an ordering relative to | 122 // The label associated with this frame. Implies an ordering relative to |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 lhs.ntp_fraction == rhs.ntp_fraction && | 216 lhs.ntp_fraction == rhs.ntp_fraction && |
217 lhs.rtp_timestamp == rhs.rtp_timestamp && | 217 lhs.rtp_timestamp == rhs.rtp_timestamp && |
218 lhs.send_packet_count == rhs.send_packet_count && | 218 lhs.send_packet_count == rhs.send_packet_count && |
219 lhs.send_octet_count == rhs.send_octet_count; | 219 lhs.send_octet_count == rhs.send_octet_count; |
220 } | 220 } |
221 | 221 |
222 } // namespace cast | 222 } // namespace cast |
223 } // namespace media | 223 } // namespace media |
224 | 224 |
225 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ | 225 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ |
OLD | NEW |