Merge mozilla-central to autoland. a=merge CLOSED TREE
[gecko.git] / third_party / libwebrtc / modules / include / module_fec_types.h
blobfa353427641b5a22e48bdf9e3226ba2f1d286327
1 /*
2 * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
11 #ifndef MODULES_INCLUDE_MODULE_FEC_TYPES_H_
12 #define MODULES_INCLUDE_MODULE_FEC_TYPES_H_
14 namespace webrtc {
16 // Types for the FEC packet masks. The type `kFecMaskRandom` is based on a
17 // random loss model. The type `kFecMaskBursty` is based on a bursty/consecutive
18 // loss model. The packet masks are defined in
19 // modules/rtp_rtcp/fec_private_tables_random(bursty).h
20 enum FecMaskType {
21 kFecMaskRandom,
22 kFecMaskBursty,
25 // Struct containing forward error correction settings.
26 struct FecProtectionParams {
27 int fec_rate = 0;
28 int max_fec_frames = 0;
29 FecMaskType fec_mask_type = FecMaskType::kFecMaskRandom;
32 } // namespace webrtc
34 #endif // MODULES_INCLUDE_MODULE_FEC_TYPES_H_