| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 int64_t intra_error; | 43 int64_t intra_error; |
| 44 int best_mode_index; | 44 int best_mode_index; |
| 45 int rddiv; | 45 int rddiv; |
| 46 int rdmult; | 46 int rdmult; |
| 47 int hybrid_pred_diff; | 47 int hybrid_pred_diff; |
| 48 int comp_pred_diff; | 48 int comp_pred_diff; |
| 49 int single_pred_diff; | 49 int single_pred_diff; |
| 50 int64_t tx_rd_diff[TX_MODES]; | 50 int64_t tx_rd_diff[TX_MODES]; |
| 51 int64_t best_filter_diff[SWITCHABLE_FILTERS + 1]; | 51 int64_t best_filter_diff[SWITCHABLE_FILTERS + 1]; |
| 52 | 52 |
| 53 // motion vector cache for adaptive motion search control in partition |
| 54 // search loop |
| 55 int_mv pred_mv[MAX_REF_FRAMES]; |
| 56 |
| 53 // Bit flag for each mode whether it has high error in comparison to others. | 57 // Bit flag for each mode whether it has high error in comparison to others. |
| 54 unsigned int modes_with_high_error; | 58 unsigned int modes_with_high_error; |
| 55 | 59 |
| 56 // Bit flag for each ref frame whether it has high error compared to others. | 60 // Bit flag for each ref frame whether it has high error compared to others. |
| 57 unsigned int frames_with_high_error; | 61 unsigned int frames_with_high_error; |
| 58 } PICK_MODE_CONTEXT; | 62 } PICK_MODE_CONTEXT; |
| 59 | 63 |
| 60 struct macroblock_plane { | 64 struct macroblock_plane { |
| 61 DECLARE_ALIGNED(16, int16_t, src_diff[64*64]); | 65 DECLARE_ALIGNED(16, int16_t, src_diff[64*64]); |
| 62 DECLARE_ALIGNED(16, int16_t, coeff[64*64]); | 66 DECLARE_ALIGNED(16, int16_t, coeff[64*64]); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 vp9_coeff_cost token_costs[TX_SIZES]; | 146 vp9_coeff_cost token_costs[TX_SIZES]; |
| 143 | 147 |
| 144 int optimize; | 148 int optimize; |
| 145 | 149 |
| 146 // indicate if it is in the rd search loop or encoding process | 150 // indicate if it is in the rd search loop or encoding process |
| 147 int use_lp32x32fdct; | 151 int use_lp32x32fdct; |
| 148 int skip_encode; | 152 int skip_encode; |
| 149 | 153 |
| 150 // Used to store sub partition's choices. | 154 // Used to store sub partition's choices. |
| 151 int fast_ms; | 155 int fast_ms; |
| 152 int_mv pred_mv; | 156 int_mv pred_mv[MAX_REF_FRAMES]; |
| 153 int subblock_ref; | 157 int subblock_ref; |
| 154 | 158 |
| 155 // TODO(jingning): Need to refactor the structure arrays that buffers the | 159 // TODO(jingning): Need to refactor the structure arrays that buffers the |
| 156 // coding mode decisions of each partition type. | 160 // coding mode decisions of each partition type. |
| 157 PICK_MODE_CONTEXT ab4x4_context[4][4][4]; | 161 PICK_MODE_CONTEXT ab4x4_context[4][4][4]; |
| 158 PICK_MODE_CONTEXT sb8x4_context[4][4][4]; | 162 PICK_MODE_CONTEXT sb8x4_context[4][4][4]; |
| 159 PICK_MODE_CONTEXT sb4x8_context[4][4][4]; | 163 PICK_MODE_CONTEXT sb4x8_context[4][4][4]; |
| 160 PICK_MODE_CONTEXT sb8x8_context[4][4][4]; | 164 PICK_MODE_CONTEXT sb8x8_context[4][4][4]; |
| 161 PICK_MODE_CONTEXT sb8x16_context[4][4][2]; | 165 PICK_MODE_CONTEXT sb8x16_context[4][4][2]; |
| 162 PICK_MODE_CONTEXT sb16x8_context[4][4][2]; | 166 PICK_MODE_CONTEXT sb16x8_context[4][4][2]; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 177 | 181 |
| 178 void (*fwd_txm4x4)(int16_t *input, int16_t *output, int pitch); | 182 void (*fwd_txm4x4)(int16_t *input, int16_t *output, int pitch); |
| 179 void (*fwd_txm8x4)(int16_t *input, int16_t *output, int pitch); | 183 void (*fwd_txm8x4)(int16_t *input, int16_t *output, int pitch); |
| 180 void (*fwd_txm8x8)(int16_t *input, int16_t *output, int pitch); | 184 void (*fwd_txm8x8)(int16_t *input, int16_t *output, int pitch); |
| 181 void (*fwd_txm16x16)(int16_t *input, int16_t *output, int pitch); | 185 void (*fwd_txm16x16)(int16_t *input, int16_t *output, int pitch); |
| 182 void (*quantize_b_4x4)(MACROBLOCK *x, int b_idx, TX_TYPE tx_type, | 186 void (*quantize_b_4x4)(MACROBLOCK *x, int b_idx, TX_TYPE tx_type, |
| 183 int y_blocks); | 187 int y_blocks); |
| 184 }; | 188 }; |
| 185 | 189 |
| 186 #endif // VP9_ENCODER_VP9_BLOCK_H_ | 190 #endif // VP9_ENCODER_VP9_BLOCK_H_ |
| OLD | NEW |