| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 return !(*this == c); | 159 return !(*this == c); |
| 160 } | 160 } |
| 161 | 161 |
| 162 static VideoCodec CreateRtxCodec(int rtx_payload_type, | 162 static VideoCodec CreateRtxCodec(int rtx_payload_type, |
| 163 int associated_payload_type); | 163 int associated_payload_type); |
| 164 | 164 |
| 165 enum CodecType { | 165 enum CodecType { |
| 166 CODEC_VIDEO, | 166 CODEC_VIDEO, |
| 167 CODEC_RED, | 167 CODEC_RED, |
| 168 CODEC_ULPFEC, | 168 CODEC_ULPFEC, |
| 169 CODEC_FLEXFEC, |
| 169 CODEC_RTX, | 170 CODEC_RTX, |
| 170 }; | 171 }; |
| 171 | 172 |
| 172 CodecType GetCodecType() const; | 173 CodecType GetCodecType() const; |
| 173 // Validates a VideoCodec's payload type, dimensions and bitrates etc. If they | 174 // Validates a VideoCodec's payload type, dimensions and bitrates etc. If they |
| 174 // don't make sense (such as max < min bitrate), and error is logged and | 175 // don't make sense (such as max < min bitrate), and error is logged and |
| 175 // ValidateCodecFormat returns false. | 176 // ValidateCodecFormat returns false. |
| 176 bool ValidateCodecFormat() const; | 177 bool ValidateCodecFormat() const; |
| 177 }; | 178 }; |
| 178 | 179 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 207 webrtc::VideoCodecType CodecTypeFromName(const std::string& name); | 208 webrtc::VideoCodecType CodecTypeFromName(const std::string& name); |
| 208 bool HasNack(const Codec& codec); | 209 bool HasNack(const Codec& codec); |
| 209 bool HasRemb(const Codec& codec); | 210 bool HasRemb(const Codec& codec); |
| 210 bool HasTransportCc(const Codec& codec); | 211 bool HasTransportCc(const Codec& codec); |
| 211 bool IsCodecSupported(const std::vector<VideoCodec>& supported_codecs, | 212 bool IsCodecSupported(const std::vector<VideoCodec>& supported_codecs, |
| 212 const VideoCodec& codec); | 213 const VideoCodec& codec); |
| 213 | 214 |
| 214 } // namespace cricket | 215 } // namespace cricket |
| 215 | 216 |
| 216 #endif // WEBRTC_MEDIA_BASE_CODEC_H_ | 217 #endif // WEBRTC_MEDIA_BASE_CODEC_H_ |
| OLD | NEW |