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 |
11 | |
12 #ifndef VP9_DECODER_VP9_ONYXD_INT_H_ | 11 #ifndef VP9_DECODER_VP9_ONYXD_INT_H_ |
13 #define VP9_DECODER_VP9_ONYXD_INT_H_ | 12 #define VP9_DECODER_VP9_ONYXD_INT_H_ |
14 #include "vpx_ports/config.h" | 13 #include "./vpx_config.h" |
15 #include "vp9/common/vp9_onyxd.h" | 14 #include "vp9/decoder/vp9_onyxd.h" |
16 #include "vp9/decoder/vp9_treereader.h" | 15 #include "vp9/decoder/vp9_treereader.h" |
17 #include "vp9/common/vp9_onyxc_int.h" | 16 #include "vp9/common/vp9_onyxc_int.h" |
18 #include "vp9/decoder/vp9_dequantize.h" | 17 #include "vp9/decoder/vp9_dequantize.h" |
19 | 18 |
20 // #define DEC_DEBUG | 19 // #define DEC_DEBUG |
21 | 20 |
22 typedef struct { | 21 typedef struct { |
23 int ithread; | 22 int ithread; |
24 void *ptr1; | 23 void *ptr1; |
25 void *ptr2; | 24 void *ptr2; |
26 } DECODETHREAD_DATA; | 25 } DECODETHREAD_DATA; |
27 | 26 |
28 typedef struct { | 27 typedef struct { |
29 MACROBLOCKD mbd; | 28 MACROBLOCKD mbd; |
30 int mb_row; | 29 int mb_row; |
31 int current_mb_col; | 30 int current_mb_col; |
32 short *coef_ptr; | 31 short *coef_ptr; |
33 } MB_ROW_DEC; | 32 } MB_ROW_DEC; |
34 | 33 |
35 typedef struct { | 34 typedef struct { |
36 int const *scan; | 35 int const *scan; |
37 int const *scan_8x8; | 36 int const *scan_8x8; |
38 UINT8 const *ptr_block2leftabove; | 37 uint8_t const *ptr_block2leftabove; |
39 vp9_tree_index const *vp9_coef_tree_ptr; | 38 vp9_tree_index const *vp9_coef_tree_ptr; |
40 unsigned char *norm_ptr; | 39 unsigned char *norm_ptr; |
41 UINT8 *ptr_coef_bands_x; | 40 uint8_t *ptr_coef_bands_x; |
42 UINT8 *ptr_coef_bands_x_8x8; | 41 uint8_t *ptr_coef_bands_x_8x8; |
43 | 42 |
44 ENTROPY_CONTEXT_PLANES *A; | 43 ENTROPY_CONTEXT_PLANES *A; |
45 ENTROPY_CONTEXT_PLANES *L; | 44 ENTROPY_CONTEXT_PLANES *L; |
46 | 45 |
47 INT16 *qcoeff_start_ptr; | 46 int16_t *qcoeff_start_ptr; |
48 | 47 |
49 vp9_prob const *coef_probs[BLOCK_TYPES]; | 48 vp9_prob const *coef_probs_4x4[BLOCK_TYPES_4X4]; |
50 vp9_prob const *coef_probs_8x8[BLOCK_TYPES_8X8]; | 49 vp9_prob const *coef_probs_8x8[BLOCK_TYPES_8X8]; |
51 vp9_prob const *coef_probs_16X16[BLOCK_TYPES_16X16]; | 50 vp9_prob const *coef_probs_16X16[BLOCK_TYPES_16X16]; |
52 | 51 |
53 UINT8 eob[25]; | 52 uint8_t eob[25]; |
54 | 53 |
55 } DETOK; | 54 } DETOK; |
56 | 55 |
57 typedef struct VP9Decompressor { | 56 typedef struct VP9Decompressor { |
58 DECLARE_ALIGNED(16, MACROBLOCKD, mb); | 57 DECLARE_ALIGNED(16, MACROBLOCKD, mb); |
59 | 58 |
60 DECLARE_ALIGNED(16, VP9_COMMON, common); | 59 DECLARE_ALIGNED(16, VP9_COMMON, common); |
61 | 60 |
62 VP9D_CONFIG oxcf; | 61 VP9D_CONFIG oxcf; |
63 | 62 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } while(0) | 95 } while(0) |
97 #else | 96 #else |
98 #define CHECK_MEM_ERROR(lval,expr) do {\ | 97 #define CHECK_MEM_ERROR(lval,expr) do {\ |
99 lval = (expr); \ | 98 lval = (expr); \ |
100 if(!lval) \ | 99 if(!lval) \ |
101 vpx_internal_error(&pbi->common.error, VPX_CODEC_MEM_ERROR,\ | 100 vpx_internal_error(&pbi->common.error, VPX_CODEC_MEM_ERROR,\ |
102 "Failed to allocate "#lval);\ | 101 "Failed to allocate "#lval);\ |
103 } while(0) | 102 } while(0) |
104 #endif | 103 #endif |
105 | 104 |
106 #endif // __INC_ONYXD_INT_H | 105 #endif // VP9_DECODER_VP9_TREEREADER_H_ |
OLD | NEW |