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

Unified Diff: remoting/protocol/protobuf_video_reader.h

Issue 4476003: Add VideoPacket struct for video packets. Refactor Decode interface to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged 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/message_decoder_unittest.cc ('k') | remoting/protocol/protobuf_video_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protobuf_video_reader.h
diff --git a/remoting/protocol/protobuf_video_reader.h b/remoting/protocol/protobuf_video_reader.h
index 669cd0b03f6ebd5ba7bbebf2f2dd27392d3198f7..42e1c97f8bd013ee2fd3e4568055f9e6a01818d0 100644
--- a/remoting/protocol/protobuf_video_reader.h
+++ b/remoting/protocol/protobuf_video_reader.h
@@ -5,6 +5,7 @@
#ifndef REMOTING_PROTOCOL_PROTOBUF_VIDEO_READER_H_
#define REMOTING_PROTOCOL_PROTOBUF_VIDEO_READER_H_
+#include "remoting/proto/video.pb.h"
#include "remoting/protocol/message_reader.h"
#include "remoting/protocol/video_reader.h"
@@ -15,7 +16,7 @@ class Session;
class ProtobufVideoReader : public VideoReader {
public:
- ProtobufVideoReader();
+ ProtobufVideoReader(VideoPacketFormat::Encoding encoding);
virtual ~ProtobufVideoReader();
// VideoReader interface.
@@ -25,6 +26,8 @@ class ProtobufVideoReader : public VideoReader {
private:
void OnNewData(VideoPacket* packet);
+ VideoPacketFormat::Encoding encoding_;
+
MessageReader reader_;
// The stub that processes all received packets.
« no previous file with comments | « remoting/protocol/message_decoder_unittest.cc ('k') | remoting/protocol/protobuf_video_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698