Refactor MediaOptimization protection methods.
Makes MediaOptimization::EnableProtectionMethod significantly less confusing. Also removing some dead methods in VideoSender. BUG= R=mflodman@webrtc.org TBR=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/42339004 Cr-Commit-Position: refs/heads/master@{#8693} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8693 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -528,38 +528,6 @@ public:
|
||||
|
||||
// Robustness APIs
|
||||
|
||||
// Set the sender RTX/NACK mode.
|
||||
// Input:
|
||||
// - mode : the selected NACK mode.
|
||||
//
|
||||
// Return value : VCM_OK, on success;
|
||||
// < 0, on error.
|
||||
virtual int SetSenderNackMode(SenderNackMode mode) = 0;
|
||||
|
||||
// Set the sender reference picture selection (RPS) mode.
|
||||
// Input:
|
||||
// - enable : true or false, for enable and disable, respectively.
|
||||
//
|
||||
// Return value : VCM_OK, on success;
|
||||
// < 0, on error.
|
||||
virtual int SetSenderReferenceSelection(bool enable) = 0;
|
||||
|
||||
// Set the sender forward error correction (FEC) mode.
|
||||
// Input:
|
||||
// - enable : true or false, for enable and disable, respectively.
|
||||
//
|
||||
// Return value : VCM_OK, on success;
|
||||
// < 0, on error.
|
||||
virtual int SetSenderFEC(bool enable) = 0;
|
||||
|
||||
// Set the key frame period, or disable periodic key frames (I-frames).
|
||||
// Input:
|
||||
// - periodMs : period in ms; <= 0 to disable periodic key frames.
|
||||
//
|
||||
// Return value : VCM_OK, on success;
|
||||
// < 0, on error.
|
||||
virtual int SetSenderKeyFramePeriod(int periodMs) = 0;
|
||||
|
||||
// Set the receiver robustness mode. The mode decides how the receiver
|
||||
// responds to losses in the stream. The type of counter-measure (soft or
|
||||
// hard NACK, dual decoder, RPS, etc.) is selected through the
|
||||
|
||||
@ -46,6 +46,7 @@ namespace webrtc {
|
||||
enum { kDefaultStartBitrateKbps = 300 };
|
||||
|
||||
enum VCMVideoProtection {
|
||||
kProtectionNone,
|
||||
kProtectionNack, // Both send-side and receive-side
|
||||
kProtectionNackSender, // Send-side only
|
||||
kProtectionNackReceiver, // Receive-side only
|
||||
@ -53,7 +54,6 @@ enum VCMVideoProtection {
|
||||
kProtectionNackFEC,
|
||||
kProtectionKeyOnLoss,
|
||||
kProtectionKeyOnKeyLoss,
|
||||
kProtectionPeriodicKeyFrames
|
||||
};
|
||||
|
||||
enum VCMTemporalDecimation {
|
||||
|
||||
Reference in New Issue
Block a user