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

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

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 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/vp8/encoder/ppc/rdopt_altivec.asm ('k') | source/libvpx/vp8/encoder/ratectrl.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
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 short *coeff_ptr = b->coeff; 58 short *coeff_ptr = b->coeff;
59 short *zbin_ptr = b->zbin; 59 short *zbin_ptr = b->zbin;
60 short *round_ptr = b->round; 60 short *round_ptr = b->round;
61 short *quant_ptr = b->quant; 61 short *quant_ptr = b->quant;
62 short *quant_shift_ptr = b->quant_shift; 62 short *quant_shift_ptr = b->quant_shift;
63 short *qcoeff_ptr = d->qcoeff; 63 short *qcoeff_ptr = d->qcoeff;
64 short *dqcoeff_ptr = d->dqcoeff; 64 short *dqcoeff_ptr = d->dqcoeff;
65 short *dequant_ptr = d->dequant; 65 short *dequant_ptr = d->dequant;
66 short zbin_oq_value = b->zbin_extra; 66 short zbin_oq_value = b->zbin_extra;
67 67
68 vpx_memset(qcoeff_ptr, 0, 32); 68 memset(qcoeff_ptr, 0, 32);
69 vpx_memset(dqcoeff_ptr, 0, 32); 69 memset(dqcoeff_ptr, 0, 32);
70 70
71 eob = -1; 71 eob = -1;
72 72
73 for (i = 0; i < 16; i++) 73 for (i = 0; i < 16; i++)
74 { 74 {
75 rc = vp8_default_zig_zag1d[i]; 75 rc = vp8_default_zig_zag1d[i];
76 z = coeff_ptr[rc]; 76 z = coeff_ptr[rc];
77 77
78 zbin = zbin_ptr[rc] + *zbin_boost_ptr + zbin_oq_value; 78 zbin = zbin_ptr[rc] + *zbin_boost_ptr + zbin_oq_value;
79 79
(...skipping 494 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/ppc/rdopt_altivec.asm ('k') | source/libvpx/vp8/encoder/ratectrl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698