| 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 |
| 141 protected: | 144 protected: |
| 142 uint8_t _effectivePacketLoss; | 145 uint8_t _effectivePacketLoss; |
| 143 uint8_t _protectionFactorK; | 146 uint8_t _protectionFactorK; |
| 144 uint8_t _protectionFactorD; | 147 uint8_t _protectionFactorD; |
| 145 // Estimation of residual loss after the FEC | 148 // Estimation of residual loss after the FEC |
| 146 float _scaleProtKey; | 149 float _scaleProtKey; |
| 147 int32_t _maxPayloadSize; | 150 int32_t _maxPayloadSize; |
| 148 | 151 |
| 152 VCMQmRobustness* _qmRobustness; |
| 149 bool _useUepProtectionK; | 153 bool _useUepProtectionK; |
| 150 bool _useUepProtectionD; | 154 bool _useUepProtectionD; |
| 151 float _corrFecCost; | 155 float _corrFecCost; |
| 152 enum VCMProtectionMethodEnum _type; | 156 enum VCMProtectionMethodEnum _type; |
| 153 }; | 157 }; |
| 154 | 158 |
| 155 class VCMNackMethod : public VCMProtectionMethod { | 159 class VCMNackMethod : public VCMProtectionMethod { |
| 156 public: | 160 public: |
| 157 VCMNackMethod(); | 161 VCMNackMethod(); |
| 158 virtual ~VCMNackMethod(); | 162 virtual ~VCMNackMethod(); |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 rtc::ExpFilter _packetsPerFrameKey; | 353 rtc::ExpFilter _packetsPerFrameKey; |
| 350 uint16_t _codecWidth; | 354 uint16_t _codecWidth; |
| 351 uint16_t _codecHeight; | 355 uint16_t _codecHeight; |
| 352 int _numLayers; | 356 int _numLayers; |
| 353 }; | 357 }; |
| 354 | 358 |
| 355 } // namespace media_optimization | 359 } // namespace media_optimization |
| 356 } // namespace webrtc | 360 } // namespace webrtc |
| 357 | 361 |
| 358 #endif // WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ | 362 #endif // WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ |
| OLD | NEW |