OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 * |
| 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 |
| 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ |
| 10 |
| 11 #ifndef VP9_ENCODER_VP9_QUANTIZE_H_ |
| 12 #define VP9_ENCODER_VP9_QUANTIZE_H_ |
| 13 |
| 14 #include "vp9/encoder/vp9_block.h" |
| 15 |
| 16 #define prototype_quantize_block(sym) \ |
| 17 void (sym)(BLOCK *b,BLOCKD *d) |
| 18 |
| 19 #define prototype_quantize_block_pair(sym) \ |
| 20 void (sym)(BLOCK *b1, BLOCK *b2, BLOCKD *d1, BLOCKD *d2) |
| 21 |
| 22 #define prototype_quantize_mb(sym) \ |
| 23 void (sym)(MACROBLOCK *x) |
| 24 |
| 25 #if ARCH_X86 || ARCH_X86_64 |
| 26 #include "x86/vp9_quantize_x86.h" |
| 27 #endif |
| 28 |
| 29 #define prototype_quantize_block_type(sym) \ |
| 30 void (sym)(BLOCK *b, BLOCKD *d, TX_TYPE type) |
| 31 extern prototype_quantize_block_type(vp9_ht_quantize_b_4x4); |
| 32 |
| 33 #ifndef vp9_quantize_quantb_4x4 |
| 34 #define vp9_quantize_quantb_4x4 vp9_regular_quantize_b_4x4 |
| 35 #endif |
| 36 extern prototype_quantize_block(vp9_quantize_quantb_4x4); |
| 37 |
| 38 #ifndef vp9_quantize_quantb_4x4_pair |
| 39 #define vp9_quantize_quantb_4x4_pair vp9_regular_quantize_b_4x4_pair |
| 40 #endif |
| 41 extern prototype_quantize_block_pair(vp9_quantize_quantb_4x4_pair); |
| 42 |
| 43 #ifndef vp9_quantize_quantb_8x8 |
| 44 #define vp9_quantize_quantb_8x8 vp9_regular_quantize_b_8x8 |
| 45 #endif |
| 46 extern prototype_quantize_block(vp9_quantize_quantb_8x8); |
| 47 |
| 48 #ifndef vp9_quantize_quantb_16x16 |
| 49 #define vp9_quantize_quantb_16x16 vp9_regular_quantize_b_16x16 |
| 50 #endif |
| 51 extern prototype_quantize_block(vp9_quantize_quantb_16x16); |
| 52 |
| 53 #ifndef vp9_quantize_quantb_2x2 |
| 54 #define vp9_quantize_quantb_2x2 vp9_regular_quantize_b_2x2 |
| 55 #endif |
| 56 extern prototype_quantize_block(vp9_quantize_quantb_2x2); |
| 57 |
| 58 #ifndef vp9_quantize_mb_4x4 |
| 59 #define vp9_quantize_mb_4x4 vp9_quantize_mb_4x4_c |
| 60 #endif |
| 61 extern prototype_quantize_mb(vp9_quantize_mb_4x4); |
| 62 void vp9_quantize_mb_8x8(MACROBLOCK *x); |
| 63 |
| 64 #ifndef vp9_quantize_mbuv_4x4 |
| 65 #define vp9_quantize_mbuv_4x4 vp9_quantize_mbuv_4x4_c |
| 66 #endif |
| 67 extern prototype_quantize_mb(vp9_quantize_mbuv_4x4); |
| 68 |
| 69 #ifndef vp9_quantize_mby_4x4 |
| 70 #define vp9_quantize_mby_4x4 vp9_quantize_mby_4x4_c |
| 71 #endif |
| 72 extern prototype_quantize_mb(vp9_quantize_mby_4x4); |
| 73 |
| 74 extern prototype_quantize_mb(vp9_quantize_mby_8x8); |
| 75 extern prototype_quantize_mb(vp9_quantize_mbuv_8x8); |
| 76 |
| 77 void vp9_quantize_mb_16x16(MACROBLOCK *x); |
| 78 extern prototype_quantize_block(vp9_quantize_quantb_16x16); |
| 79 extern prototype_quantize_mb(vp9_quantize_mby_16x16); |
| 80 |
| 81 struct VP9_COMP; |
| 82 |
| 83 extern void vp9_set_quantizer(struct VP9_COMP *cpi, int Q); |
| 84 |
| 85 extern void vp9_frame_init_quantizer(struct VP9_COMP *cpi); |
| 86 |
| 87 extern void vp9_update_zbin_extra(struct VP9_COMP *cpi, MACROBLOCK *x); |
| 88 |
| 89 extern void vp9_mb_init_quantizer(struct VP9_COMP *cpi, MACROBLOCK *x); |
| 90 |
| 91 extern void vp9_init_quantizer(struct VP9_COMP *cpi); |
| 92 |
| 93 #endif |
OLD | NEW |