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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 int display_height; | 77 int display_height; |
78 int last_width; | 78 int last_width; |
79 int last_height; | 79 int last_height; |
80 | 80 |
81 // TODO(jkoleszar): this implies chroma ss right now, but could vary per | 81 // TODO(jkoleszar): this implies chroma ss right now, but could vary per |
82 // plane. Revisit as part of the future change to YV12_BUFFER_CONFIG to | 82 // plane. Revisit as part of the future change to YV12_BUFFER_CONFIG to |
83 // support additional planes. | 83 // support additional planes. |
84 int subsampling_x; | 84 int subsampling_x; |
85 int subsampling_y; | 85 int subsampling_y; |
86 | 86 |
| 87 #if CONFIG_VP9_HIGHBITDEPTH |
| 88 int use_highbitdepth; // Marks if we need to use 16bit frame buffers. |
| 89 #endif |
| 90 |
87 YV12_BUFFER_CONFIG *frame_to_show; | 91 YV12_BUFFER_CONFIG *frame_to_show; |
88 | 92 |
89 RefCntBuffer frame_bufs[FRAME_BUFFERS]; | 93 RefCntBuffer frame_bufs[FRAME_BUFFERS]; |
90 | 94 |
91 int ref_frame_map[REF_FRAMES]; /* maps fb_idx to reference slot */ | 95 int ref_frame_map[REF_FRAMES]; /* maps fb_idx to reference slot */ |
92 | 96 |
93 // TODO(jkoleszar): could expand active_ref_idx to 4, with 0 as intra, and | 97 // TODO(jkoleszar): could expand active_ref_idx to 4, with 0 as intra, and |
94 // roll new_fb_idx into it. | 98 // roll new_fb_idx into it. |
95 | 99 |
96 // Each frame can reference REFS_PER_FRAME buffers | 100 // Each frame can reference REFS_PER_FRAME buffers |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 REFERENCE_MODE reference_mode; | 176 REFERENCE_MODE reference_mode; |
173 | 177 |
174 FRAME_CONTEXT fc; /* this frame entropy */ | 178 FRAME_CONTEXT fc; /* this frame entropy */ |
175 FRAME_CONTEXT frame_contexts[FRAME_CONTEXTS]; | 179 FRAME_CONTEXT frame_contexts[FRAME_CONTEXTS]; |
176 unsigned int frame_context_idx; /* Context to use/update */ | 180 unsigned int frame_context_idx; /* Context to use/update */ |
177 FRAME_COUNTS counts; | 181 FRAME_COUNTS counts; |
178 | 182 |
179 unsigned int current_video_frame; | 183 unsigned int current_video_frame; |
180 BITSTREAM_PROFILE profile; | 184 BITSTREAM_PROFILE profile; |
181 | 185 |
182 // BITS_8 in versions 0 and 1, BITS_10 or BITS_12 in version 2 | 186 // VPX_BITS_8 in profile 0 or 1, VPX_BITS_10 or VPX_BITS_12 in profile 2 or 3. |
183 BIT_DEPTH bit_depth; | 187 vpx_bit_depth_t bit_depth; |
184 | 188 |
185 #if CONFIG_VP9_POSTPROC | 189 #if CONFIG_VP9_POSTPROC |
186 struct postproc_state postproc_state; | 190 struct postproc_state postproc_state; |
187 #endif | 191 #endif |
188 | 192 |
189 int error_resilient_mode; | 193 int error_resilient_mode; |
190 int frame_parallel_decoding_mode; | 194 int frame_parallel_decoding_mode; |
191 | 195 |
192 int log2_tile_cols, log2_tile_rows; | 196 int log2_tile_cols, log2_tile_rows; |
193 | 197 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 left = (left & bs) > 0; | 348 left = (left & bs) > 0; |
345 | 349 |
346 return (left * 2 + above) + bsl * PARTITION_PLOFFSET; | 350 return (left * 2 + above) + bsl * PARTITION_PLOFFSET; |
347 } | 351 } |
348 | 352 |
349 #ifdef __cplusplus | 353 #ifdef __cplusplus |
350 } // extern "C" | 354 } // extern "C" |
351 #endif | 355 #endif |
352 | 356 |
353 #endif // VP9_COMMON_VP9_ONYXC_INT_H_ | 357 #endif // VP9_COMMON_VP9_ONYXC_INT_H_ |
OLD | NEW |