| 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_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ | 5 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ |
| 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ | 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 // Convenience accessors to data as an array of uint8 elements. | 102 // Convenience accessors to data as an array of uint8 elements. |
| 103 const uint8* bytes() const { | 103 const uint8* bytes() const { |
| 104 return reinterpret_cast<uint8*>(string_as_array( | 104 return reinterpret_cast<uint8*>(string_as_array( |
| 105 const_cast<std::string*>(&data))); | 105 const_cast<std::string*>(&data))); |
| 106 } | 106 } |
| 107 uint8* mutable_bytes() { | 107 uint8* mutable_bytes() { |
| 108 return reinterpret_cast<uint8*>(string_as_array(&data)); | 108 return reinterpret_cast<uint8*>(string_as_array(&data)); |
| 109 } | 109 } |
| 110 | 110 |
| 111 // Copies all data members except |data| to |dest|. |
| 112 // Does not modify |dest->data|. |
| 113 void CopyMetadataTo(EncodedFrame* dest) const; |
| 114 |
| 111 // This frame's dependency relationship with respect to other frames. | 115 // This frame's dependency relationship with respect to other frames. |
| 112 Dependency dependency; | 116 Dependency dependency; |
| 113 | 117 |
| 114 // The label associated with this frame. Implies an ordering relative to | 118 // The label associated with this frame. Implies an ordering relative to |
| 115 // other frames in the same stream. | 119 // other frames in the same stream. |
| 116 uint32 frame_id; | 120 uint32 frame_id; |
| 117 | 121 |
| 118 // The label associated with the frame upon which this frame depends. If | 122 // The label associated with the frame upon which this frame depends. If |
| 119 // this frame does not require any other frame in order to become decodable | 123 // this frame does not require any other frame in order to become decodable |
| 120 // (e.g., key frames), |referenced_frame_id| must equal |frame_id|. | 124 // (e.g., key frames), |referenced_frame_id| must equal |frame_id|. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 lhs.rtp_timestamp == rhs.rtp_timestamp && | 212 lhs.rtp_timestamp == rhs.rtp_timestamp && |
| 209 lhs.send_packet_count == rhs.send_packet_count && | 213 lhs.send_packet_count == rhs.send_packet_count && |
| 210 lhs.send_octet_count == rhs.send_octet_count; | 214 lhs.send_octet_count == rhs.send_octet_count; |
| 211 } | 215 } |
| 212 | 216 |
| 213 } // namespace transport | 217 } // namespace transport |
| 214 } // namespace cast | 218 } // namespace cast |
| 215 } // namespace media | 219 } // namespace media |
| 216 | 220 |
| 217 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ | 221 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ |
| OLD | NEW |