LeviLamina
Loading...
Searching...
No Matches
Codec.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace cricket { class FeedbackParam; }
8namespace webrtc { struct RtpCodec; }
9namespace webrtc { struct RtpCodecParameters; }
10// clang-format on
11
12namespace cricket {
13
14struct Codec {
15public:
16 // Codec inner types define
17 enum class Type : int {
18 KAudio = 0,
19 KVideo = 1,
20 };
21
22 enum class ResiliencyType : int {
23 KNone = 0,
24 KRed = 1,
25 KUlpfec = 2,
26 KFlexfec = 3,
27 KRtx = 4,
28 };
29
30public:
31 // member variables
32 // NOLINTBEGIN
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
48 Codec();
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 // vIndex: 0
54 virtual ~Codec() = default;
55
56 // vIndex: 1
57 virtual ::webrtc::RtpCodecParameters ToCodecParameters() const;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI void AddFeedbackParam(::cricket::FeedbackParam const&);
64
65 MCAPI Codec(::cricket::Codec&&);
66
67 MCAPI Codec(::cricket::Codec const&);
68
69 MCAPI Codec(::cricket::Codec::Type, int, ::std::string const&, int);
70
71 MCAPI Codec(::cricket::Codec::Type, int, ::std::string const&, int, uint64);
72
73 MCAPI bool GetParam(::std::string const&, int*) const;
74
75 MCAPI bool GetParam(::std::string const&, ::std::string*) const;
76
77 MCAPI ::cricket::Codec::ResiliencyType GetResiliencyType() const;
78
79 MCAPI void IntersectFeedbackParams(::cricket::Codec const&);
80
81 MCAPI bool IsMediaCodec() const;
82
83 MCAPI bool IsResiliencyCodec() const;
84
85 MCAPI bool Matches(::cricket::Codec const&) const;
86
87 MCAPI bool MatchesRtpCodec(::webrtc::RtpCodec const&) const;
88
89 MCAPI void SetParam(::std::string const&, int);
90
91 MCAPI void SetParam(::std::string const&, ::std::string const&);
92
93 MCAPI ::std::string ToString() const;
94
95 MCAPI ::cricket::Codec& operator=(::cricket::Codec const&);
96
97 MCAPI ::cricket::Codec& operator=(::cricket::Codec&&);
98 // NOLINTEND
99
100public:
101 // constructor thunks
102 // NOLINTBEGIN
103 MCAPI void* $ctor(::cricket::Codec&&);
104
105 MCAPI void* $ctor(::cricket::Codec const&);
106
107 MCAPI void* $ctor(::cricket::Codec::Type, int, ::std::string const&, int);
108
109 MCAPI void* $ctor(::cricket::Codec::Type, int, ::std::string const&, int, uint64);
110 // NOLINTEND
111
112public:
113 // destructor thunk
114 // NOLINTBEGIN
115
116 // NOLINTEND
117
118public:
119 // virtual function thunks
120 // NOLINTBEGIN
121
122 // NOLINTEND
123
124public:
125 // vftables
126 // NOLINTBEGIN
127 MCAPI static void** $vftable();
128 // NOLINTEND
129};
130
131} // namespace cricket
Definition FeedbackParam.h:7
Definition Codec.h:14
Definition Alias.h:14
Definition RtpCodec.h:7