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

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

Issue 2455963003: Simplify SetFecParameters signature. (Closed)
Patch Set: Return type int32_t replaced by bool and void. 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
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // ************************************************************************** 452 // **************************************************************************
453 // Video 453 // Video
454 // ************************************************************************** 454 // **************************************************************************
455 455
456 // Set RED and ULPFEC payload types. A payload type of -1 456 // Set RED and ULPFEC payload types. A payload type of -1
457 // means that the corresponding feature is turned off. 457 // means that the corresponding feature is turned off.
458 // That is, RED and ULPFEC can be enabled/disabled individually. 458 // That is, RED and ULPFEC can be enabled/disabled individually.
459 virtual void SetUlpfecConfig(int red_payload_type, 459 virtual void SetUlpfecConfig(int red_payload_type,
460 int ulpfec_payload_type) = 0; 460 int ulpfec_payload_type) = 0;
461 461
462 virtual int32_t SetFecParameters(const FecProtectionParams* delta_params, 462 // Set FEC rates, max frames before FEC is sent, and type of FEC masks.
463 const FecProtectionParams* key_params) = 0; 463 // Returns false on failure.
464 virtual bool SetFecParameters(const FecProtectionParams& delta_params,
danilchap 2016/10/28 10:16:41 to avoid breaking dependant projects, keep the old
brandtr 2016/10/28 11:06:10 Done. Added implementation in rtp_rtcp_impl.cc, t
465 const FecProtectionParams& key_params) = 0;
464 466
465 // Set method for requestion a new key frame. 467 // Set method for requestion a new key frame.
466 // Returns -1 on failure else 0. 468 // Returns -1 on failure else 0.
467 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; 469 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0;
468 470
469 // Sends a request for a keyframe. 471 // Sends a request for a keyframe.
470 // Returns -1 on failure else 0. 472 // Returns -1 on failure else 0.
471 virtual int32_t RequestKeyFrame() = 0; 473 virtual int32_t RequestKeyFrame() = 0;
472 }; 474 };
473 475
474 } // namespace webrtc 476 } // namespace webrtc
475 477
476 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ 478 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698