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

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

Issue 2042603002: Movable support for VideoReceiveStream::Config and avoid copies (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: git cl format Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 // Wrapper for the receiver part, contains configs etc. that are needed to 412 // Wrapper for the receiver part, contains configs etc. that are needed to
413 // reconstruct the underlying VideoReceiveStream. Also serves as a wrapper 413 // reconstruct the underlying VideoReceiveStream. Also serves as a wrapper
414 // between rtc::VideoSinkInterface<webrtc::VideoFrame> and 414 // between rtc::VideoSinkInterface<webrtc::VideoFrame> and
415 // rtc::VideoSinkInterface<cricket::VideoFrame>. 415 // rtc::VideoSinkInterface<cricket::VideoFrame>.
416 class WebRtcVideoReceiveStream 416 class WebRtcVideoReceiveStream
417 : public rtc::VideoSinkInterface<webrtc::VideoFrame> { 417 : public rtc::VideoSinkInterface<webrtc::VideoFrame> {
418 public: 418 public:
419 WebRtcVideoReceiveStream( 419 WebRtcVideoReceiveStream(
420 webrtc::Call* call, 420 webrtc::Call* call,
421 const StreamParams& sp, 421 const StreamParams& sp,
422 const webrtc::VideoReceiveStream::Config& config, 422 webrtc::VideoReceiveStream::Config config,
423 WebRtcVideoDecoderFactory* external_decoder_factory, 423 WebRtcVideoDecoderFactory* external_decoder_factory,
424 bool default_stream, 424 bool default_stream,
425 const std::vector<VideoCodecSettings>& recv_codecs, 425 const std::vector<VideoCodecSettings>& recv_codecs,
426 bool red_disabled_by_remote_side); 426 bool red_disabled_by_remote_side);
427 ~WebRtcVideoReceiveStream(); 427 ~WebRtcVideoReceiveStream();
428 428
429 const std::vector<uint32_t>& GetSsrcs() const; 429 const std::vector<uint32_t>& GetSsrcs() const;
430 430
431 void SetLocalSsrc(uint32_t local_ssrc); 431 void SetLocalSsrc(uint32_t local_ssrc);
432 // TODO(deadbeef): Move these feedback parameters into the recv parameters. 432 // TODO(deadbeef): Move these feedback parameters into the recv parameters.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 // send_params/recv_params, rtp_extensions, options, etc. 551 // send_params/recv_params, rtp_extensions, options, etc.
552 VideoSendParameters send_params_; 552 VideoSendParameters send_params_;
553 VideoOptions default_send_options_; 553 VideoOptions default_send_options_;
554 VideoRecvParameters recv_params_; 554 VideoRecvParameters recv_params_;
555 bool red_disabled_by_remote_side_; 555 bool red_disabled_by_remote_side_;
556 }; 556 };
557 557
558 } // namespace cricket 558 } // namespace cricket
559 559
560 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 560 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698