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

Side by Side Diff: remoting/protocol/video_reader.cc

Issue 4229003: Add VideoReader and VideoWriter interfaces. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/video_reader.h ('k') | remoting/protocol/video_stub.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "remoting/protocol/video_reader.h"
6
7 #include "remoting/protocol/chromotocol_config.h"
8 #include "remoting/protocol/protobuf_video_reader.h"
9 #include "remoting/protocol/rtp_video_reader.h"
10
11 namespace remoting {
12
13 VideoReader::~VideoReader() { }
14
15 // static
16 VideoReader* VideoReader::Create(const ChromotocolConfig* config) {
17 const ChannelConfig& video_config = config->video_config();
18 if (video_config.transport == ChannelConfig::TRANSPORT_SRTP) {
19 return new RtpVideoReader();
20 } else if (video_config.transport == ChannelConfig::TRANSPORT_STREAM) {
21 return new ProtobufVideoReader();
22 }
23 return NULL;
24 }
25
26 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/video_reader.h ('k') | remoting/protocol/video_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698