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

Side by Side Diff: source/libvpx/vp9/encoder/vp9_speed_features.c

Issue 1339513003: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 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 | « source/libvpx/vp9/encoder/vp9_rdopt.c ('k') | source/libvpx/vp9/encoder/vp9_svc_layercontext.c » ('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) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM 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
11 #include <limits.h> 11 #include <limits.h>
12 12
13 #include "vp9/encoder/vp9_encoder.h" 13 #include "vp9/encoder/vp9_encoder.h"
14 #include "vp9/encoder/vp9_speed_features.h" 14 #include "vp9/encoder/vp9_speed_features.h"
15 #include "vp9/encoder/vp9_rdopt.h" 15 #include "vp9/encoder/vp9_rdopt.h"
16 #include "vpx_dsp/vpx_dsp_common.h"
16 17
17 18
18 // Intra only frames, golden frames (except alt ref overlays) and 19 // Intra only frames, golden frames (except alt ref overlays) and
19 // alt ref frames tend to be coded at a higher than ambient quality 20 // alt ref frames tend to be coded at a higher than ambient quality
20 static int frame_is_boosted(const VP9_COMP *cpi) { 21 static int frame_is_boosted(const VP9_COMP *cpi) {
21 return frame_is_kf_gf_arf(cpi) || vp9_is_upper_layer_key_frame(cpi); 22 return frame_is_kf_gf_arf(cpi) || vp9_is_upper_layer_key_frame(cpi);
22 } 23 }
23 24
24 // Sets a partition size down to which the auto partition code will always 25 // Sets a partition size down to which the auto partition code will always
25 // search (can go lower), based on the image dimensions. The logic here 26 // search (can go lower), based on the image dimensions. The logic here
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 549
549 x->optimize = sf->optimize_coefficients == 1 && oxcf->pass != 1; 550 x->optimize = sf->optimize_coefficients == 1 && oxcf->pass != 1;
550 551
551 x->min_partition_size = sf->default_min_partition_size; 552 x->min_partition_size = sf->default_min_partition_size;
552 x->max_partition_size = sf->default_max_partition_size; 553 x->max_partition_size = sf->default_max_partition_size;
553 554
554 if (!cpi->oxcf.frame_periodic_boost) { 555 if (!cpi->oxcf.frame_periodic_boost) {
555 sf->max_delta_qindex = 0; 556 sf->max_delta_qindex = 0;
556 } 557 }
557 } 558 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_rdopt.c ('k') | source/libvpx/vp9/encoder/vp9_svc_layercontext.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698