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

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

Issue 2914363002: MediaCodecVideoEncoder: Add QP stats to Encoded callback for VP9 and turn on quality scaling. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | webrtc/modules/video_coding/utility/quality_scaler.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) 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 if (is_screencast) { 414 if (is_screencast) {
415 // TODO(asapersson): Set to 2 for now since there is a DCHECK in 415 // TODO(asapersson): Set to 2 for now since there is a DCHECK in
416 // VideoSendStream::ReconfigureVideoEncoder. 416 // VideoSendStream::ReconfigureVideoEncoder.
417 vp9_settings.numberOfSpatialLayers = 2; 417 vp9_settings.numberOfSpatialLayers = 2;
418 } else { 418 } else {
419 vp9_settings.numberOfSpatialLayers = GetDefaultVp9SpatialLayers(); 419 vp9_settings.numberOfSpatialLayers = GetDefaultVp9SpatialLayers();
420 } 420 }
421 // VP9 denoising is disabled by default. 421 // VP9 denoising is disabled by default.
422 vp9_settings.denoisingOn = codec_default_denoising ? true : denoising; 422 vp9_settings.denoisingOn = codec_default_denoising ? true : denoising;
423 vp9_settings.frameDroppingOn = frame_dropping; 423 vp9_settings.frameDroppingOn = frame_dropping;
424 vp9_settings.automaticResizeOn = automatic_resize;
424 return new rtc::RefCountedObject< 425 return new rtc::RefCountedObject<
425 webrtc::VideoEncoderConfig::Vp9EncoderSpecificSettings>(vp9_settings); 426 webrtc::VideoEncoderConfig::Vp9EncoderSpecificSettings>(vp9_settings);
426 } 427 }
427 return nullptr; 428 return nullptr;
428 } 429 }
429 430
430 DefaultUnsignalledSsrcHandler::DefaultUnsignalledSsrcHandler() 431 DefaultUnsignalledSsrcHandler::DefaultUnsignalledSsrcHandler()
431 : default_recv_ssrc_(0), default_sink_(NULL) {} 432 : default_recv_ssrc_(0), default_sink_(NULL) {}
432 433
433 UnsignalledSsrcHandler::Action DefaultUnsignalledSsrcHandler::OnUnsignalledSsrc( 434 UnsignalledSsrcHandler::Action DefaultUnsignalledSsrcHandler::OnUnsignalledSsrc(
(...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after
2607 rtx_mapping[video_codecs[i].codec.id] != 2608 rtx_mapping[video_codecs[i].codec.id] !=
2608 ulpfec_config.red_payload_type) { 2609 ulpfec_config.red_payload_type) {
2609 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; 2610 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id];
2610 } 2611 }
2611 } 2612 }
2612 2613
2613 return video_codecs; 2614 return video_codecs;
2614 } 2615 }
2615 2616
2616 } // namespace cricket 2617 } // namespace cricket
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/utility/quality_scaler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698