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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 int ref_count; | 61 int ref_count; |
62 vpx_codec_frame_buffer_t raw_frame_buffer; | 62 vpx_codec_frame_buffer_t raw_frame_buffer; |
63 YV12_BUFFER_CONFIG buf; | 63 YV12_BUFFER_CONFIG buf; |
64 } RefCntBuffer; | 64 } RefCntBuffer; |
65 | 65 |
66 typedef struct VP9Common { | 66 typedef struct VP9Common { |
67 struct vpx_internal_error_info error; | 67 struct vpx_internal_error_info error; |
68 | 68 |
69 DECLARE_ALIGNED(16, int16_t, y_dequant[QINDEX_RANGE][8]); | 69 DECLARE_ALIGNED(16, int16_t, y_dequant[QINDEX_RANGE][8]); |
70 DECLARE_ALIGNED(16, int16_t, uv_dequant[QINDEX_RANGE][8]); | 70 DECLARE_ALIGNED(16, int16_t, uv_dequant[QINDEX_RANGE][8]); |
71 #if CONFIG_ALPHA | |
72 DECLARE_ALIGNED(16, int16_t, a_dequant[QINDEX_RANGE][8]); | |
73 #endif | |
74 | 71 |
75 COLOR_SPACE color_space; | 72 COLOR_SPACE color_space; |
76 | 73 |
77 int width; | 74 int width; |
78 int height; | 75 int height; |
79 int display_width; | 76 int display_width; |
80 int display_height; | 77 int display_height; |
81 int last_width; | 78 int last_width; |
82 int last_height; | 79 int last_height; |
83 | 80 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 int mb_cols, mi_cols; | 124 int mb_cols, mi_cols; |
128 int mi_stride; | 125 int mi_stride; |
129 | 126 |
130 /* profile settings */ | 127 /* profile settings */ |
131 TX_MODE tx_mode; | 128 TX_MODE tx_mode; |
132 | 129 |
133 int base_qindex; | 130 int base_qindex; |
134 int y_dc_delta_q; | 131 int y_dc_delta_q; |
135 int uv_dc_delta_q; | 132 int uv_dc_delta_q; |
136 int uv_ac_delta_q; | 133 int uv_ac_delta_q; |
137 #if CONFIG_ALPHA | |
138 int a_dc_delta_q; | |
139 int a_ac_delta_q; | |
140 #endif | |
141 | 134 |
142 /* We allocate a MODE_INFO struct for each macroblock, together with | 135 /* We allocate a MODE_INFO struct for each macroblock, together with |
143 an extra row on top and column on the left to simplify prediction. */ | 136 an extra row on top and column on the left to simplify prediction. */ |
144 | 137 |
145 int mi_idx; | 138 int mi_idx; |
146 int prev_mi_idx; | 139 int prev_mi_idx; |
147 MODE_INFO *mip_array[2]; | 140 MODE_INFO *mip_array[2]; |
148 MODE_INFO **mi_grid_base_array[2]; | 141 MODE_INFO **mi_grid_base_array[2]; |
149 | 142 |
150 MODE_INFO *mip; /* Base of allocated array */ | 143 MODE_INFO *mip; /* Base of allocated array */ |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 left = (left & bs) > 0; | 334 left = (left & bs) > 0; |
342 | 335 |
343 return (left * 2 + above) + bsl * PARTITION_PLOFFSET; | 336 return (left * 2 + above) + bsl * PARTITION_PLOFFSET; |
344 } | 337 } |
345 | 338 |
346 #ifdef __cplusplus | 339 #ifdef __cplusplus |
347 } // extern "C" | 340 } // extern "C" |
348 #endif | 341 #endif |
349 | 342 |
350 #endif // VP9_COMMON_VP9_ONYXC_INT_H_ | 343 #endif // VP9_COMMON_VP9_ONYXC_INT_H_ |
OLD | NEW |