| 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 |
| 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 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 |