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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // Whether to use previous frame's motion vectors for prediction. | 213 // Whether to use previous frame's motion vectors for prediction. |
214 int use_prev_frame_mvs; | 214 int use_prev_frame_mvs; |
215 | 215 |
216 // Persistent mb segment id map used in prediction. | 216 // Persistent mb segment id map used in prediction. |
217 int seg_map_idx; | 217 int seg_map_idx; |
218 int prev_seg_map_idx; | 218 int prev_seg_map_idx; |
219 | 219 |
220 uint8_t *seg_map_array[NUM_PING_PONG_BUFFERS]; | 220 uint8_t *seg_map_array[NUM_PING_PONG_BUFFERS]; |
221 uint8_t *last_frame_seg_map; | 221 uint8_t *last_frame_seg_map; |
222 uint8_t *current_frame_seg_map; | 222 uint8_t *current_frame_seg_map; |
| 223 int seg_map_alloc_size; |
223 | 224 |
224 INTERP_FILTER interp_filter; | 225 INTERP_FILTER interp_filter; |
225 | 226 |
226 loop_filter_info_n lf_info; | 227 loop_filter_info_n lf_info; |
227 | 228 |
228 int refresh_frame_context; /* Two state 0 = NO, 1 = YES */ | 229 int refresh_frame_context; /* Two state 0 = NO, 1 = YES */ |
229 | 230 |
230 int ref_frame_sign_bias[MAX_REF_FRAMES]; /* Two state 0, 1 */ | 231 int ref_frame_sign_bias[MAX_REF_FRAMES]; /* Two state 0, 1 */ |
231 | 232 |
232 struct loopfilter lf; | 233 struct loopfilter lf; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 vpx_release_frame_buffer_cb_fn_t release_fb_cb; | 270 vpx_release_frame_buffer_cb_fn_t release_fb_cb; |
270 | 271 |
271 // Handles memory for the codec. | 272 // Handles memory for the codec. |
272 InternalFrameBufferList int_frame_buffers; | 273 InternalFrameBufferList int_frame_buffers; |
273 | 274 |
274 // External BufferPool passed from outside. | 275 // External BufferPool passed from outside. |
275 BufferPool *buffer_pool; | 276 BufferPool *buffer_pool; |
276 | 277 |
277 PARTITION_CONTEXT *above_seg_context; | 278 PARTITION_CONTEXT *above_seg_context; |
278 ENTROPY_CONTEXT *above_context; | 279 ENTROPY_CONTEXT *above_context; |
| 280 int above_context_alloc_cols; |
279 } VP9_COMMON; | 281 } VP9_COMMON; |
280 | 282 |
281 // TODO(hkuang): Don't need to lock the whole pool after implementing atomic | 283 // TODO(hkuang): Don't need to lock the whole pool after implementing atomic |
282 // frame reference count. | 284 // frame reference count. |
283 void lock_buffer_pool(BufferPool *const pool); | 285 void lock_buffer_pool(BufferPool *const pool); |
284 void unlock_buffer_pool(BufferPool *const pool); | 286 void unlock_buffer_pool(BufferPool *const pool); |
285 | 287 |
286 static INLINE YV12_BUFFER_CONFIG *get_ref_frame(VP9_COMMON *cm, int index) { | 288 static INLINE YV12_BUFFER_CONFIG *get_ref_frame(VP9_COMMON *cm, int index) { |
287 if (index < 0 || index >= REF_FRAMES) | 289 if (index < 0 || index >= REF_FRAMES) |
288 return NULL; | 290 return NULL; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 assert(bsl >= 0); | 428 assert(bsl >= 0); |
427 | 429 |
428 return (left * 2 + above) + bsl * PARTITION_PLOFFSET; | 430 return (left * 2 + above) + bsl * PARTITION_PLOFFSET; |
429 } | 431 } |
430 | 432 |
431 #ifdef __cplusplus | 433 #ifdef __cplusplus |
432 } // extern "C" | 434 } // extern "C" |
433 #endif | 435 #endif |
434 | 436 |
435 #endif // VP9_COMMON_VP9_ONYXC_INT_H_ | 437 #endif // VP9_COMMON_VP9_ONYXC_INT_H_ |
OLD | NEW |