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

Unified Diff: media/cast/net/rtp/framer.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/frame_id_map.cc ('k') | media/cast/net/rtp/framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtp/framer.h
diff --git a/media/cast/net/rtp/framer.h b/media/cast/net/rtp/framer.h
index b80cfb775c0941096cba0d4d2863d72b7160a840..95c1a0eb621142790ceca4bd00bf8a76c9d6006c 100644
--- a/media/cast/net/rtp/framer.h
+++ b/media/cast/net/rtp/framer.h
@@ -15,7 +15,6 @@
#include "media/cast/net/rtcp/rtcp.h"
#include "media/cast/net/rtp/cast_message_builder.h"
#include "media/cast/net/rtp/frame_buffer.h"
-#include "media/cast/net/rtp/frame_id_map.h"
#include "media/cast/net/rtp/rtp_receiver_defines.h"
namespace media {
@@ -59,12 +58,34 @@ class Framer {
bool TimeToSendNextCastMessage(base::TimeTicks* time_to_send);
void SendCastMessage();
+ bool Empty() const;
+ bool FrameExists(uint32 frame_id) const;
+ uint32 NewestFrameId() const;
+
+ void RemoveOldFrames(uint32 frame_id);
+
+ // Identifies the next frame to be released (rendered).
+ bool NextContinuousFrame(uint32* frame_id) const;
+ uint32 LastContinuousFrame() const;
+
+ bool NextFrameAllowingSkippingFrames(uint32* frame_id) const;
+ bool HaveMultipleDecodableFrames() const;
+
+ int NumberOfCompleteFrames() const;
+ void GetMissingPackets(uint32 frame_id,
+ bool last_frame,
+ PacketIdSet* missing_packets) const;
+
private:
+ bool ContinuousFrame(FrameBuffer* frame) const;
+ bool DecodableFrame(FrameBuffer* frame) const;
+
const bool decoder_faster_than_max_frame_rate_;
FrameList frames_;
- FrameIdMap frame_id_map_;
-
scoped_ptr<CastMessageBuilder> cast_msg_builder_;
+ bool waiting_for_key_;
+ uint32 last_released_frame_;
+ uint32 newest_frame_id_;
DISALLOW_COPY_AND_ASSIGN(Framer);
};
« no previous file with comments | « media/cast/net/rtp/frame_id_map.cc ('k') | media/cast/net/rtp/framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698