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

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

Issue 252923007: Cast: Fix two video freezing problems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac fix 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
« no previous file with comments | « media/cast/test/sender.cc ('k') | media/cast/transport/cast_transport_config.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ 5 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_
6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 enum AudioCodec { 29 enum AudioCodec {
30 kFakeSoftwareAudio, 30 kFakeSoftwareAudio,
31 kOpus, 31 kOpus,
32 kPcm16, 32 kPcm16,
33 kExternalAudio, 33 kExternalAudio,
34 kAudioCodecLast = kExternalAudio 34 kAudioCodecLast = kExternalAudio
35 }; 35 };
36 36
37 struct RtpConfig { 37 struct RtpConfig {
38 RtpConfig(); 38 RtpConfig();
39 int history_ms; // The time RTP packets are stored for retransmissions. 39 ~RtpConfig();
40 uint32 ssrc;
40 int max_delay_ms; 41 int max_delay_ms;
41 int payload_type; 42 int payload_type;
43 std::string aes_key; // Binary string of size kAesKeySize.
44 std::string aes_iv_mask; // Binary string of size kAesBlockSize.
42 }; 45 };
43 46
44 // TODO(mikhal): Consider combining this with the cast_sender config. 47 struct CastTransportRtpConfig {
45 struct CastTransportBaseConfig { 48 CastTransportRtpConfig();
46 CastTransportBaseConfig(); 49 ~CastTransportRtpConfig();
47 ~CastTransportBaseConfig(); 50 RtpConfig config;
48 51 int max_outstanding_frames;
49 uint32 ssrc;
50 RtpConfig rtp_config;
51 std::string aes_key; // Binary string of size kAesKeySize.
52 std::string aes_iv_mask; // Binary string of size kAesBlockSize.
53 }; 52 };
54 53
55 struct CastTransportAudioConfig { 54 struct CastTransportAudioConfig {
56 CastTransportAudioConfig(); 55 CastTransportAudioConfig();
57 ~CastTransportAudioConfig(); 56 ~CastTransportAudioConfig();
58 57
59 CastTransportBaseConfig base; 58 CastTransportRtpConfig rtp;
60 AudioCodec codec; 59 AudioCodec codec;
61 int frequency; 60 int frequency;
62 int channels; 61 int channels;
63 }; 62 };
64 63
65 struct CastTransportVideoConfig { 64 struct CastTransportVideoConfig {
66 CastTransportVideoConfig(); 65 CastTransportVideoConfig();
67 ~CastTransportVideoConfig(); 66 ~CastTransportVideoConfig();
68 67
69 CastTransportBaseConfig base; 68 CastTransportRtpConfig rtp;
70 VideoCodec codec; 69 VideoCodec codec;
71 }; 70 };
72 71
73 struct EncodedVideoFrame { 72 struct EncodedVideoFrame {
74 EncodedVideoFrame(); 73 EncodedVideoFrame();
75 ~EncodedVideoFrame(); 74 ~EncodedVideoFrame();
76 75
77 VideoCodec codec; 76 VideoCodec codec;
78 bool key_frame; 77 bool key_frame;
79 uint32 frame_id; 78 uint32 frame_id;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 lhs.rtp_timestamp == rhs.rtp_timestamp && 177 lhs.rtp_timestamp == rhs.rtp_timestamp &&
179 lhs.send_packet_count == rhs.send_packet_count && 178 lhs.send_packet_count == rhs.send_packet_count &&
180 lhs.send_octet_count == rhs.send_octet_count; 179 lhs.send_octet_count == rhs.send_octet_count;
181 } 180 }
182 181
183 } // namespace transport 182 } // namespace transport
184 } // namespace cast 183 } // namespace cast
185 } // namespace media 184 } // namespace media
186 185
187 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ 186 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_
OLDNEW
« no previous file with comments | « media/cast/test/sender.cc ('k') | media/cast/transport/cast_transport_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698