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

Unified Diff: remoting/protocol/rtp_video_reader.h

Issue 4925001: Packetizer/Depacketizer for RTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 10 years, 1 month 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 | « remoting/protocol/rtp_utils.cc ('k') | remoting/protocol/rtp_video_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/rtp_video_reader.h
diff --git a/remoting/protocol/rtp_video_reader.h b/remoting/protocol/rtp_video_reader.h
index ccfb53eec06b10665ad4f44f047994803a41f512..9a0ae894e6e04eee71f1096b75e8cd0b7f3257dd 100644
--- a/remoting/protocol/rtp_video_reader.h
+++ b/remoting/protocol/rtp_video_reader.h
@@ -23,10 +23,21 @@ class RtpVideoReader : public VideoReader {
virtual void Close();
private:
- void OnRtpPacket(const RtpPacket& rtp_packet);
+ friend class RtpVideoReaderTest;
+
+ typedef std::deque<const RtpPacket*> PacketsQueue;
+
+ void OnRtpPacket(const RtpPacket* rtp_packet);
+ void CheckFullPacket(PacketsQueue::iterator pos);
+ void RebuildVideoPacket(PacketsQueue::iterator from,
+ PacketsQueue::iterator to);
+ void ResetQueue();
RtpReader rtp_reader_;
+ PacketsQueue packets_queue_;
+ uint32 last_sequence_number_;
+
// The stub that processes all received packets.
VideoStub* video_stub_;
« no previous file with comments | « remoting/protocol/rtp_utils.cc ('k') | remoting/protocol/rtp_video_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698