• Home
  • Raw
  • Download

Lines Matching full:codec

69 struct RTC_EXPORT Codec {  struct
78 virtual ~Codec(); argument
80 // Indicates if this codec is compatible with the specified codec.
81 bool Matches(const Codec& codec,
101 void IntersectFeedbackParams(const Codec& other);
105 Codec& operator=(const Codec& c); argument
106 Codec& operator=(Codec&& c); argument
108 bool operator==(const Codec& c) const;
110 bool operator!=(const Codec& c) const { return !(*this == c); }
113 // A Codec can't be created without a subclass.
114 // Creates a codec with the given parameters.
115 Codec(int id, const std::string& name, int clockrate);
116 // Creates an empty codec.
117 Codec();
118 Codec(const Codec& c);
119 Codec(Codec&& c);
122 struct AudioCodec : public Codec {
126 // Creates a codec with the given parameters.
132 // Creates an empty codec.
138 // Indicates if this codec is compatible with the specified codec.
139 bool Matches(const AudioCodec& codec,
154 struct RTC_EXPORT VideoCodec : public Codec {
159 // Creates a codec with the given parameters.
161 // Creates a codec with the given name and empty id.
163 // Creates an empty codec.
170 // Indicates if this video codec is the same as the other video codec, e.g. if
173 bool Matches(const VideoCodec& codec,
213 // Get the codec setting associated with `payload_type`. If there
214 // is no codec associated with that payload type it returns nullptr.
215 template <class Codec>
216 const Codec* FindCodecById(const std::vector<Codec>& codecs, int payload_type) { in FindCodecById()
217 for (const auto& codec : codecs) { in FindCodecById() local
218 if (codec.id == payload_type) in FindCodecById()
219 return &codec; in FindCodecById()
224 bool HasLntf(const Codec& codec);
225 bool HasNack(const Codec& codec);
226 bool HasRemb(const Codec& codec);
227 bool HasRrtr(const Codec& codec);
228 bool HasTransportCc(const Codec& codec);
229 // Returns the first codec in `supported_codecs` that matches `codec`, or
230 // nullptr if no codec matches.
233 const VideoCodec& codec);