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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc

Issue 1289933003: Full stack graphs (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removing unused define + rebase master Created 5 years, 4 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/video/full_stack.h » ('j') | webrtc/video/full_stack.h » ('J')
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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 // log2 unit: e.g., 0 = 1 tile column, 1 = 2 tile columns, 2 = 4 tile columns. 397 // log2 unit: e.g., 0 = 1 tile column, 1 = 2 tile columns, 2 = 4 tile columns.
398 // The number tile columns will be capped by the encoder based on image size 398 // The number tile columns will be capped by the encoder based on image size
399 // (minimum width of tile column is 256 pixels, maximum is 4096). 399 // (minimum width of tile column is 256 pixels, maximum is 4096).
400 vpx_codec_control(encoder_, VP9E_SET_TILE_COLUMNS, (config_->g_threads >> 1)); 400 vpx_codec_control(encoder_, VP9E_SET_TILE_COLUMNS, (config_->g_threads >> 1));
401 #if !defined(WEBRTC_ARCH_ARM) && !defined(WEBRTC_ARCH_ARM64) 401 #if !defined(WEBRTC_ARCH_ARM) && !defined(WEBRTC_ARCH_ARM64)
402 // Note denoiser is still off by default until further testing/optimization, 402 // Note denoiser is still off by default until further testing/optimization,
403 // i.e., codecSpecific.VP9.denoisingOn == 0. 403 // i.e., codecSpecific.VP9.denoisingOn == 0.
404 vpx_codec_control(encoder_, VP9E_SET_NOISE_SENSITIVITY, 404 vpx_codec_control(encoder_, VP9E_SET_NOISE_SENSITIVITY,
405 inst->codecSpecific.VP9.denoisingOn ? 1 : 0); 405 inst->codecSpecific.VP9.denoisingOn ? 1 : 0);
406 #endif 406 #endif
407 if (codec_.mode == kScreensharing) {
408 vpx_codec_control(encoder_, VP9E_SET_TUNE_CONTENT, 1);
409 }
410 vpx_codec_control(encoder_, VP8E_SET_STATIC_THRESHOLD, 1);
sprang_webrtc 2015/08/19 13:33:37 one-line comments about what these are supposed to
ivica 2015/08/20 13:25:59 Done.
407 inited_ = true; 411 inited_ = true;
408 return WEBRTC_VIDEO_CODEC_OK; 412 return WEBRTC_VIDEO_CODEC_OK;
409 } 413 }
410 414
411 uint32_t VP9EncoderImpl::MaxIntraTarget(uint32_t optimal_buffer_size) { 415 uint32_t VP9EncoderImpl::MaxIntraTarget(uint32_t optimal_buffer_size) {
412 // Set max to the optimal buffer level (normalized by target BR), 416 // Set max to the optimal buffer level (normalized by target BR),
413 // and scaled by a scale_par. 417 // and scaled by a scale_par.
414 // Max target size = scale_par * optimal_buffer_size * targetBR[Kbps]. 418 // Max target size = scale_par * optimal_buffer_size * targetBR[Kbps].
415 // This value is presented in percentage of perFrameBw: 419 // This value is presented in percentage of perFrameBw:
416 // perFrameBw = targetBR[Kbps] * 1000 / framerate. 420 // perFrameBw = targetBR[Kbps] * 1000 / framerate.
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 decoder_ = NULL; 779 decoder_ = NULL;
776 } 780 }
777 // Releases buffers from the pool. Any buffers not in use are deleted. Buffers 781 // Releases buffers from the pool. Any buffers not in use are deleted. Buffers
778 // still referenced externally are deleted once fully released, not returning 782 // still referenced externally are deleted once fully released, not returning
779 // to the pool. 783 // to the pool.
780 frame_buffer_pool_.ClearPool(); 784 frame_buffer_pool_.ClearPool();
781 inited_ = false; 785 inited_ = false;
782 return WEBRTC_VIDEO_CODEC_OK; 786 return WEBRTC_VIDEO_CODEC_OK;
783 } 787 }
784 } // namespace webrtc 788 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/full_stack.h » ('j') | webrtc/video/full_stack.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698