| OLD | NEW |
| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 virtual bool RequiredUepProtectionK() { return _useUepProtectionK; } | 131 virtual bool RequiredUepProtectionK() { return _useUepProtectionK; } |
| 132 | 132 |
| 133 // Extracts whether the the FEC Unequal protection (UEP) is used for Delta | 133 // Extracts whether the the FEC Unequal protection (UEP) is used for Delta |
| 134 // frame. | 134 // frame. |
| 135 // | 135 // |
| 136 // Return value : Required Unequal protection on/off state. | 136 // Return value : Required Unequal protection on/off state. |
| 137 virtual bool RequiredUepProtectionD() { return _useUepProtectionD; } | 137 virtual bool RequiredUepProtectionD() { return _useUepProtectionD; } |
| 138 | 138 |
| 139 virtual int MaxFramesFec() const { return 1; } | 139 virtual int MaxFramesFec() const { return 1; } |
| 140 | 140 |
| 141 // Updates content metrics | |
| 142 void UpdateContentMetrics(const VideoContentMetrics* contentMetrics); | |
| 143 | |
| 144 protected: | 141 protected: |
| 145 uint8_t _effectivePacketLoss; | 142 uint8_t _effectivePacketLoss; |
| 146 uint8_t _protectionFactorK; | 143 uint8_t _protectionFactorK; |
| 147 uint8_t _protectionFactorD; | 144 uint8_t _protectionFactorD; |
| 148 // Estimation of residual loss after the FEC | 145 // Estimation of residual loss after the FEC |
| 149 float _scaleProtKey; | 146 float _scaleProtKey; |
| 150 int32_t _maxPayloadSize; | 147 int32_t _maxPayloadSize; |
| 151 | 148 |
| 152 VCMQmRobustness* _qmRobustness; | |
| 153 bool _useUepProtectionK; | 149 bool _useUepProtectionK; |
| 154 bool _useUepProtectionD; | 150 bool _useUepProtectionD; |
| 155 float _corrFecCost; | 151 float _corrFecCost; |
| 156 enum VCMProtectionMethodEnum _type; | 152 enum VCMProtectionMethodEnum _type; |
| 157 }; | 153 }; |
| 158 | 154 |
| 159 class VCMNackMethod : public VCMProtectionMethod { | 155 class VCMNackMethod : public VCMProtectionMethod { |
| 160 public: | 156 public: |
| 161 VCMNackMethod(); | 157 VCMNackMethod(); |
| 162 virtual ~VCMNackMethod(); | 158 virtual ~VCMNackMethod(); |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 rtc::ExpFilter _packetsPerFrameKey; | 349 rtc::ExpFilter _packetsPerFrameKey; |
| 354 uint16_t _codecWidth; | 350 uint16_t _codecWidth; |
| 355 uint16_t _codecHeight; | 351 uint16_t _codecHeight; |
| 356 int _numLayers; | 352 int _numLayers; |
| 357 }; | 353 }; |
| 358 | 354 |
| 359 } // namespace media_optimization | 355 } // namespace media_optimization |
| 360 } // namespace webrtc | 356 } // namespace webrtc |
| 361 | 357 |
| 362 #endif // WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ | 358 #endif // WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ |
| OLD | NEW |