| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |