diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 23:22:20 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 23:22:20 +0000 |
commit | 3adf1b2a65a85ff7d4b55cd57a4e400f104d27dd (patch) | |
tree | 235aee1f595583297e057b058a29d2ed24d9da92 /remoting/protocol/protobuf_video_reader.cc | |
parent | 9db9173baebf27623ce30770696f84a3fec74259 (diff) | |
download | chromium_src-3adf1b2a65a85ff7d4b55cd57a4e400f104d27dd.zip chromium_src-3adf1b2a65a85ff7d4b55cd57a4e400f104d27dd.tar.gz chromium_src-3adf1b2a65a85ff7d4b55cd57a4e400f104d27dd.tar.bz2 |
Add VideoPacket struct for video packets. Refactor Decode interface to use it.
Various cleanups.
BUG=None
TEST=Unittests.
Review URL: http://codereview.chromium.org/4476003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/protobuf_video_reader.cc')
-rw-r--r-- | remoting/protocol/protobuf_video_reader.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/remoting/protocol/protobuf_video_reader.cc b/remoting/protocol/protobuf_video_reader.cc index f777363..31f4aae 100644 --- a/remoting/protocol/protobuf_video_reader.cc +++ b/remoting/protocol/protobuf_video_reader.cc @@ -5,18 +5,23 @@ #include "remoting/protocol/protobuf_video_reader.h" #include "base/task.h" +#include "remoting/proto/video.pb.h" #include "remoting/protocol/session.h" namespace remoting { namespace protocol { -ProtobufVideoReader::ProtobufVideoReader() { } +ProtobufVideoReader::ProtobufVideoReader(VideoPacketFormat::Encoding encoding) + : encoding_(encoding) { +} + ProtobufVideoReader::~ProtobufVideoReader() { } void ProtobufVideoReader::Init(protocol::Session* session, VideoStub* video_stub) { - reader_.Init<VideoPacket>(session->video_channel(), - NewCallback(this, &ProtobufVideoReader::OnNewData)); + reader_.Init<VideoPacket>( + session->video_channel(), + NewCallback(this, &ProtobufVideoReader::OnNewData)); video_stub_ = video_stub; } |