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

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

Issue 2558453002: Revert of H.264 packetization mode 0 (try 3) (Closed)
Patch Set: Created 4 years 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') | no next file with comments »
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 CODEC_ULPFEC, 177 CODEC_ULPFEC,
178 CODEC_FLEXFEC, 178 CODEC_FLEXFEC,
179 CODEC_RTX, 179 CODEC_RTX,
180 }; 180 };
181 181
182 CodecType GetCodecType() const; 182 CodecType GetCodecType() const;
183 // Validates a VideoCodec's payload type, dimensions and bitrates etc. If they 183 // Validates a VideoCodec's payload type, dimensions and bitrates etc. If they
184 // don't make sense (such as max < min bitrate), and error is logged and 184 // don't make sense (such as max < min bitrate), and error is logged and
185 // ValidateCodecFormat returns false. 185 // ValidateCodecFormat returns false.
186 bool ValidateCodecFormat() const; 186 bool ValidateCodecFormat() const;
187
188 private:
189 void SetDefaultParameters();
190 }; 187 };
191 188
192 struct DataCodec : public Codec { 189 struct DataCodec : public Codec {
193 DataCodec(int id, const std::string& name); 190 DataCodec(int id, const std::string& name);
194 DataCodec(); 191 DataCodec();
195 DataCodec(const DataCodec& c); 192 DataCodec(const DataCodec& c);
196 DataCodec(DataCodec&& c); 193 DataCodec(DataCodec&& c);
197 virtual ~DataCodec() = default; 194 virtual ~DataCodec() = default;
198 195
199 DataCodec& operator=(const DataCodec& c); 196 DataCodec& operator=(const DataCodec& c);
(...skipping 20 matching lines...) Expand all
220 bool HasTransportCc(const Codec& codec); 217 bool HasTransportCc(const Codec& codec);
221 // Returns the first codec in |supported_codecs| that matches |codec|, or 218 // Returns the first codec in |supported_codecs| that matches |codec|, or
222 // nullptr if no codec matches. 219 // nullptr if no codec matches.
223 const VideoCodec* FindMatchingCodec( 220 const VideoCodec* FindMatchingCodec(
224 const std::vector<VideoCodec>& supported_codecs, 221 const std::vector<VideoCodec>& supported_codecs,
225 const VideoCodec& codec); 222 const VideoCodec& codec);
226 223
227 } // namespace cricket 224 } // namespace cricket
228 225
229 #endif // WEBRTC_MEDIA_BASE_CODEC_H_ 226 #endif // WEBRTC_MEDIA_BASE_CODEC_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/base/codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698