OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 #include <stdio.h> | 10 #include <stdio.h> |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 | 602 |
603 send_config_.rtp.extensions.clear(); | 603 send_config_.rtp.extensions.clear(); |
604 if (params.common.send_side_bwe) { | 604 if (params.common.send_side_bwe) { |
605 send_config_.rtp.extensions.push_back(RtpExtension( | 605 send_config_.rtp.extensions.push_back(RtpExtension( |
606 RtpExtension::kTransportSequenceNumber, kTransportSeqExtensionId)); | 606 RtpExtension::kTransportSequenceNumber, kTransportSeqExtensionId)); |
607 } else { | 607 } else { |
608 send_config_.rtp.extensions.push_back( | 608 send_config_.rtp.extensions.push_back( |
609 RtpExtension(RtpExtension::kAbsSendTime, kAbsSendTimeExtensionId)); | 609 RtpExtension(RtpExtension::kAbsSendTime, kAbsSendTimeExtensionId)); |
610 } | 610 } |
611 | 611 |
| 612 encoder_config_.disable_generic_bitrate_frame_dropper = |
| 613 params.common.disable_generic_bitrate_frame_dropper; |
| 614 |
612 // Automatically fill out streams[0] with params. | 615 // Automatically fill out streams[0] with params. |
613 VideoStream* stream = &encoder_config_.streams[0]; | 616 VideoStream* stream = &encoder_config_.streams[0]; |
614 stream->width = params.common.width; | 617 stream->width = params.common.width; |
615 stream->height = params.common.height; | 618 stream->height = params.common.height; |
616 stream->min_bitrate_bps = params.common.min_bitrate_bps; | 619 stream->min_bitrate_bps = params.common.min_bitrate_bps; |
617 stream->target_bitrate_bps = params.common.target_bitrate_bps; | 620 stream->target_bitrate_bps = params.common.target_bitrate_bps; |
618 stream->max_bitrate_bps = params.common.max_bitrate_bps; | 621 stream->max_bitrate_bps = params.common.max_bitrate_bps; |
619 stream->max_framerate = static_cast<int>(params.common.fps); | 622 stream->max_framerate = static_cast<int>(params.common.fps); |
620 | 623 |
621 stream->temporal_layer_thresholds_bps.clear(); | 624 stream->temporal_layer_thresholds_bps.clear(); |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 send_stream_->Stop(); | 833 send_stream_->Stop(); |
831 receive_stream->Stop(); | 834 receive_stream->Stop(); |
832 | 835 |
833 call->DestroyVideoReceiveStream(receive_stream); | 836 call->DestroyVideoReceiveStream(receive_stream); |
834 call->DestroyVideoSendStream(send_stream_); | 837 call->DestroyVideoSendStream(send_stream_); |
835 | 838 |
836 transport.StopSending(); | 839 transport.StopSending(); |
837 } | 840 } |
838 | 841 |
839 } // namespace webrtc | 842 } // namespace webrtc |
OLD | NEW |