• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
3  *
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  */
10 
11 #ifndef MODULES_INCLUDE_MODULE_FEC_TYPES_H_
12 #define MODULES_INCLUDE_MODULE_FEC_TYPES_H_
13 
14 namespace webrtc {
15 
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,
23 };
24 
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;
30 };
31 
32 }  // namespace webrtc
33 
34 #endif  // MODULES_INCLUDE_MODULE_FEC_TYPES_H_
35