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 23 matching lines...) Expand all Loading... |
34 struct buf_2d src; | 34 struct buf_2d src; |
35 | 35 |
36 // Quantizer setings | 36 // Quantizer setings |
37 int16_t *quant_fp; | 37 int16_t *quant_fp; |
38 int16_t *round_fp; | 38 int16_t *round_fp; |
39 int16_t *quant; | 39 int16_t *quant; |
40 int16_t *quant_shift; | 40 int16_t *quant_shift; |
41 int16_t *zbin; | 41 int16_t *zbin; |
42 int16_t *round; | 42 int16_t *round; |
43 | 43 |
| 44 int64_t quant_thred[2]; |
44 // Zbin Over Quant value | 45 // Zbin Over Quant value |
45 int16_t zbin_extra; | 46 int16_t zbin_extra; |
46 }; | 47 }; |
47 | 48 |
48 /* The [2] dimension is for whether we skip the EOB node (i.e. if previous | 49 /* The [2] dimension is for whether we skip the EOB node (i.e. if previous |
49 * coefficient in this block was zero) or not. */ | 50 * coefficient in this block was zero) or not. */ |
50 typedef unsigned int vp9_coeff_cost[PLANE_TYPES][REF_TYPES][COEF_BANDS][2] | 51 typedef unsigned int vp9_coeff_cost[PLANE_TYPES][REF_TYPES][COEF_BANDS][2] |
51 [COEFF_CONTEXTS][ENTROPY_TOKENS]; | 52 [COEFF_CONTEXTS][ENTROPY_TOKENS]; |
52 | 53 |
53 typedef struct macroblock MACROBLOCK; | 54 typedef struct macroblock MACROBLOCK; |
54 struct macroblock { | 55 struct macroblock { |
55 struct macroblock_plane plane[MAX_MB_PLANE]; | 56 struct macroblock_plane plane[MAX_MB_PLANE]; |
56 | 57 |
57 MACROBLOCKD e_mbd; | 58 MACROBLOCKD e_mbd; |
58 int skip_block; | 59 int skip_block; |
59 int select_tx_size; | 60 int select_tx_size; |
60 int skip_recode; | 61 int skip_recode; |
61 int skip_optimize; | 62 int skip_optimize; |
62 int q_index; | 63 int q_index; |
63 | 64 |
64 int errorperbit; | 65 int errorperbit; |
65 int sadperbit16; | 66 int sadperbit16; |
66 int sadperbit4; | 67 int sadperbit4; |
67 int rddiv; | 68 int rddiv; |
68 int rdmult; | 69 int rdmult; |
69 unsigned int mb_energy; | 70 int mb_energy; |
70 | 71 |
71 int mv_best_ref_index[MAX_REF_FRAMES]; | 72 int mv_best_ref_index[MAX_REF_FRAMES]; |
72 unsigned int max_mv_context[MAX_REF_FRAMES]; | 73 unsigned int max_mv_context[MAX_REF_FRAMES]; |
73 unsigned int source_variance; | 74 unsigned int source_variance; |
74 unsigned int pred_sse[MAX_REF_FRAMES]; | 75 unsigned int pred_sse[MAX_REF_FRAMES]; |
75 int pred_mv_sad[MAX_REF_FRAMES]; | 76 int pred_mv_sad[MAX_REF_FRAMES]; |
76 | 77 |
77 int nmvjointcost[MV_JOINTS]; | 78 int nmvjointcost[MV_JOINTS]; |
78 int nmvcosts[2][MV_VALS]; | 79 int nmvcosts[2][MV_VALS]; |
79 int *nmvcost[2]; | 80 int *nmvcost[2]; |
(...skipping 28 matching lines...) Expand all Loading... |
108 int optimize; | 109 int optimize; |
109 | 110 |
110 // indicate if it is in the rd search loop or encoding process | 111 // indicate if it is in the rd search loop or encoding process |
111 int use_lp32x32fdct; | 112 int use_lp32x32fdct; |
112 int skip_encode; | 113 int skip_encode; |
113 | 114 |
114 // use fast quantization process | 115 // use fast quantization process |
115 int quant_fp; | 116 int quant_fp; |
116 | 117 |
117 // skip forward transform and quantization | 118 // skip forward transform and quantization |
118 int skip_txfm; | 119 int skip_txfm[MAX_MB_PLANE]; |
| 120 |
| 121 int64_t bsse[MAX_MB_PLANE]; |
119 | 122 |
120 // Used to store sub partition's choices. | 123 // Used to store sub partition's choices. |
121 MV pred_mv[MAX_REF_FRAMES]; | 124 MV pred_mv[MAX_REF_FRAMES]; |
122 | 125 |
123 void (*fwd_txm4x4)(const int16_t *input, int16_t *output, int stride); | 126 void (*fwd_txm4x4)(const int16_t *input, int16_t *output, int stride); |
124 void (*itxm_add)(const int16_t *input, uint8_t *dest, int stride, int eob); | 127 void (*itxm_add)(const int16_t *input, uint8_t *dest, int stride, int eob); |
125 }; | 128 }; |
126 | 129 |
127 #ifdef __cplusplus | 130 #ifdef __cplusplus |
128 } // extern "C" | 131 } // extern "C" |
129 #endif | 132 #endif |
130 | 133 |
131 #endif // VP9_ENCODER_VP9_BLOCK_H_ | 134 #endif // VP9_ENCODER_VP9_BLOCK_H_ |
OLD | NEW |