| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 int16_t *dqcoeff_pbuf[MAX_MB_PLANE][3]; | 42 int16_t *dqcoeff_pbuf[MAX_MB_PLANE][3]; |
| 43 uint16_t *eobs_pbuf[MAX_MB_PLANE][3]; | 43 uint16_t *eobs_pbuf[MAX_MB_PLANE][3]; |
| 44 | 44 |
| 45 int is_coded; | 45 int is_coded; |
| 46 int num_4x4_blk; | 46 int num_4x4_blk; |
| 47 int skip; | 47 int skip; |
| 48 int_mv best_ref_mv[2]; | 48 int_mv best_ref_mv[2]; |
| 49 int_mv ref_mvs[MAX_REF_FRAMES][MAX_MV_REF_CANDIDATES]; | 49 int_mv ref_mvs[MAX_REF_FRAMES][MAX_MV_REF_CANDIDATES]; |
| 50 int rate; | 50 int rate; |
| 51 int distortion; | 51 int distortion; |
| 52 int64_t intra_error; | |
| 53 int best_mode_index; | 52 int best_mode_index; |
| 54 int rddiv; | 53 int rddiv; |
| 55 int rdmult; | 54 int rdmult; |
| 56 int hybrid_pred_diff; | 55 int hybrid_pred_diff; |
| 57 int comp_pred_diff; | 56 int comp_pred_diff; |
| 58 int single_pred_diff; | 57 int single_pred_diff; |
| 59 int64_t tx_rd_diff[TX_MODES]; | 58 int64_t tx_rd_diff[TX_MODES]; |
| 60 int64_t best_filter_diff[SWITCHABLE_FILTER_CONTEXTS]; | 59 int64_t best_filter_diff[SWITCHABLE_FILTER_CONTEXTS]; |
| 61 | 60 |
| 62 // motion vector cache for adaptive motion search control in partition | 61 // motion vector cache for adaptive motion search control in partition |
| 63 // search loop | 62 // search loop |
| 64 int_mv pred_mv[MAX_REF_FRAMES]; | 63 int_mv pred_mv[MAX_REF_FRAMES]; |
| 65 INTERP_FILTER pred_interp_filter; | 64 INTERP_FILTER pred_interp_filter; |
| 66 | |
| 67 // Bit flag for each mode whether it has high error in comparison to others. | |
| 68 unsigned int modes_with_high_error; | |
| 69 } PICK_MODE_CONTEXT; | 65 } PICK_MODE_CONTEXT; |
| 70 | 66 |
| 71 struct macroblock_plane { | 67 struct macroblock_plane { |
| 72 DECLARE_ALIGNED(16, int16_t, src_diff[64 * 64]); | 68 DECLARE_ALIGNED(16, int16_t, src_diff[64 * 64]); |
| 73 int16_t *qcoeff; | 69 int16_t *qcoeff; |
| 74 int16_t *coeff; | 70 int16_t *coeff; |
| 75 uint16_t *eobs; | 71 uint16_t *eobs; |
| 76 struct buf_2d src; | 72 struct buf_2d src; |
| 77 | 73 |
| 78 // Quantizer setings | 74 // Quantizer setings |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 assert(0); | 231 assert(0); |
| 236 return NULL; | 232 return NULL; |
| 237 } | 233 } |
| 238 } | 234 } |
| 239 | 235 |
| 240 #ifdef __cplusplus | 236 #ifdef __cplusplus |
| 241 } // extern "C" | 237 } // extern "C" |
| 242 #endif | 238 #endif |
| 243 | 239 |
| 244 #endif // VP9_ENCODER_VP9_BLOCK_H_ | 240 #endif // VP9_ENCODER_VP9_BLOCK_H_ |
| OLD | NEW |