| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } YV12_BUFFER_CONFIG; | 62 } YV12_BUFFER_CONFIG; |
| 63 | 63 |
| 64 #define YV12_FLAG_HIGHBITDEPTH 8 | 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 vpx_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 |
| 75 int use_highbitdepth, | 75 int use_highbitdepth, |
| 76 #endif | 76 #endif |
| 77 int border, int byte_alignment); | 77 int border, int byte_alignment); |
| 78 | 78 |
| 79 // Updates the yv12 buffer config with the frame buffer. |byte_alignment| must | 79 // Updates the yv12 buffer config with the frame buffer. |byte_alignment| must |
| 80 // be a power of 2, from 32 to 1024. 0 sets legacy alignment. If cb is not | 80 // be a power of 2, from 32 to 1024. 0 sets legacy alignment. If cb is not |
| 81 // NULL, then libvpx is using the frame buffer callbacks to handle memory. | 81 // NULL, then libvpx is using the frame buffer callbacks to handle memory. |
| 82 // If cb is not NULL, libvpx will call cb with minimum size in bytes needed | 82 // If cb is not NULL, libvpx will call cb with minimum size in bytes needed |
| 83 // to decode the current frame. If cb is NULL, libvpx will allocate memory | 83 // to decode the current frame. If cb is NULL, libvpx will allocate memory |
| 84 // internally to decode the current frame. Returns 0 on success. Returns < 0 | 84 // internally to decode the current frame. Returns 0 on success. Returns < 0 |
| 85 // on failure. | 85 // on failure. |
| 86 int vp9_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, | 86 int vpx_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, |
| 87 int width, int height, int ss_x, int ss_y, | 87 int width, int height, int ss_x, int ss_y, |
| 88 #if CONFIG_VP9_HIGHBITDEPTH | 88 #if CONFIG_VP9_HIGHBITDEPTH |
| 89 int use_highbitdepth, | 89 int use_highbitdepth, |
| 90 #endif | 90 #endif |
| 91 int border, | 91 int border, |
| 92 int byte_alignment, | 92 int byte_alignment, |
| 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 vpx_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 |