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

Side by Side Diff: media/cast/audio_sender/audio_sender.cc

Issue 138753004: Cast: IPC glue between cast library transport and encoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor cleanup Created 6 years, 10 months 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
« no previous file with comments | « ipc/ipc_message_start.h ('k') | media/cast/rtcp/rtcp_defines.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/audio_sender/audio_sender.h" 5 #include "media/cast/audio_sender/audio_sender.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "media/cast/audio_sender/audio_encoder.h" 10 #include "media/cast/audio_sender/audio_encoder.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 ConvertTimeTicksToNtp(now, &ntp_seconds, &ntp_fraction); 62 ConvertTimeTicksToNtp(now, &ntp_seconds, &ntp_fraction);
63 } 63 }
64 // Populate sender info. 64 // Populate sender info.
65 sender_info->rtp_timestamp = rtp_timestamp; 65 sender_info->rtp_timestamp = rtp_timestamp;
66 sender_info->ntp_seconds = sender_info_.ntp_seconds; 66 sender_info->ntp_seconds = sender_info_.ntp_seconds;
67 sender_info->ntp_fraction = sender_info_.ntp_fraction; 67 sender_info->ntp_fraction = sender_info_.ntp_fraction;
68 sender_info->send_packet_count = sender_info_.send_packet_count; 68 sender_info->send_packet_count = sender_info_.send_packet_count;
69 sender_info->send_octet_count = sender_info_.send_octet_count; 69 sender_info->send_octet_count = sender_info_.send_octet_count;
70 } 70 }
71 71
72 void StoreStatistics(transport::RtcpSenderInfo& sender_info, 72 void StoreStatistics(const transport::RtcpSenderInfo& sender_info,
73 base::TimeTicks time_sent, 73 base::TimeTicks time_sent,
74 uint32 rtp_timestamp) { 74 uint32 rtp_timestamp) {
75 sender_info_ = sender_info; 75 sender_info_ = sender_info;
76 time_sent_ = time_sent; 76 time_sent_ = time_sent;
77 rtp_timestamp_ = rtp_timestamp; 77 rtp_timestamp_ = rtp_timestamp;
78 } 78 }
79 79
80 private: 80 private:
81 transport::CastTransportSender* const transport_sender_; 81 transport::CastTransportSender* const transport_sender_;
82 int frequency_; 82 int frequency_;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 202 }
203 203
204 void AudioSender::ResendPacketsOnTransportThread( 204 void AudioSender::ResendPacketsOnTransportThread(
205 const transport::MissingFramesAndPacketsMap& missing_packets) { 205 const transport::MissingFramesAndPacketsMap& missing_packets) {
206 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::TRANSPORT)); 206 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::TRANSPORT));
207 transport_sender_->ResendPackets(true, missing_packets); 207 transport_sender_->ResendPackets(true, missing_packets);
208 } 208 }
209 209
210 } // namespace cast 210 } // namespace cast
211 } // namespace media 211 } // namespace media
OLDNEW
« no previous file with comments | « ipc/ipc_message_start.h ('k') | media/cast/rtcp/rtcp_defines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698