| 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_RTP_FRAME_BUFFER_H_ | 5 #ifndef MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_ |
| 6 #define MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_ | 6 #define MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "media/cast/common/rtp_time.h" |
| 15 #include "media/cast/net/cast_transport_config.h" | 16 #include "media/cast/net/cast_transport_config.h" |
| 16 #include "media/cast/net/rtp/rtp_defines.h" | 17 #include "media/cast/net/rtp/rtp_defines.h" |
| 17 | 18 |
| 18 namespace media { | 19 namespace media { |
| 19 namespace cast { | 20 namespace cast { |
| 20 | 21 |
| 21 typedef std::map<uint16_t, std::vector<uint8_t>> PacketMap; | 22 typedef std::map<uint16_t, std::vector<uint8_t>> PacketMap; |
| 22 | 23 |
| 23 class FrameBuffer { | 24 class FrameBuffer { |
| 24 public: | 25 public: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 uint32_t frame_id_; | 48 uint32_t frame_id_; |
| 48 uint16_t max_packet_id_; | 49 uint16_t max_packet_id_; |
| 49 uint16_t num_packets_received_; | 50 uint16_t num_packets_received_; |
| 50 uint16_t max_seen_packet_id_; | 51 uint16_t max_seen_packet_id_; |
| 51 uint16_t new_playout_delay_ms_; | 52 uint16_t new_playout_delay_ms_; |
| 52 bool is_key_frame_; | 53 bool is_key_frame_; |
| 53 size_t total_data_size_; | 54 size_t total_data_size_; |
| 54 uint32_t last_referenced_frame_id_; | 55 uint32_t last_referenced_frame_id_; |
| 55 uint32_t rtp_timestamp_; | 56 RtpTimeTicks rtp_timestamp_; |
| 56 PacketMap packets_; | 57 PacketMap packets_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(FrameBuffer); | 59 DISALLOW_COPY_AND_ASSIGN(FrameBuffer); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace cast | 62 } // namespace cast |
| 62 } // namespace media | 63 } // namespace media |
| 63 | 64 |
| 64 #endif // MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_ | 65 #endif // MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_ |
| OLD | NEW |