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

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

Issue 1217053002: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 5 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_pickmode.c ('k') | source/libvpx/vp9/encoder/vp9_ratectrl.h » ('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
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 x->plane[i].round_fp = quants->uv_round_fp[qindex]; 671 x->plane[i].round_fp = quants->uv_round_fp[qindex];
672 x->plane[i].quant_shift = quants->uv_quant_shift[qindex]; 672 x->plane[i].quant_shift = quants->uv_quant_shift[qindex];
673 x->plane[i].zbin = quants->uv_zbin[qindex]; 673 x->plane[i].zbin = quants->uv_zbin[qindex];
674 x->plane[i].round = quants->uv_round[qindex]; 674 x->plane[i].round = quants->uv_round[qindex];
675 xd->plane[i].dequant = cpi->uv_dequant[qindex]; 675 xd->plane[i].dequant = cpi->uv_dequant[qindex];
676 676
677 x->plane[i].quant_thred[0] = x->plane[i].zbin[0] * x->plane[i].zbin[0]; 677 x->plane[i].quant_thred[0] = x->plane[i].zbin[0] * x->plane[i].zbin[0];
678 x->plane[i].quant_thred[1] = x->plane[i].zbin[1] * x->plane[i].zbin[1]; 678 x->plane[i].quant_thred[1] = x->plane[i].zbin[1] * x->plane[i].zbin[1];
679 } 679 }
680 680
681 x->skip_block = vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP); 681 x->skip_block = segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP);
682 x->q_index = qindex; 682 x->q_index = qindex;
683 683
684 x->errorperbit = rdmult >> 6; 684 x->errorperbit = rdmult >> 6;
685 x->errorperbit += (x->errorperbit == 0); 685 x->errorperbit += (x->errorperbit == 0);
686 686
687 vp9_initialize_me_consts(cpi, x, x->q_index); 687 vp9_initialize_me_consts(cpi, x, x->q_index);
688 } 688 }
689 689
690 void vp9_frame_init_quantizer(VP9_COMP *cpi) { 690 void vp9_frame_init_quantizer(VP9_COMP *cpi) {
691 vp9_init_plane_quantizers(cpi, &cpi->td.mb); 691 vp9_init_plane_quantizers(cpi, &cpi->td.mb);
(...skipping 27 matching lines...) Expand all
719 719
720 int vp9_qindex_to_quantizer(int qindex) { 720 int vp9_qindex_to_quantizer(int qindex) {
721 int quantizer; 721 int quantizer;
722 722
723 for (quantizer = 0; quantizer < 64; ++quantizer) 723 for (quantizer = 0; quantizer < 64; ++quantizer)
724 if (quantizer_to_qindex[quantizer] >= qindex) 724 if (quantizer_to_qindex[quantizer] >= qindex)
725 return quantizer; 725 return quantizer;
726 726
727 return 63; 727 return 63;
728 } 728 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_pickmode.c ('k') | source/libvpx/vp9/encoder/vp9_ratectrl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698