| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 int frame_size; | 54 int frame_size; |
| 55 int subsampling_x; | 55 int subsampling_x; |
| 56 int subsampling_y; | 56 int subsampling_y; |
| 57 unsigned int bit_depth; | 57 unsigned int bit_depth; |
| 58 vpx_color_space_t color_space; | 58 vpx_color_space_t color_space; |
| 59 | 59 |
| 60 int corrupted; | 60 int corrupted; |
| 61 int flags; | 61 int flags; |
| 62 } YV12_BUFFER_CONFIG; | 62 } YV12_BUFFER_CONFIG; |
| 63 | 63 |
| 64 #define YV12_FLAG_HIGHBITDEPTH 1 | 64 #define YV12_FLAG_HIGHBITDEPTH 8 |
| 65 | 65 |
| 66 int vp8_yv12_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, | 66 int vp8_yv12_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, |
| 67 int width, int height, int border); | 67 int width, int height, int border); |
| 68 int vp8_yv12_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, | 68 int vp8_yv12_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, |
| 69 int width, int height, int border); | 69 int width, int height, int border); |
| 70 int vp8_yv12_de_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf); | 70 int vp8_yv12_de_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf); |
| 71 | 71 |
| 72 int vp9_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, | 72 int vp9_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, |
| 73 int width, int height, int ss_x, int ss_y, | 73 int width, int height, int ss_x, int ss_y, |
| 74 #if CONFIG_VP9_HIGHBITDEPTH | 74 #if CONFIG_VP9_HIGHBITDEPTH |
| (...skipping 18 matching lines...) Expand all Loading... |
| 93 vpx_codec_frame_buffer_t *fb, | 93 vpx_codec_frame_buffer_t *fb, |
| 94 vpx_get_frame_buffer_cb_fn_t cb, | 94 vpx_get_frame_buffer_cb_fn_t cb, |
| 95 void *cb_priv); | 95 void *cb_priv); |
| 96 int vp9_free_frame_buffer(YV12_BUFFER_CONFIG *ybf); | 96 int vp9_free_frame_buffer(YV12_BUFFER_CONFIG *ybf); |
| 97 | 97 |
| 98 #ifdef __cplusplus | 98 #ifdef __cplusplus |
| 99 } | 99 } |
| 100 #endif | 100 #endif |
| 101 | 101 |
| 102 #endif // VPX_SCALE_YV12CONFIG_H_ | 102 #endif // VPX_SCALE_YV12CONFIG_H_ |
| OLD | NEW |