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

Side by Side Diff: webrtc/modules/video_coding/codec_database.cc

Issue 2532053002: Turn off error resilience for VP9 if no spatial or temporal layers are configured and NACK is enabl… (Closed)
Patch Set: Created 4 years 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/common_types.h ('k') | webrtc/modules/video_coding/codecs/vp9/vp9_impl.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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 28 matching lines...) Expand all
39 vp8_settings.frameDroppingOn = true; 39 vp8_settings.frameDroppingOn = true;
40 vp8_settings.keyFrameInterval = 3000; 40 vp8_settings.keyFrameInterval = 3000;
41 41
42 return vp8_settings; 42 return vp8_settings;
43 } 43 }
44 44
45 VideoCodecVP9 VideoEncoder::GetDefaultVp9Settings() { 45 VideoCodecVP9 VideoEncoder::GetDefaultVp9Settings() {
46 VideoCodecVP9 vp9_settings; 46 VideoCodecVP9 vp9_settings;
47 memset(&vp9_settings, 0, sizeof(vp9_settings)); 47 memset(&vp9_settings, 0, sizeof(vp9_settings));
48 48
49 vp9_settings.resilience = 1; 49 vp9_settings.resilienceOn = true;
50 vp9_settings.numberOfTemporalLayers = 1; 50 vp9_settings.numberOfTemporalLayers = 1;
51 vp9_settings.denoisingOn = false; 51 vp9_settings.denoisingOn = false;
52 vp9_settings.frameDroppingOn = true; 52 vp9_settings.frameDroppingOn = true;
53 vp9_settings.keyFrameInterval = 3000; 53 vp9_settings.keyFrameInterval = 3000;
54 vp9_settings.adaptiveQpMode = true; 54 vp9_settings.adaptiveQpMode = true;
55 vp9_settings.automaticResizeOn = true; 55 vp9_settings.automaticResizeOn = true;
56 vp9_settings.numberOfSpatialLayers = 1; 56 vp9_settings.numberOfSpatialLayers = 1;
57 vp9_settings.flexibleMode = false; 57 vp9_settings.flexibleMode = false;
58 return vp9_settings; 58 return vp9_settings;
59 } 59 }
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 601
602 const VCMExtDecoderMapItem* VCMCodecDataBase::FindExternalDecoderItem( 602 const VCMExtDecoderMapItem* VCMCodecDataBase::FindExternalDecoderItem(
603 uint8_t payload_type) const { 603 uint8_t payload_type) const {
604 ExternalDecoderMap::const_iterator it = dec_external_map_.find(payload_type); 604 ExternalDecoderMap::const_iterator it = dec_external_map_.find(payload_type);
605 if (it != dec_external_map_.end()) { 605 if (it != dec_external_map_.end()) {
606 return (*it).second; 606 return (*it).second;
607 } 607 }
608 return nullptr; 608 return nullptr;
609 } 609 }
610 } // namespace webrtc 610 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_types.h ('k') | webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698