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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 MB_OVERLAP *overlaps; | 115 MB_OVERLAP *overlaps; |
116 /* the mb num from which modes and mvs (first partition) are corrupt */ | 116 /* the mb num from which modes and mvs (first partition) are corrupt */ |
117 unsigned int mvs_corrupt_from_mb; | 117 unsigned int mvs_corrupt_from_mb; |
118 #endif | 118 #endif |
119 int ec_enabled; | 119 int ec_enabled; |
120 int ec_active; | 120 int ec_active; |
121 int decoded_key_frame; | 121 int decoded_key_frame; |
122 int independent_partitions; | 122 int independent_partitions; |
123 int frame_corrupt_residual; | 123 int frame_corrupt_residual; |
124 | 124 |
125 const unsigned char *decrypt_key; | 125 vp8_decrypt_cb *decrypt_cb; |
| 126 void *decrypt_state; |
126 } VP8D_COMP; | 127 } VP8D_COMP; |
127 | 128 |
128 int vp8_decode_frame(VP8D_COMP *cpi); | 129 int vp8_decode_frame(VP8D_COMP *cpi); |
129 | 130 |
130 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf); | 131 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf); |
131 int vp8_remove_decoder_instances(struct frame_buffers *fb); | 132 int vp8_remove_decoder_instances(struct frame_buffers *fb); |
132 | 133 |
133 #if CONFIG_DEBUG | 134 #if CONFIG_DEBUG |
134 #define CHECK_MEM_ERROR(lval,expr) do {\ | 135 #define CHECK_MEM_ERROR(lval,expr) do {\ |
135 lval = (expr); \ | 136 lval = (expr); \ |
136 if(!lval) \ | 137 if(!lval) \ |
137 vpx_internal_error(&pbi->common.error, VPX_CODEC_MEM_ERROR,\ | 138 vpx_internal_error(&pbi->common.error, VPX_CODEC_MEM_ERROR,\ |
138 "Failed to allocate "#lval" at %s:%d", \ | 139 "Failed to allocate "#lval" at %s:%d", \ |
139 __FILE__,__LINE__);\ | 140 __FILE__,__LINE__);\ |
140 } while(0) | 141 } while(0) |
141 #else | 142 #else |
142 #define CHECK_MEM_ERROR(lval,expr) do {\ | 143 #define CHECK_MEM_ERROR(lval,expr) do {\ |
143 lval = (expr); \ | 144 lval = (expr); \ |
144 if(!lval) \ | 145 if(!lval) \ |
145 vpx_internal_error(&pbi->common.error, VPX_CODEC_MEM_ERROR,\ | 146 vpx_internal_error(&pbi->common.error, VPX_CODEC_MEM_ERROR,\ |
146 "Failed to allocate "#lval);\ | 147 "Failed to allocate "#lval);\ |
147 } while(0) | 148 } while(0) |
148 #endif | 149 #endif |
149 | 150 |
150 #endif // ONYXD_INT_H_ | 151 #endif // ONYXD_INT_H_ |
OLD | NEW |