| 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 (2) /**<\hideinitializer*/ | 31 #define VPX_IMAGE_ABI_VERSION (3) /**<\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 in memory. */ | 35 #define VPX_IMG_FMT_UV_FLIP 0x200 /**< V plane precedes U in memory. */ |
| 36 #define VPX_IMG_FMT_HAS_ALPHA 0x400 /**< Image has an alpha channel. */ | 36 #define VPX_IMG_FMT_HAS_ALPHA 0x400 /**< Image has an alpha channel. */ |
| 37 #define VPX_IMG_FMT_HIGHBITDEPTH 0x800 /**< Image uses 16bit framebuffer. */ | 37 #define VPX_IMG_FMT_HIGHBITDEPTH 0x800 /**< Image uses 16bit framebuffer. */ |
| 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 17 matching lines...) Expand all Loading... |
| 59 VPX_IMG_FMT_I422 = VPX_IMG_FMT_PLANAR | 5, | 59 VPX_IMG_FMT_I422 = VPX_IMG_FMT_PLANAR | 5, |
| 60 VPX_IMG_FMT_I444 = VPX_IMG_FMT_PLANAR | 6, | 60 VPX_IMG_FMT_I444 = VPX_IMG_FMT_PLANAR | 6, |
| 61 VPX_IMG_FMT_I440 = VPX_IMG_FMT_PLANAR | 7, | 61 VPX_IMG_FMT_I440 = VPX_IMG_FMT_PLANAR | 7, |
| 62 VPX_IMG_FMT_444A = VPX_IMG_FMT_PLANAR | VPX_IMG_FMT_HAS_ALPHA | 6, | 62 VPX_IMG_FMT_444A = VPX_IMG_FMT_PLANAR | VPX_IMG_FMT_HAS_ALPHA | 6, |
| 63 VPX_IMG_FMT_I42016 = VPX_IMG_FMT_I420 | VPX_IMG_FMT_HIGHBITDEPTH, | 63 VPX_IMG_FMT_I42016 = VPX_IMG_FMT_I420 | VPX_IMG_FMT_HIGHBITDEPTH, |
| 64 VPX_IMG_FMT_I42216 = VPX_IMG_FMT_I422 | VPX_IMG_FMT_HIGHBITDEPTH, | 64 VPX_IMG_FMT_I42216 = VPX_IMG_FMT_I422 | VPX_IMG_FMT_HIGHBITDEPTH, |
| 65 VPX_IMG_FMT_I44416 = VPX_IMG_FMT_I444 | VPX_IMG_FMT_HIGHBITDEPTH, | 65 VPX_IMG_FMT_I44416 = VPX_IMG_FMT_I444 | VPX_IMG_FMT_HIGHBITDEPTH, |
| 66 VPX_IMG_FMT_I44016 = VPX_IMG_FMT_I440 | VPX_IMG_FMT_HIGHBITDEPTH | 66 VPX_IMG_FMT_I44016 = VPX_IMG_FMT_I440 | VPX_IMG_FMT_HIGHBITDEPTH |
| 67 } vpx_img_fmt_t; /**< alias for enum vpx_img_fmt */ | 67 } vpx_img_fmt_t; /**< alias for enum vpx_img_fmt */ |
| 68 | 68 |
| 69 /*!\brief List of supported color spaces */ |
| 70 typedef enum vpx_color_space { |
| 71 VPX_CS_UNKNOWN = 0, /**< Unknown */ |
| 72 VPX_CS_BT_601 = 1, /**< BT.601 */ |
| 73 VPX_CS_BT_709 = 2, /**< BT.709 */ |
| 74 VPX_CS_SMPTE_170 = 3, /**< SMPTE.170 */ |
| 75 VPX_CS_SMPTE_240 = 4, /**< SMPTE.240 */ |
| 76 VPX_CS_BT_2020 = 5, /**< BT.2020 */ |
| 77 VPX_CS_RESERVED = 6, /**< Reserved */ |
| 78 VPX_CS_SRGB = 7 /**< sRGB */ |
| 79 } vpx_color_space_t; /**< alias for enum vpx_color_space */ |
| 80 |
| 69 /**\brief Image Descriptor */ | 81 /**\brief Image Descriptor */ |
| 70 typedef struct vpx_image { | 82 typedef struct vpx_image { |
| 71 vpx_img_fmt_t fmt; /**< Image Format */ | 83 vpx_img_fmt_t fmt; /**< Image Format */ |
| 84 vpx_color_space_t cs; /**< Color Space */ |
| 72 | 85 |
| 73 /* Image storage dimensions */ | 86 /* Image storage dimensions */ |
| 74 unsigned int w; /**< Stored image width */ | 87 unsigned int w; /**< Stored image width */ |
| 75 unsigned int h; /**< Stored image height */ | 88 unsigned int h; /**< Stored image height */ |
| 76 unsigned int bit_depth; /**< Stored image bit-depth */ | 89 unsigned int bit_depth; /**< Stored image bit-depth */ |
| 77 | 90 |
| 78 /* Image display dimensions */ | 91 /* Image display dimensions */ |
| 79 unsigned int d_w; /**< Displayed image width */ | 92 unsigned int d_w; /**< Displayed image width */ |
| 80 unsigned int d_h; /**< Displayed image height */ | 93 unsigned int d_h; /**< Displayed image height */ |
| 81 | 94 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 * | 215 * |
| 203 * \param[in] img Image descriptor | 216 * \param[in] img Image descriptor |
| 204 */ | 217 */ |
| 205 void vpx_img_free(vpx_image_t *img); | 218 void vpx_img_free(vpx_image_t *img); |
| 206 | 219 |
| 207 #ifdef __cplusplus | 220 #ifdef __cplusplus |
| 208 } // extern "C" | 221 } // extern "C" |
| 209 #endif | 222 #endif |
| 210 | 223 |
| 211 #endif // VPX_VPX_IMAGE_H_ | 224 #endif // VPX_VPX_IMAGE_H_ |
| OLD | NEW |