Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1007)

Side by Side Diff: webrtc/media/base/codec.h

Issue 2347863003: H264 codec: Check profile-level-id when matching (Closed)
Patch Set: Fix hta comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/media/base/codec.cc » ('j') | webrtc/media/base/codec.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 const std::string& name, 148 const std::string& name,
149 int width, 149 int width,
150 int height, 150 int height,
151 int framerate); 151 int framerate);
152 VideoCodec(int id, const std::string& name); 152 VideoCodec(int id, const std::string& name);
153 // Creates an empty codec. 153 // Creates an empty codec.
154 VideoCodec(); 154 VideoCodec();
155 VideoCodec(const VideoCodec& c); 155 VideoCodec(const VideoCodec& c);
156 virtual ~VideoCodec() = default; 156 virtual ~VideoCodec() = default;
157 157
158 // Indicates if this codec is compatible with the specified codec.
159 bool Matches(const VideoCodec& codec) const;
160
158 std::string ToString() const; 161 std::string ToString() const;
159 162
160 VideoCodec& operator=(const VideoCodec& c); 163 VideoCodec& operator=(const VideoCodec& c);
161 164
162 bool operator==(const VideoCodec& c) const; 165 bool operator==(const VideoCodec& c) const;
163 166
164 bool operator!=(const VideoCodec& c) const { 167 bool operator!=(const VideoCodec& c) const {
165 return !(*this == c); 168 return !(*this == c);
166 } 169 }
167 170
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 } 212 }
210 213
211 bool CodecNamesEq(const std::string& name1, const std::string& name2); 214 bool CodecNamesEq(const std::string& name1, const std::string& name2);
212 bool HasNack(const Codec& codec); 215 bool HasNack(const Codec& codec);
213 bool HasRemb(const Codec& codec); 216 bool HasRemb(const Codec& codec);
214 bool HasTransportCc(const Codec& codec); 217 bool HasTransportCc(const Codec& codec);
215 218
216 } // namespace cricket 219 } // namespace cricket
217 220
218 #endif // WEBRTC_MEDIA_BASE_CODEC_H_ 221 #endif // WEBRTC_MEDIA_BASE_CODEC_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/base/codec.cc » ('j') | webrtc/media/base/codec.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698