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

Side by Side Diff: source/libvpx/vp8/encoder/vp8_quantize.c

Issue 1302353004: 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
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 11
12 #include <math.h> 12 #include <math.h>
13 #include "vpx_mem/vpx_mem.h" 13 #include "vpx_mem/vpx_mem.h"
14 14
15 #include "onyx_int.h" 15 #include "onyx_int.h"
16 #include "quantize.h" 16 #include "vp8/encoder/quantize.h"
17 #include "vp8/common/quant_common.h" 17 #include "vp8/common/quant_common.h"
18 18
19 void vp8_fast_quantize_b_c(BLOCK *b, BLOCKD *d) 19 void vp8_fast_quantize_b_c(BLOCK *b, BLOCKD *d)
20 { 20 {
21 int i, rc, eob; 21 int i, rc, eob;
22 int x, y, z, sz; 22 int x, y, z, sz;
23 short *coeff_ptr = b->coeff; 23 short *coeff_ptr = b->coeff;
24 short *round_ptr = b->round; 24 short *round_ptr = b->round;
25 short *quant_ptr = b->quant_fast; 25 short *quant_ptr = b->quant_fast;
26 short *qcoeff_ptr = d->qcoeff; 26 short *qcoeff_ptr = d->qcoeff;
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 mbd->segment_feature_data[MB_LVL_ALT_Q][0] = cpi->segment_feature_data[MB_LV L_ALT_Q][0]; 574 mbd->segment_feature_data[MB_LVL_ALT_Q][0] = cpi->segment_feature_data[MB_LV L_ALT_Q][0];
575 mbd->segment_feature_data[MB_LVL_ALT_Q][1] = cpi->segment_feature_data[MB_LV L_ALT_Q][1]; 575 mbd->segment_feature_data[MB_LVL_ALT_Q][1] = cpi->segment_feature_data[MB_LV L_ALT_Q][1];
576 mbd->segment_feature_data[MB_LVL_ALT_Q][2] = cpi->segment_feature_data[MB_LV L_ALT_Q][2]; 576 mbd->segment_feature_data[MB_LVL_ALT_Q][2] = cpi->segment_feature_data[MB_LV L_ALT_Q][2];
577 mbd->segment_feature_data[MB_LVL_ALT_Q][3] = cpi->segment_feature_data[MB_LV L_ALT_Q][3]; 577 mbd->segment_feature_data[MB_LVL_ALT_Q][3] = cpi->segment_feature_data[MB_LV L_ALT_Q][3];
578 578
579 /* quantizer has to be reinitialized for any delta_q changes */ 579 /* quantizer has to be reinitialized for any delta_q changes */
580 if(update) 580 if(update)
581 vp8cx_init_quantizer(cpi); 581 vp8cx_init_quantizer(cpi);
582 582
583 } 583 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/treewriter.h ('k') | source/libvpx/vp8/encoder/x86/ssim_opt_x86_64.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698