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