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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 int encode_breakout; | 132 int encode_breakout; |
133 | 133 |
134 unsigned char *active_ptr; | 134 unsigned char *active_ptr; |
135 | 135 |
136 // note that token_costs is the cost when eob node is skipped | 136 // note that token_costs is the cost when eob node is skipped |
137 vp9_coeff_count token_costs[TX_SIZE_MAX_SB][BLOCK_TYPES]; | 137 vp9_coeff_count token_costs[TX_SIZE_MAX_SB][BLOCK_TYPES]; |
138 vp9_coeff_count token_costs_noskip[TX_SIZE_MAX_SB][BLOCK_TYPES]; | 138 vp9_coeff_count token_costs_noskip[TX_SIZE_MAX_SB][BLOCK_TYPES]; |
139 | 139 |
140 int optimize; | 140 int optimize; |
141 | 141 |
| 142 // indicate if it is in the rd search loop or encoding process |
| 143 int rd_search; |
| 144 |
142 // TODO(jingning): Need to refactor the structure arrays that buffers the | 145 // TODO(jingning): Need to refactor the structure arrays that buffers the |
143 // coding mode decisions of each partition type. | 146 // coding mode decisions of each partition type. |
144 PICK_MODE_CONTEXT ab4x4_context[4][4][4]; | 147 PICK_MODE_CONTEXT ab4x4_context[4][4][4]; |
145 PICK_MODE_CONTEXT sb8x4_context[4][4][4]; | 148 PICK_MODE_CONTEXT sb8x4_context[4][4][4]; |
146 PICK_MODE_CONTEXT sb4x8_context[4][4][4]; | 149 PICK_MODE_CONTEXT sb4x8_context[4][4][4]; |
147 PICK_MODE_CONTEXT sb8x8_context[4][4][4]; | 150 PICK_MODE_CONTEXT sb8x8_context[4][4][4]; |
148 PICK_MODE_CONTEXT sb8x16_context[4][4][2]; | 151 PICK_MODE_CONTEXT sb8x16_context[4][4][2]; |
149 PICK_MODE_CONTEXT sb16x8_context[4][4][2]; | 152 PICK_MODE_CONTEXT sb16x8_context[4][4][2]; |
150 PICK_MODE_CONTEXT mb_context[4][4]; | 153 PICK_MODE_CONTEXT mb_context[4][4]; |
151 PICK_MODE_CONTEXT sb32x16_context[4][2]; | 154 PICK_MODE_CONTEXT sb32x16_context[4][2]; |
(...skipping 12 matching lines...) Expand all Loading... |
164 | 167 |
165 void (*fwd_txm4x4)(int16_t *input, int16_t *output, int pitch); | 168 void (*fwd_txm4x4)(int16_t *input, int16_t *output, int pitch); |
166 void (*fwd_txm8x4)(int16_t *input, int16_t *output, int pitch); | 169 void (*fwd_txm8x4)(int16_t *input, int16_t *output, int pitch); |
167 void (*fwd_txm8x8)(int16_t *input, int16_t *output, int pitch); | 170 void (*fwd_txm8x8)(int16_t *input, int16_t *output, int pitch); |
168 void (*fwd_txm16x16)(int16_t *input, int16_t *output, int pitch); | 171 void (*fwd_txm16x16)(int16_t *input, int16_t *output, int pitch); |
169 void (*quantize_b_4x4)(MACROBLOCK *x, int b_idx, TX_TYPE tx_type, | 172 void (*quantize_b_4x4)(MACROBLOCK *x, int b_idx, TX_TYPE tx_type, |
170 int y_blocks); | 173 int y_blocks); |
171 }; | 174 }; |
172 | 175 |
173 #endif // VP9_ENCODER_VP9_BLOCK_H_ | 176 #endif // VP9_ENCODER_VP9_BLOCK_H_ |
OLD | NEW |