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

Side by Side Diff: media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.h

Issue 62843002: Cast: Added support for AES-CTR crypto. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync TOT Created 7 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
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 #ifndef MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ 5 #ifndef MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_
6 #define MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ 6 #define MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // Return the next sequence number, and increment by one. Enables unique 43 // Return the next sequence number, and increment by one. Enables unique
44 // incremental sequence numbers for every packet (including retransmissions). 44 // incremental sequence numbers for every packet (including retransmissions).
45 uint16 NextSequenceNumber(); 45 uint16 NextSequenceNumber();
46 46
47 int send_packets_count() { return send_packets_count_; } 47 int send_packets_count() { return send_packets_count_; }
48 48
49 size_t send_octet_count() { return send_octet_count_; } 49 size_t send_octet_count() { return send_octet_count_; }
50 50
51 private: 51 private:
52 void Cast(bool is_key, uint32 frame_id, 52 void Cast(bool is_key, uint32 frame_id, uint32 reference_frame_id,
53 uint32 reference_frame_id, 53 uint32 timestamp, const std::string& data);
54 uint32 timestamp, 54
55 std::vector<uint8> data);
56 void BuildCommonRTPheader(std::vector<uint8>* packet, bool marker_bit, 55 void BuildCommonRTPheader(std::vector<uint8>* packet, bool marker_bit,
57 uint32 time_stamp); 56 uint32 time_stamp);
58 57
59 RtpPacketizerConfig config_; 58 RtpPacketizerConfig config_;
60 PacedPacketSender* transport_; 59 PacedPacketSender* transport_;
61 PacketStorage* packet_storage_; 60 PacketStorage* packet_storage_;
62 61
63 base::TimeTicks time_last_sent_rtp_timestamp_; 62 base::TimeTicks time_last_sent_rtp_timestamp_;
64 uint16 sequence_number_; 63 uint16 sequence_number_;
65 uint32 rtp_timestamp_; 64 uint32 rtp_timestamp_;
66 uint16 packet_id_; 65 uint16 packet_id_;
67 66
68 int send_packets_count_; 67 int send_packets_count_;
69 size_t send_octet_count_; 68 size_t send_octet_count_;
70 }; 69 };
71 70
72 } // namespace cast 71 } // namespace cast
73 } // namespace media 72 } // namespace media
74 73
75 #endif // MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ 74 #endif // MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_
OLDNEW
« no previous file with comments | « media/cast/framer/frame_buffer.h ('k') | media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698