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 10 matching lines...) Expand all Loading... |
21 #endif | 21 #endif |
22 | 22 |
23 typedef struct { | 23 typedef struct { |
24 unsigned int sse; | 24 unsigned int sse; |
25 int sum; | 25 int sum; |
26 unsigned int var; | 26 unsigned int var; |
27 } diff; | 27 } diff; |
28 | 28 |
29 struct macroblock_plane { | 29 struct macroblock_plane { |
30 DECLARE_ALIGNED(16, int16_t, src_diff[64 * 64]); | 30 DECLARE_ALIGNED(16, int16_t, src_diff[64 * 64]); |
31 int16_t *qcoeff; | 31 tran_low_t *qcoeff; |
32 int16_t *coeff; | 32 tran_low_t *coeff; |
33 uint16_t *eobs; | 33 uint16_t *eobs; |
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; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 int quant_fp; | 112 int quant_fp; |
113 | 113 |
114 // skip forward transform and quantization | 114 // skip forward transform and quantization |
115 uint8_t skip_txfm[MAX_MB_PLANE << 2]; | 115 uint8_t skip_txfm[MAX_MB_PLANE << 2]; |
116 | 116 |
117 int64_t bsse[MAX_MB_PLANE << 2]; | 117 int64_t bsse[MAX_MB_PLANE << 2]; |
118 | 118 |
119 // Used to store sub partition's choices. | 119 // Used to store sub partition's choices. |
120 MV pred_mv[MAX_REF_FRAMES]; | 120 MV pred_mv[MAX_REF_FRAMES]; |
121 | 121 |
122 void (*fwd_txm4x4)(const int16_t *input, int16_t *output, int stride); | 122 void (*fwd_txm4x4)(const int16_t *input, tran_low_t *output, int stride); |
123 void (*itxm_add)(const int16_t *input, uint8_t *dest, int stride, int eob); | 123 void (*itxm_add)(const tran_low_t *input, uint8_t *dest, int stride, int eob); |
| 124 #if CONFIG_VP9_HIGHBITDEPTH |
| 125 void (*high_itxm_add)(const tran_low_t *input, uint8_t *dest, int stride, |
| 126 int eob, int bd); |
| 127 #endif |
124 }; | 128 }; |
125 | 129 |
126 #ifdef __cplusplus | 130 #ifdef __cplusplus |
127 } // extern "C" | 131 } // extern "C" |
128 #endif | 132 #endif |
129 | 133 |
130 #endif // VP9_ENCODER_VP9_BLOCK_H_ | 134 #endif // VP9_ENCODER_VP9_BLOCK_H_ |
OLD | NEW |