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 ResiliencyType : int {
18 KNone = 0,
19 KRed = 1,
20 KUlpfec = 2,
21 KFlexfec = 3,
22 KRtx = 4,
23 };
24
25 enum class Type : int {
26 KAudio = 0,
27 KVideo = 1,
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 virtual ~Codec();
54
55 virtual ::webrtc::RtpCodecParameters ToCodecParameters() const;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCNAPI void AddFeedbackParam(::cricket::FeedbackParam const& param);
62
64
65 MCNAPI Codec(::cricket::Codec const&);
66
67 MCNAPI Codec(::cricket::Codec::Type type, int id, ::std::string const& name, int clockrate, uint64 channels);
68
69 MCNAPI bool GetParam(::std::string const& name, int* out) const;
70
71 MCNAPI bool GetParam(::std::string const& name, ::std::string* out) const;
72
73 MCNAPI ::cricket::Codec::ResiliencyType GetResiliencyType() const;
74
75 MCNAPI void IntersectFeedbackParams(::cricket::Codec const& other);
76
77 MCNAPI bool IsMediaCodec() const;
78
79 MCNAPI bool IsResiliencyCodec() const;
80
81 MCNAPI bool Matches(::cricket::Codec const& codec) const;
82
83 MCNAPI bool MatchesRtpCodec(::webrtc::RtpCodec const& codec_capability) const;
84
85 MCNAPI void SetParam(::std::string const& name, ::std::string const& value);
86
87 MCNAPI void SetParam(::std::string const& name, int value);
88
89 MCNAPI ::std::string ToString() const;
90
91 MCNAPI ::cricket::Codec& operator=(::cricket::Codec&&);
92
93 MCNAPI ::cricket::Codec& operator=(::cricket::Codec const&);
94 // NOLINTEND
95
96public:
97 // constructor thunks
98 // NOLINTBEGIN
99 MCNAPI void* $ctor(::cricket::Codec&&);
100
101 MCNAPI void* $ctor(::cricket::Codec const&);
102
103 MCNAPI void* $ctor(::cricket::Codec::Type type, int id, ::std::string const& name, int clockrate, uint64 channels);
104 // NOLINTEND
105
106public:
107 // destructor thunk
108 // NOLINTBEGIN
109 MCNAPI void $dtor();
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115 MCNAPI ::webrtc::RtpCodecParameters $ToCodecParameters() const;
116
117
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCNAPI static void** $vftable();
124 // NOLINTEND
125};
126
127} // namespace cricket
Definition FeedbackParam.h:7
Definition Codec.h:14
MCAPI Codec(::cricket::Codec::Type type, int id, ::std::string const &name, int clockrate, uint64 channels)
MCAPI bool MatchesRtpCodec(::webrtc::RtpCodec const &codec_capability) const
MCAPI Codec(::cricket::Codec const &)
static MCAPI void ** $vftable()
MCAPI bool Matches(::cricket::Codec const &codec) const
MCAPI void SetParam(::std::string const &name, ::std::string const &value)
MCAPI::webrtc::RtpCodecParameters $ToCodecParameters() const
MCAPI bool IsResiliencyCodec() const
MCAPI void * $ctor(::cricket::Codec &&)
MCAPI void $dtor()
MCAPI bool GetParam(::std::string const &name, int *out) const
MCAPI void IntersectFeedbackParams(::cricket::Codec const &other)
MCAPI::std::string ToString() const
MCAPI bool IsMediaCodec() const
MCAPI::cricket::Codec & operator=(::cricket::Codec &&)
MCAPI Codec(::cricket::Codec &&)
MCAPI void SetParam(::std::string const &name, int value)
MCAPI::cricket::Codec::ResiliencyType GetResiliencyType() const
MCAPI void * $ctor(::cricket::Codec const &)
MCAPI void * $ctor(::cricket::Codec::Type type, int id, ::std::string const &name, int clockrate, uint64 channels)
MCAPI void AddFeedbackParam(::cricket::FeedbackParam const &param)
MCAPI bool GetParam(::std::string const &name, ::std::string *out) const
MCAPI::cricket::Codec & operator=(::cricket::Codec const &)
Definition Alias.h:14
Definition RtpCodecParameters.h:10
Definition RtpCodec.h:7