| 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 #ifndef VP9_ENCODER_VP9_QUANTIZE_H_ | 11 #ifndef VP9_ENCODER_VP9_QUANTIZE_H_ |
| 12 #define VP9_ENCODER_VP9_QUANTIZE_H_ | 12 #define VP9_ENCODER_VP9_QUANTIZE_H_ |
| 13 | 13 |
| 14 #include "vp9/encoder/vp9_block.h" | 14 #include "vp9/encoder/vp9_block.h" |
| 15 | 15 |
| 16 #define prototype_quantize_block(sym) \ | 16 void vp9_regular_quantize_b_4x4(MACROBLOCK *x, int y_blocks, int b_idx, |
| 17 void (sym)(MACROBLOCK *mb, int b_idx) | 17 const int16_t *scan, const int16_t *iscan); |
| 18 | 18 |
| 19 #define prototype_quantize_block_pair(sym) \ | |
| 20 void (sym)(MACROBLOCK *mb, int b_idx1, int b_idx2) | |
| 21 | |
| 22 #define prototype_quantize_mb(sym) \ | |
| 23 void (sym)(MACROBLOCK *x) | |
| 24 | |
| 25 void vp9_regular_quantize_b_4x4_pair(MACROBLOCK *mb, int b_idx1, int b_idx2, | |
| 26 int y_blocks); | |
| 27 void vp9_regular_quantize_b_4x4(MACROBLOCK *mb, int b_idx, TX_TYPE tx_type, | |
| 28 int y_blocks); | |
| 29 void vp9_regular_quantize_b_8x8(MACROBLOCK *mb, int b_idx, TX_TYPE tx_type, | |
| 30 int y_blocks); | |
| 31 struct VP9_COMP; | 19 struct VP9_COMP; |
| 32 | 20 |
| 33 extern void vp9_set_quantizer(struct VP9_COMP *cpi, int Q); | 21 void vp9_set_quantizer(struct VP9_COMP *cpi, int q); |
| 34 | 22 |
| 35 extern void vp9_frame_init_quantizer(struct VP9_COMP *cpi); | 23 void vp9_frame_init_quantizer(struct VP9_COMP *cpi); |
| 36 | 24 |
| 37 extern void vp9_update_zbin_extra(struct VP9_COMP *cpi, MACROBLOCK *x); | 25 void vp9_update_zbin_extra(struct VP9_COMP *cpi, MACROBLOCK *x); |
| 38 | 26 |
| 39 extern void vp9_mb_init_quantizer(struct VP9_COMP *cpi, MACROBLOCK *x); | 27 void vp9_mb_init_quantizer(struct VP9_COMP *cpi, MACROBLOCK *x); |
| 40 | 28 |
| 41 extern void vp9_init_quantizer(struct VP9_COMP *cpi); | 29 void vp9_init_quantizer(struct VP9_COMP *cpi); |
| 42 | 30 |
| 43 #endif // VP9_ENCODER_VP9_QUANTIZE_H_ | 31 #endif // VP9_ENCODER_VP9_QUANTIZE_H_ |
| OLD | NEW |