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
64
66
67 MCNAPI Codec(::cricket::Codec const&);
68
69 MCNAPI Codec(::cricket::Codec::Type, int, ::std::string const&, int);
70
71 MCNAPI Codec(::cricket::Codec::Type, int, ::std::string const&, int, uint64);
72
73 MCNAPI bool GetParam(::std::string const&, int*) const;
74
75 MCNAPI bool GetParam(::std::string const&, ::std::string*) const;
76
77 MCNAPI ::cricket::Codec::ResiliencyType GetResiliencyType() const;
78
80
81 MCNAPI bool IsMediaCodec() const;
82
83 MCNAPI bool IsResiliencyCodec() const;
84
85 MCNAPI bool Matches(::cricket::Codec const&) const;
86
87 MCNAPI bool MatchesRtpCodec(::webrtc::RtpCodec const&) const;
88
89 MCNAPI void SetParam(::std::string const&, int);
90
91 MCNAPI void SetParam(::std::string const&, ::std::string const&);
92
93 MCNAPI ::std::string ToString() const;
94
95 MCNAPI ::cricket::Codec& operator=(::cricket::Codec const&);
96
97 MCNAPI ::cricket::Codec& operator=(::cricket::Codec&&);
98 // NOLINTEND
99
100public:
101 // constructor thunks
102 // NOLINTBEGIN
103 MCNAPI void* $ctor(::cricket::Codec&&);
104
105 MCNAPI void* $ctor(::cricket::Codec const&);
106
107 MCNAPI void* $ctor(::cricket::Codec::Type, int, ::std::string const&, int);
108
109 MCNAPI void* $ctor(::cricket::Codec::Type, int, ::std::string const&, int, uint64);
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115
116 // NOLINTEND
117
118public:
119 // vftables
120 // NOLINTBEGIN
121 MCNAPI static void** $vftable();
122 // NOLINTEND
123};
124
125} // namespace cricket
Definition FeedbackParam.h:7
Definition Codec.h:14
MCAPI void AddFeedbackParam(::cricket::FeedbackParam const &)
MCAPI void SetParam(::std::string const &, ::std::string const &)
MCAPI Codec(::cricket::Codec const &)
static MCAPI void ** $vftable()
MCAPI void IntersectFeedbackParams(::cricket::Codec const &)
MCAPI bool GetParam(::std::string const &, ::std::string *) const
MCAPI bool IsResiliencyCodec() const
MCAPI void * $ctor(::cricket::Codec &&)
MCAPI bool GetParam(::std::string const &, int *) const
MCAPI void SetParam(::std::string const &, int)
MCAPI Codec(::cricket::Codec::Type, int, ::std::string const &, int, uint64)
MCAPI void * $ctor(::cricket::Codec::Type, int, ::std::string const &, int)
MCAPI::std::string ToString() const
MCAPI bool IsMediaCodec() const
MCAPI Codec(::cricket::Codec::Type, int, ::std::string const &, int)
MCAPI::cricket::Codec & operator=(::cricket::Codec &&)
MCAPI void * $ctor(::cricket::Codec::Type, int, ::std::string const &, int, uint64)
MCAPI Codec(::cricket::Codec &&)
MCAPI::cricket::Codec::ResiliencyType GetResiliencyType() const
MCAPI void * $ctor(::cricket::Codec const &)
MCAPI bool MatchesRtpCodec(::webrtc::RtpCodec const &) const
MCAPI::cricket::Codec & operator=(::cricket::Codec const &)
MCAPI bool Matches(::cricket::Codec const &) const
Definition Alias.h:14
Definition RtpCodec.h:7