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

Side by Side Diff: trunk/src/media/cast/rtp_sender/rtp_packetizer/rtp_packetizer_config.h

Issue 25546003: Revert 226264 "Be able to build cast_unittest and related target..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 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 #ifndef CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_ 5 #ifndef CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_
6 #define CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_ 6 #define CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_
7 7
8 #include "media/cast/cast_config.h" 8 #include "media/cast/cast_config.h"
9 #include "media/cast/rtp_common/rtp_defines.h" 9 #include "media/cast/rtp_common/rtp_defines.h"
10 10
11 namespace media { 11 namespace media {
12 namespace cast { 12 namespace cast {
13 13
14 struct RtpPacketizerConfig { 14 struct RtpPacketizerConfig {
15 RtpPacketizerConfig(); 15 RtpPacketizerConfig() {
16 ssrc = 0;
17 max_payload_length = kIpPacketSize - 28; // Default is IP-v4/UDP.
18 audio = false;
19 frequency = 8000;
20 payload_type = -1;
21 sequence_number = 0;
22 rtp_timestamp = 0;
23 }
16 24
17 // General. 25 // General.
18 bool audio; 26 bool audio;
19 int payload_type; 27 int payload_type;
20 uint16 max_payload_length; 28 uint16 max_payload_length;
21 uint16 sequence_number; 29 uint16 sequence_number;
22 uint32 rtp_timestamp; 30 uint32 rtp_timestamp;
23 int frequency; 31 int frequency;
24 32
25 // SSRC. 33 // SSRC.
26 unsigned int ssrc; 34 unsigned int ssrc;
27 35
28 // Video. 36 // Video.
29 VideoCodec video_codec; 37 VideoCodec video_codec;
30 38
31 // Audio. 39 // Audio.
32 uint8 channels; 40 uint8 channels;
33 AudioCodec audio_codec; 41 AudioCodec audio_codec;
34 }; 42 };
35 43
36 } // namespace cast 44 } // namespace cast
37 } // namespace media 45 } // namespace media
38 46
39 #endif // CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_ 47 #endif // CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698