| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // | 275 // |
| 276 // Input: | 276 // Input: |
| 277 // - frameRate : The current target frame rate. | 277 // - frameRate : The current target frame rate. |
| 278 void UpdateFrameRate(float frameRate) { _frameRate = frameRate; } | 278 void UpdateFrameRate(float frameRate) { _frameRate = frameRate; } |
| 279 | 279 |
| 280 // Update the frame size | 280 // Update the frame size |
| 281 // | 281 // |
| 282 // Input: | 282 // Input: |
| 283 // - width : The codec frame width. | 283 // - width : The codec frame width. |
| 284 // - height : The codec frame height. | 284 // - height : The codec frame height. |
| 285 void UpdateFrameSize(uint16_t width, uint16_t height); | 285 void UpdateFrameSize(size_t width, size_t height); |
| 286 | 286 |
| 287 // Update the number of active layers | 287 // Update the number of active layers |
| 288 // | 288 // |
| 289 // Input: | 289 // Input: |
| 290 // - numLayers : Number of layers used. | 290 // - numLayers : Number of layers used. |
| 291 void UpdateNumLayers(int numLayers); | 291 void UpdateNumLayers(int numLayers); |
| 292 | 292 |
| 293 // The amount of packet loss to cover for with FEC. | 293 // The amount of packet loss to cover for with FEC. |
| 294 // | 294 // |
| 295 // Input: | 295 // Input: |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 uint8_t _fecRateKey; | 343 uint8_t _fecRateKey; |
| 344 uint8_t _fecRateDelta; | 344 uint8_t _fecRateDelta; |
| 345 int64_t _lastPrUpdateT; | 345 int64_t _lastPrUpdateT; |
| 346 int64_t _lastPacketPerFrameUpdateT; | 346 int64_t _lastPacketPerFrameUpdateT; |
| 347 int64_t _lastPacketPerFrameUpdateTKey; | 347 int64_t _lastPacketPerFrameUpdateTKey; |
| 348 rtc::ExpFilter _lossPr255; | 348 rtc::ExpFilter _lossPr255; |
| 349 VCMLossProbabilitySample _lossPrHistory[kLossPrHistorySize]; | 349 VCMLossProbabilitySample _lossPrHistory[kLossPrHistorySize]; |
| 350 uint8_t _shortMaxLossPr255; | 350 uint8_t _shortMaxLossPr255; |
| 351 rtc::ExpFilter _packetsPerFrame; | 351 rtc::ExpFilter _packetsPerFrame; |
| 352 rtc::ExpFilter _packetsPerFrameKey; | 352 rtc::ExpFilter _packetsPerFrameKey; |
| 353 uint16_t _codecWidth; | 353 size_t _codecWidth; |
| 354 uint16_t _codecHeight; | 354 size_t _codecHeight; |
| 355 int _numLayers; | 355 int _numLayers; |
| 356 }; | 356 }; |
| 357 | 357 |
| 358 } // namespace media_optimization | 358 } // namespace media_optimization |
| 359 } // namespace webrtc | 359 } // namespace webrtc |
| 360 | 360 |
| 361 #endif // WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ | 361 #endif // WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ |
| OLD | NEW |