Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Unified Diff: media/cast/net/rtp/frame_buffer.h

Issue 540713002: Cast: Get rid of frame_id_map (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed unused variable Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/net/rtp/cast_message_builder_unittest.cc ('k') | media/cast/net/rtp/frame_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtp/frame_buffer.h
diff --git a/media/cast/net/rtp/frame_buffer.h b/media/cast/net/rtp/frame_buffer.h
index 8ccc2092c0581b81a9308ce3e66a4ec5a5e398fd..1089433eae205b91813dcff5d220f2699a827f4a 100644
--- a/media/cast/net/rtp/frame_buffer.h
+++ b/media/cast/net/rtp/frame_buffer.h
@@ -20,11 +20,13 @@ class FrameBuffer {
public:
FrameBuffer();
~FrameBuffer();
- void InsertPacket(const uint8* payload_data,
+ bool InsertPacket(const uint8* payload_data,
size_t payload_size,
const RtpCastHeader& rtp_header);
bool Complete() const;
+ void GetMissingPackets(bool newest_frame, PacketIdSet* missing_packets) const;
+
// If a frame is complete, sets the frame IDs and RTP timestamp in |frame|,
// and also copies the data from all packets into the data field in |frame|.
// Returns true if the frame was complete; false if incomplete and |frame|
@@ -32,13 +34,14 @@ class FrameBuffer {
bool AssembleEncodedFrame(EncodedFrame* frame) const;
bool is_key_frame() const { return is_key_frame_; }
-
uint32 last_referenced_frame_id() const { return last_referenced_frame_id_; }
+ uint32 frame_id() const { return frame_id_; }
private:
uint32 frame_id_;
uint16 max_packet_id_;
uint16 num_packets_received_;
+ uint16 max_seen_packet_id_;
uint16 new_playout_delay_ms_;
bool is_key_frame_;
size_t total_data_size_;
« no previous file with comments | « media/cast/net/rtp/cast_message_builder_unittest.cc ('k') | media/cast/net/rtp/frame_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698