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

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

Issue 2951033003: [EXPERIMENTAL] Generic stereo codec with index header sending single frames
Patch Set: Rebase and add external codec support. Created 3 years, 2 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 | « common_video/video_frame_buffer.cc ('k') | 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 // MEDIA_BASE_CODEC_H_ 260 #endif // MEDIA_BASE_CODEC_H_
OLDNEW
« no previous file with comments | « common_video/video_frame_buffer.cc ('k') | media/base/codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698