| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAMER_FRAME_ID_MAP_H_ | 5 #ifndef MEDIA_CAST_FRAMER_FRAME_ID_MAP_H_ |
| 6 #define MEDIA_CAST_FRAMER_FRAME_ID_MAP_H_ | 6 #define MEDIA_CAST_FRAMER_FRAME_ID_MAP_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| 11 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "media/cast/cast_config.h" | 13 #include "media/cast/cast_config.h" |
| 14 #include "media/cast/rtcp/rtcp_defines.h" | 14 #include "media/cast/rtcp/rtcp_defines.h" |
| 15 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" | 15 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" |
| 16 | 16 |
| 17 namespace media { | 17 namespace media { |
| 18 namespace cast { | 18 namespace cast { |
| 19 | 19 |
| 20 class FrameInfo { | 20 class FrameInfo { |
| 21 public: | 21 public: |
| 22 FrameInfo(uint32 frame_id, | 22 FrameInfo(uint32 frame_id, |
| 23 uint32 referenced_frame_id, | 23 uint32 referenced_frame_id, |
| 24 uint16 max_packet_id, | 24 uint16 max_packet_id, |
| 25 bool key_frame); | 25 bool key_frame); |
| 26 ~FrameInfo(); | 26 ~FrameInfo(); |
| 27 | 27 |
| 28 PacketType InsertPacket(uint16 packet_id); | 28 PacketType InsertPacket(uint16 packet_id); |
| 29 bool Complete() const; | 29 bool Complete() const; |
| 30 void GetMissingPackets(bool newest_frame, | 30 void GetMissingPackets(bool newest_frame, PacketIdSet* missing_packets) const; |
| 31 PacketIdSet* missing_packets) const; | |
| 32 | 31 |
| 33 bool is_key_frame() const { return is_key_frame_; } | 32 bool is_key_frame() const { return is_key_frame_; } |
| 34 uint32 frame_id() const { return frame_id_; } | 33 uint32 frame_id() const { return frame_id_; } |
| 35 uint32 referenced_frame_id() const { return referenced_frame_id_; } | 34 uint32 referenced_frame_id() const { return referenced_frame_id_; } |
| 36 | 35 |
| 37 private: | 36 private: |
| 38 const bool is_key_frame_; | 37 const bool is_key_frame_; |
| 39 const uint32 frame_id_; | 38 const uint32 frame_id_; |
| 40 const uint32 referenced_frame_id_; | 39 const uint32 referenced_frame_id_; |
| 41 | 40 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 uint32 last_released_frame_; | 81 uint32 last_released_frame_; |
| 83 uint32 newest_frame_id_; | 82 uint32 newest_frame_id_; |
| 84 | 83 |
| 85 DISALLOW_COPY_AND_ASSIGN(FrameIdMap); | 84 DISALLOW_COPY_AND_ASSIGN(FrameIdMap); |
| 86 }; | 85 }; |
| 87 | 86 |
| 88 } // namespace cast | 87 } // namespace cast |
| 89 } // namespace media | 88 } // namespace media |
| 90 | 89 |
| 91 #endif // MEDIA_CAST_FRAMER_FRAME_ID_MAP_H_ | 90 #endif // MEDIA_CAST_FRAMER_FRAME_ID_MAP_H_ |
| OLD | NEW |