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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 const MODE_INFO *left_mi, int b); | 161 const MODE_INFO *left_mi, int b); |
162 | 162 |
163 PREDICTION_MODE vp9_above_block_mode(const MODE_INFO *cur_mi, | 163 PREDICTION_MODE vp9_above_block_mode(const MODE_INFO *cur_mi, |
164 const MODE_INFO *above_mi, int b); | 164 const MODE_INFO *above_mi, int b); |
165 | 165 |
166 enum mv_precision { | 166 enum mv_precision { |
167 MV_PRECISION_Q3, | 167 MV_PRECISION_Q3, |
168 MV_PRECISION_Q4 | 168 MV_PRECISION_Q4 |
169 }; | 169 }; |
170 | 170 |
171 #if CONFIG_ALPHA | |
172 enum { MAX_MB_PLANE = 4 }; | |
173 #else | |
174 enum { MAX_MB_PLANE = 3 }; | 171 enum { MAX_MB_PLANE = 3 }; |
175 #endif | |
176 | 172 |
177 struct buf_2d { | 173 struct buf_2d { |
178 uint8_t *buf; | 174 uint8_t *buf; |
179 int stride; | 175 int stride; |
180 }; | 176 }; |
181 | 177 |
182 struct macroblockd_plane { | 178 struct macroblockd_plane { |
183 int16_t *dqcoeff; | 179 int16_t *dqcoeff; |
184 PLANE_TYPE plane_type; | 180 PLANE_TYPE plane_type; |
185 int subsampling_x; | 181 int subsampling_x; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 312 |
317 void vp9_set_contexts(const MACROBLOCKD *xd, struct macroblockd_plane *pd, | 313 void vp9_set_contexts(const MACROBLOCKD *xd, struct macroblockd_plane *pd, |
318 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, | 314 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, |
319 int aoff, int loff); | 315 int aoff, int loff); |
320 | 316 |
321 #ifdef __cplusplus | 317 #ifdef __cplusplus |
322 } // extern "C" | 318 } // extern "C" |
323 #endif | 319 #endif |
324 | 320 |
325 #endif // VP9_COMMON_VP9_BLOCKD_H_ | 321 #endif // VP9_COMMON_VP9_BLOCKD_H_ |
OLD | NEW |