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