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

Side by Side Diff: webrtc/media/engine/fakewebrtcvideoengine.h

Issue 2497773003: Use different RTX payload types for different H264 profiles (Closed)
Patch Set: Fix bug and add test. Created 4 years, 1 month 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 | « webrtc/media/base/mediaconstants.cc ('k') | webrtc/media/engine/payload_type_mapper.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) 2010 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 bool EncoderTypeHasInternalSource( 227 bool EncoderTypeHasInternalSource(
228 webrtc::VideoCodecType type) const override { 228 webrtc::VideoCodecType type) const override {
229 return encoders_have_internal_sources_; 229 return encoders_have_internal_sources_;
230 } 230 }
231 231
232 void set_encoders_have_internal_sources(bool internal_source) { 232 void set_encoders_have_internal_sources(bool internal_source) {
233 encoders_have_internal_sources_ = internal_source; 233 encoders_have_internal_sources_ = internal_source;
234 } 234 }
235 235
236 void AddSupportedVideoCodec(const cricket::VideoCodec& codec) {
237 codecs_.push_back(codec);
238 }
239
236 void AddSupportedVideoCodecType(const std::string& name) { 240 void AddSupportedVideoCodecType(const std::string& name) {
237 codecs_.push_back(cricket::VideoCodec(name)); 241 codecs_.push_back(cricket::VideoCodec(name));
238 } 242 }
239 243
240 int GetNumCreatedEncoders() { 244 int GetNumCreatedEncoders() {
241 rtc::CritScope lock(&crit_); 245 rtc::CritScope lock(&crit_);
242 return num_created_encoders_; 246 return num_created_encoders_;
243 } 247 }
244 248
245 const std::vector<FakeWebRtcVideoEncoder*> encoders() { 249 const std::vector<FakeWebRtcVideoEncoder*> encoders() {
(...skipping 10 matching lines...) Expand all
256 rtc::Event created_video_encoder_event_; 260 rtc::Event created_video_encoder_event_;
257 std::vector<cricket::VideoCodec> codecs_; 261 std::vector<cricket::VideoCodec> codecs_;
258 std::vector<FakeWebRtcVideoEncoder*> encoders_ GUARDED_BY(crit_); 262 std::vector<FakeWebRtcVideoEncoder*> encoders_ GUARDED_BY(crit_);
259 int num_created_encoders_ GUARDED_BY(crit_); 263 int num_created_encoders_ GUARDED_BY(crit_);
260 bool encoders_have_internal_sources_; 264 bool encoders_have_internal_sources_;
261 }; 265 };
262 266
263 } // namespace cricket 267 } // namespace cricket
264 268
265 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOENGINE_H_ 269 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/mediaconstants.cc ('k') | webrtc/media/engine/payload_type_mapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698