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 10 matching lines...) Expand all Loading... |
21 #endif | 21 #endif |
22 | 22 |
23 /*!\brief Current ABI version number | 23 /*!\brief Current ABI version number |
24 * | 24 * |
25 * \internal | 25 * \internal |
26 * If this file is altered in any way that changes the ABI, this value | 26 * If this file is altered in any way that changes the ABI, this value |
27 * must be bumped. Examples include, but are not limited to, changing | 27 * must be bumped. Examples include, but are not limited to, changing |
28 * types, removing or reassigning enums, adding/removing/rearranging | 28 * types, removing or reassigning enums, adding/removing/rearranging |
29 * fields to structures | 29 * fields to structures |
30 */ | 30 */ |
31 #define VPX_IMAGE_ABI_VERSION (1) /**<\hideinitializer*/ | 31 #define VPX_IMAGE_ABI_VERSION (2) /**<\hideinitializer*/ |
32 | 32 |
33 | 33 |
34 #define VPX_IMG_FMT_PLANAR 0x100 /**< Image is a planar format */ | 34 #define VPX_IMG_FMT_PLANAR 0x100 /**< Image is a planar format */ |
35 #define VPX_IMG_FMT_UV_FLIP 0x200 /**< V plane precedes U plane in memory */ | 35 #define VPX_IMG_FMT_UV_FLIP 0x200 /**< V plane precedes U plane in memory */ |
36 #define VPX_IMG_FMT_HAS_ALPHA 0x400 /**< Image has an alpha channel component
*/ | 36 #define VPX_IMG_FMT_HAS_ALPHA 0x400 /**< Image has an alpha channel component
*/ |
37 | 37 |
38 | 38 |
39 /*!\brief List of supported image formats */ | 39 /*!\brief List of supported image formats */ |
40 typedef enum vpx_img_fmt { | 40 typedef enum vpx_img_fmt { |
41 VPX_IMG_FMT_NONE, | 41 VPX_IMG_FMT_NONE, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 /* The following member may be set by the application to associate data | 132 /* The following member may be set by the application to associate data |
133 * with this image. | 133 * with this image. |
134 */ | 134 */ |
135 void *user_priv; /**< may be set by the application to associate data | 135 void *user_priv; /**< may be set by the application to associate data |
136 * with this image. */ | 136 * with this image. */ |
137 | 137 |
138 /* The following members should be treated as private. */ | 138 /* The following members should be treated as private. */ |
139 unsigned char *img_data; /**< private */ | 139 unsigned char *img_data; /**< private */ |
140 int img_data_owner; /**< private */ | 140 int img_data_owner; /**< private */ |
141 int self_allocd; /**< private */ | 141 int self_allocd; /**< private */ |
| 142 |
| 143 void *fb_priv; /**< Frame buffer data associated with the image. */ |
142 } vpx_image_t; /**< alias for struct vpx_image */ | 144 } vpx_image_t; /**< alias for struct vpx_image */ |
143 | 145 |
144 /**\brief Representation of a rectangle on a surface */ | 146 /**\brief Representation of a rectangle on a surface */ |
145 typedef struct vpx_image_rect { | 147 typedef struct vpx_image_rect { |
146 unsigned int x; /**< leftmost column */ | 148 unsigned int x; /**< leftmost column */ |
147 unsigned int y; /**< topmost row */ | 149 unsigned int y; /**< topmost row */ |
148 unsigned int w; /**< width */ | 150 unsigned int w; /**< width */ |
149 unsigned int h; /**< height */ | 151 unsigned int h; /**< height */ |
150 } vpx_image_rect_t; /**< alias for struct vpx_image_rect */ | 152 } vpx_image_rect_t; /**< alias for struct vpx_image_rect */ |
151 | 153 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 * | 237 * |
236 * \param[in] img Image descriptor | 238 * \param[in] img Image descriptor |
237 */ | 239 */ |
238 void vpx_img_free(vpx_image_t *img); | 240 void vpx_img_free(vpx_image_t *img); |
239 | 241 |
240 #ifdef __cplusplus | 242 #ifdef __cplusplus |
241 } // extern "C" | 243 } // extern "C" |
242 #endif | 244 #endif |
243 | 245 |
244 #endif // VPX_VPX_IMAGE_H_ | 246 #endif // VPX_VPX_IMAGE_H_ |
OLD | NEW |