| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 INDEPENDENT, | 64 INDEPENDENT, |
| 65 | 65 |
| 66 // Independently decodable, and no future frames will depend on any frames | 66 // Independently decodable, and no future frames will depend on any frames |
| 67 // before this one. | 67 // before this one. |
| 68 KEY, | 68 KEY, |
| 69 | 69 |
| 70 DEPENDENCY_LAST = KEY | 70 DEPENDENCY_LAST = KEY |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 EncodedFrame(); | 73 EncodedFrame(); |
| 74 ~EncodedFrame(); | 74 virtual ~EncodedFrame(); |
| 75 | 75 |
| 76 // Convenience accessors to data as an array of uint8 elements. | 76 // Convenience accessors to data as an array of uint8 elements. |
| 77 const uint8* bytes() const { | 77 const uint8* bytes() const { |
| 78 return reinterpret_cast<uint8*>(string_as_array( | 78 return reinterpret_cast<uint8*>(string_as_array( |
| 79 const_cast<std::string*>(&data))); | 79 const_cast<std::string*>(&data))); |
| 80 } | 80 } |
| 81 uint8* mutable_bytes() { | 81 uint8* mutable_bytes() { |
| 82 return reinterpret_cast<uint8*>(string_as_array(&data)); | 82 return reinterpret_cast<uint8*>(string_as_array(&data)); |
| 83 } | 83 } |
| 84 | 84 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 lhs.ntp_fraction == rhs.ntp_fraction && | 182 lhs.ntp_fraction == rhs.ntp_fraction && |
| 183 lhs.rtp_timestamp == rhs.rtp_timestamp && | 183 lhs.rtp_timestamp == rhs.rtp_timestamp && |
| 184 lhs.send_packet_count == rhs.send_packet_count && | 184 lhs.send_packet_count == rhs.send_packet_count && |
| 185 lhs.send_octet_count == rhs.send_octet_count; | 185 lhs.send_octet_count == rhs.send_octet_count; |
| 186 } | 186 } |
| 187 | 187 |
| 188 } // namespace cast | 188 } // namespace cast |
| 189 } // namespace media | 189 } // namespace media |
| 190 | 190 |
| 191 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ | 191 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ |
| OLD | NEW |