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

Side by Side Diff: webrtc/config.h

Issue 2511703002: Wire up FlexFEC in VideoEngine2. (Closed)
Patch Set: Rebase. Created 4 years 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 | « no previous file | webrtc/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 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 26 matching lines...) Expand all
37 }; 37 };
38 38
39 // Settings for ULPFEC forward error correction. 39 // Settings for ULPFEC forward error correction.
40 // Set the payload types to '-1' to disable. 40 // Set the payload types to '-1' to disable.
41 struct UlpfecConfig { 41 struct UlpfecConfig {
42 UlpfecConfig() 42 UlpfecConfig()
43 : ulpfec_payload_type(-1), 43 : ulpfec_payload_type(-1),
44 red_payload_type(-1), 44 red_payload_type(-1),
45 red_rtx_payload_type(-1) {} 45 red_rtx_payload_type(-1) {}
46 std::string ToString() const; 46 std::string ToString() const;
47 bool operator==(const UlpfecConfig& other) const;
48
47 // Payload type used for ULPFEC packets. 49 // Payload type used for ULPFEC packets.
48 int ulpfec_payload_type; 50 int ulpfec_payload_type;
49 51
50 // Payload type used for RED packets. 52 // Payload type used for RED packets.
51 int red_payload_type; 53 int red_payload_type;
52 54
53 // RTX payload type for RED payload. 55 // RTX payload type for RED payload.
54 int red_rtx_payload_type; 56 int red_rtx_payload_type;
55 }; 57 };
56 58
57 // Settings for FlexFEC forward error correction. 59 // Settings for FlexFEC forward error correction.
58 // Set the payload type to '-1' to disable. 60 // Set the payload type to '-1' to disable.
59 struct FlexfecConfig { 61 struct FlexfecConfig {
60 FlexfecConfig(); 62 FlexfecConfig();
61 ~FlexfecConfig(); 63 ~FlexfecConfig();
62 std::string ToString() const; 64 std::string ToString() const;
65 bool IsCompleteAndEnabled() const;
66 bool operator==(const FlexfecConfig& other) const;
63 67
64 // Payload type of FlexFEC. 68 // Payload type of FlexFEC.
65 int flexfec_payload_type; 69 int flexfec_payload_type;
66 70
67 // SSRC of FlexFEC stream. 71 // SSRC of FlexFEC stream.
68 uint32_t flexfec_ssrc; 72 uint32_t flexfec_ssrc;
69 73
70 // Vector containing a single element, corresponding to the SSRC of the media 74 // Vector containing a single element, corresponding to the SSRC of the media
71 // stream being protected by this FlexFEC stream. The vector MUST have size 1. 75 // stream being protected by this FlexFEC stream. The vector MUST have size 1.
72 // 76 //
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 class DecoderSpecificSettings { 257 class DecoderSpecificSettings {
254 public: 258 public:
255 DecoderSpecificSettings(); 259 DecoderSpecificSettings();
256 virtual ~DecoderSpecificSettings(); 260 virtual ~DecoderSpecificSettings();
257 rtc::Optional<VideoDecoderH264Settings> h264_extra_settings; 261 rtc::Optional<VideoDecoderH264Settings> h264_extra_settings;
258 }; 262 };
259 263
260 } // namespace webrtc 264 } // namespace webrtc
261 265
262 #endif // WEBRTC_CONFIG_H_ 266 #endif // WEBRTC_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698