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

Side by Side Diff: media/cast/transport/cast_transport_sender.h

Issue 288103002: [Cast] EncodedAudioFrame+EncodedVideoFrame+reference_time --> EncodedFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed hclam@'s first round comments. Fixed chrome unit_tests compiles. Created 6 years, 7 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 | Annotate | Revision Log
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 // This is the main interface for the cast transport sender. The cast sender 5 // This is the main interface for the cast transport sender. The cast sender
6 // handles the cast pipeline from encoded frames (both audio and video), to 6 // handles the cast pipeline from encoded frames (both audio and video), to
7 // encryption, packetization and transport. 7 // encryption, packetization and transport.
8 8
9 // Construction of the Cast Sender and the Cast Transport Sender should be done 9 // Construction of the Cast Sender and the Cast Transport Sender should be done
10 // in the following order: 10 // in the following order:
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual void InitializeVideo(const CastTransportVideoConfig& config) = 0; 74 virtual void InitializeVideo(const CastTransportVideoConfig& config) = 0;
75 75
76 // Sets the Cast packet receiver. Should be called after creation on the 76 // Sets the Cast packet receiver. Should be called after creation on the
77 // Cast sender. Packets won't be received until this function is called. 77 // Cast sender. Packets won't be received until this function is called.
78 virtual void SetPacketReceiver( 78 virtual void SetPacketReceiver(
79 const PacketReceiverCallback& packet_receiver) = 0; 79 const PacketReceiverCallback& packet_receiver) = 0;
80 80
81 // The following two functions handle the encoded media frames (audio and 81 // The following two functions handle the encoded media frames (audio and
82 // video) to be processed. 82 // video) to be processed.
83 // Frames will be encrypted, packetized and transmitted to the network. 83 // Frames will be encrypted, packetized and transmitted to the network.
84 virtual void InsertCodedAudioFrame(const EncodedAudioFrame* audio_frame, 84 virtual void InsertCodedAudioFrame(const EncodedFrame& audio_frame) = 0;
85 const base::TimeTicks& recorded_time) = 0; 85 virtual void InsertCodedVideoFrame(const EncodedFrame& video_frame) = 0;
86
87 virtual void InsertCodedVideoFrame(const EncodedVideoFrame* video_frame,
88 const base::TimeTicks& capture_time) = 0;
89 86
90 // Builds an RTCP packet and sends it to the network. 87 // Builds an RTCP packet and sends it to the network.
91 virtual void SendRtcpFromRtpSender(uint32 packet_type_flags, 88 virtual void SendRtcpFromRtpSender(uint32 packet_type_flags,
92 const RtcpSenderInfo& sender_info, 89 const RtcpSenderInfo& sender_info,
93 const RtcpDlrrReportBlock& dlrr, 90 const RtcpDlrrReportBlock& dlrr,
94 uint32 sending_ssrc, 91 uint32 sending_ssrc,
95 const std::string& c_name) = 0; 92 const std::string& c_name) = 0;
96 93
97 // Retransmission request. 94 // Retransmission request.
98 virtual void ResendPackets( 95 virtual void ResendPackets(
99 bool is_audio, 96 bool is_audio,
100 const MissingFramesAndPacketsMap& missing_packets) = 0; 97 const MissingFramesAndPacketsMap& missing_packets) = 0;
101 98
102 // RTP statistics will be returned on a regular interval on the designated 99 // RTP statistics will be returned on a regular interval on the designated
103 // callback. 100 // callback.
104 // Must be called after initialization of the corresponding A/V pipeline. 101 // Must be called after initialization of the corresponding A/V pipeline.
105 virtual void SubscribeAudioRtpStatsCallback( 102 virtual void SubscribeAudioRtpStatsCallback(
106 const CastTransportRtpStatistics& callback) = 0; 103 const CastTransportRtpStatistics& callback) = 0;
107 104
108 virtual void SubscribeVideoRtpStatsCallback( 105 virtual void SubscribeVideoRtpStatsCallback(
109 const CastTransportRtpStatistics& callback) = 0; 106 const CastTransportRtpStatistics& callback) = 0;
110 }; 107 };
111 108
112 } // namespace transport 109 } // namespace transport
113 } // namespace cast 110 } // namespace cast
114 } // namespace media 111 } // namespace media
115 112
116 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_ 113 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698