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

Side by Side Diff: remoting/protocol/rtp_video_writer.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/rtp_video_writer.h ('k') | remoting/protocol/rtp_writer.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/rtp_video_writer.h"
6
7 #include "remoting/protocol/chromotocol_connection.h"
8 #include "remoting/protocol/rtp_writer.h"
9
10 namespace remoting {
11
12 RtpVideoWriter::RtpVideoWriter() { }
13
14 RtpVideoWriter::~RtpVideoWriter() { }
15
16 void RtpVideoWriter::Init(ChromotocolConnection* connection) {
17 rtp_writer_.Init(connection->video_rtp_channel(),
18 connection->video_rtcp_channel());
19 }
20
21 void RtpVideoWriter::SendPacket(const VideoPacket& packet) {
22 rtp_writer_.SendPacket(packet.data().data(), packet.data().length(),
23 packet.timestamp());
24 }
25
26 int RtpVideoWriter::GetPendingPackets() {
27 return rtp_writer_.GetPendingPackets();
28 }
29
30
31 void RtpVideoWriter::Close() {
32 rtp_writer_.Close();
33 }
34
35 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/rtp_video_writer.h ('k') | remoting/protocol/rtp_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698