OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 VideoCodec& operator=(VideoCodec&& c); | 191 VideoCodec& operator=(VideoCodec&& c); |
192 | 192 |
193 bool operator==(const VideoCodec& c) const; | 193 bool operator==(const VideoCodec& c) const; |
194 | 194 |
195 bool operator!=(const VideoCodec& c) const { | 195 bool operator!=(const VideoCodec& c) const { |
196 return !(*this == c); | 196 return !(*this == c); |
197 } | 197 } |
198 | 198 |
199 static VideoCodec CreateRtxCodec(int rtx_payload_type, | 199 static VideoCodec CreateRtxCodec(int rtx_payload_type, |
200 int associated_payload_type); | 200 int associated_payload_type); |
| 201 static VideoCodec CreateStereoCodec(int stereo_payload_type, |
| 202 const VideoCodec& codec); |
| 203 static bool IsStereoCodec(const VideoCodec& codec); |
201 | 204 |
202 enum CodecType { | 205 enum CodecType { |
203 CODEC_VIDEO, | 206 CODEC_VIDEO, |
204 CODEC_RED, | 207 CODEC_RED, |
205 CODEC_ULPFEC, | 208 CODEC_ULPFEC, |
206 CODEC_FLEXFEC, | 209 CODEC_FLEXFEC, |
207 CODEC_RTX, | 210 CODEC_RTX, |
208 }; | 211 }; |
209 | 212 |
210 CodecType GetCodecType() const; | 213 CodecType GetCodecType() const; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 bool HasTransportCc(const Codec& codec); | 251 bool HasTransportCc(const Codec& codec); |
249 // Returns the first codec in |supported_codecs| that matches |codec|, or | 252 // Returns the first codec in |supported_codecs| that matches |codec|, or |
250 // nullptr if no codec matches. | 253 // nullptr if no codec matches. |
251 const VideoCodec* FindMatchingCodec( | 254 const VideoCodec* FindMatchingCodec( |
252 const std::vector<VideoCodec>& supported_codecs, | 255 const std::vector<VideoCodec>& supported_codecs, |
253 const VideoCodec& codec); | 256 const VideoCodec& codec); |
254 | 257 |
255 } // namespace cricket | 258 } // namespace cricket |
256 | 259 |
257 #endif // WEBRTC_MEDIA_BASE_CODEC_H_ | 260 #endif // WEBRTC_MEDIA_BASE_CODEC_H_ |
OLD | NEW |