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

Side by Side Diff: webrtc/modules/rtp_rtcp/include/rtp_rtcp.h

Issue 2455963003: Simplify SetFecParameters signature. (Closed)
Patch Set: Feedback response 1. Created 4 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 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
11 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_
12 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_
13 13
14 #include <set> 14 #include <set>
15 #include <string> 15 #include <string>
16 #include <utility> 16 #include <utility>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/base/constructormagic.h" 19 #include "webrtc/base/constructormagic.h"
20 #include "webrtc/base/deprecation.h"
20 #include "webrtc/modules/include/module.h" 21 #include "webrtc/modules/include/module.h"
21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
22 #include "webrtc/modules/video_coding/include/video_coding_defines.h" 23 #include "webrtc/modules/video_coding/include/video_coding_defines.h"
23 24
24 namespace webrtc { 25 namespace webrtc {
25 26
26 // Forward declarations. 27 // Forward declarations.
27 class RateLimiter; 28 class RateLimiter;
28 class ReceiveStatistics; 29 class ReceiveStatistics;
29 class RemoteBitrateEstimator; 30 class RemoteBitrateEstimator;
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // ************************************************************************** 453 // **************************************************************************
453 // Video 454 // Video
454 // ************************************************************************** 455 // **************************************************************************
455 456
456 // Set RED and ULPFEC payload types. A payload type of -1 457 // Set RED and ULPFEC payload types. A payload type of -1
457 // means that the corresponding feature is turned off. 458 // means that the corresponding feature is turned off.
458 // That is, RED and ULPFEC can be enabled/disabled individually. 459 // That is, RED and ULPFEC can be enabled/disabled individually.
459 virtual void SetUlpfecConfig(int red_payload_type, 460 virtual void SetUlpfecConfig(int red_payload_type,
460 int ulpfec_payload_type) = 0; 461 int ulpfec_payload_type) = 0;
461 462
462 virtual int32_t SetFecParameters(const FecProtectionParams* delta_params, 463 // Set FEC rates, max frames before FEC is sent, and type of FEC masks.
463 const FecProtectionParams* key_params) = 0; 464 // Returns false on failure.
465 virtual bool SetFecParameters(const FecProtectionParams& delta_params,
466 const FecProtectionParams& key_params) = 0;
467
468 // Deprecated version of member function above.
469 RTC_DEPRECATED
470 int32_t SetFecParameters(const FecProtectionParams* delta_params,
471 const FecProtectionParams* key_params);
464 472
465 // Set method for requestion a new key frame. 473 // Set method for requestion a new key frame.
466 // Returns -1 on failure else 0. 474 // Returns -1 on failure else 0.
467 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; 475 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0;
468 476
469 // Sends a request for a keyframe. 477 // Sends a request for a keyframe.
470 // Returns -1 on failure else 0. 478 // Returns -1 on failure else 0.
471 virtual int32_t RequestKeyFrame() = 0; 479 virtual int32_t RequestKeyFrame() = 0;
472 }; 480 };
473 481
474 } // namespace webrtc 482 } // namespace webrtc
475 483
476 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ 484 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h » ('j') | webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698