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 13 matching lines...) Expand all Loading... |
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 (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 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. */ |
37 #define VPX_IMG_FMT_HIGH 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, |
42 VPX_IMG_FMT_RGB24, /**< 24 bit per pixel packed RGB */ | 42 VPX_IMG_FMT_RGB24, /**< 24 bit per pixel packed RGB */ |
43 VPX_IMG_FMT_RGB32, /**< 32 bit per pixel packed 0RGB */ | 43 VPX_IMG_FMT_RGB32, /**< 32 bit per pixel packed 0RGB */ |
44 VPX_IMG_FMT_RGB565, /**< 16 bit per pixel, 565 */ | 44 VPX_IMG_FMT_RGB565, /**< 16 bit per pixel, 565 */ |
45 VPX_IMG_FMT_RGB555, /**< 16 bit per pixel, 555 */ | 45 VPX_IMG_FMT_RGB555, /**< 16 bit per pixel, 555 */ |
46 VPX_IMG_FMT_UYVY, /**< UYVY packed YUV */ | 46 VPX_IMG_FMT_UYVY, /**< UYVY packed YUV */ |
47 VPX_IMG_FMT_YUY2, /**< YUYV packed YUV */ | 47 VPX_IMG_FMT_YUY2, /**< YUYV packed YUV */ |
48 VPX_IMG_FMT_YVYU, /**< YVYU packed YUV */ | 48 VPX_IMG_FMT_YVYU, /**< YVYU packed YUV */ |
49 VPX_IMG_FMT_BGR24, /**< 24 bit per pixel packed BGR */ | 49 VPX_IMG_FMT_BGR24, /**< 24 bit per pixel packed BGR */ |
50 VPX_IMG_FMT_RGB32_LE, /**< 32 bit packed BGR0 */ | 50 VPX_IMG_FMT_RGB32_LE, /**< 32 bit packed BGR0 */ |
51 VPX_IMG_FMT_ARGB, /**< 32 bit packed ARGB, alpha=255 */ | 51 VPX_IMG_FMT_ARGB, /**< 32 bit packed ARGB, alpha=255 */ |
52 VPX_IMG_FMT_ARGB_LE, /**< 32 bit packed BGRA, alpha=255 */ | 52 VPX_IMG_FMT_ARGB_LE, /**< 32 bit packed BGRA, alpha=255 */ |
53 VPX_IMG_FMT_RGB565_LE, /**< 16 bit per pixel, gggbbbbb rrrrrggg */ | 53 VPX_IMG_FMT_RGB565_LE, /**< 16 bit per pixel, gggbbbbb rrrrrggg */ |
54 VPX_IMG_FMT_RGB555_LE, /**< 16 bit per pixel, gggbbbbb 0rrrrrgg */ | 54 VPX_IMG_FMT_RGB555_LE, /**< 16 bit per pixel, gggbbbbb 0rrrrrgg */ |
55 VPX_IMG_FMT_YV12 = VPX_IMG_FMT_PLANAR | VPX_IMG_FMT_UV_FLIP | 1, /**< pla
nar YVU */ | 55 VPX_IMG_FMT_YV12 = VPX_IMG_FMT_PLANAR | VPX_IMG_FMT_UV_FLIP | 1, /**< pla
nar YVU */ |
56 VPX_IMG_FMT_I420 = VPX_IMG_FMT_PLANAR | 2, | 56 VPX_IMG_FMT_I420 = VPX_IMG_FMT_PLANAR | 2, |
57 VPX_IMG_FMT_VPXYV12 = VPX_IMG_FMT_PLANAR | VPX_IMG_FMT_UV_FLIP | 3, /** < pl
anar 4:2:0 format with vpx color space */ | 57 VPX_IMG_FMT_VPXYV12 = VPX_IMG_FMT_PLANAR | VPX_IMG_FMT_UV_FLIP | 3, /** < pl
anar 4:2:0 format with vpx color space */ |
58 VPX_IMG_FMT_VPXI420 = VPX_IMG_FMT_PLANAR | 4, | 58 VPX_IMG_FMT_VPXI420 = VPX_IMG_FMT_PLANAR | 4, |
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_444A = VPX_IMG_FMT_PLANAR | VPX_IMG_FMT_HAS_ALPHA | 7, | 61 VPX_IMG_FMT_444A = VPX_IMG_FMT_PLANAR | VPX_IMG_FMT_HAS_ALPHA | 7, |
62 VPX_IMG_FMT_I42016 = VPX_IMG_FMT_I420 | VPX_IMG_FMT_HIGH, | 62 VPX_IMG_FMT_I42016 = VPX_IMG_FMT_I420 | VPX_IMG_FMT_HIGHBITDEPTH, |
63 VPX_IMG_FMT_I42216 = VPX_IMG_FMT_I422 | VPX_IMG_FMT_HIGH, | 63 VPX_IMG_FMT_I42216 = VPX_IMG_FMT_I422 | VPX_IMG_FMT_HIGHBITDEPTH, |
64 VPX_IMG_FMT_I44416 = VPX_IMG_FMT_I444 | VPX_IMG_FMT_HIGH | 64 VPX_IMG_FMT_I44416 = VPX_IMG_FMT_I444 | VPX_IMG_FMT_HIGHBITDEPTH |
65 } vpx_img_fmt_t; /**< alias for enum vpx_img_fmt */ | 65 } vpx_img_fmt_t; /**< alias for enum vpx_img_fmt */ |
66 | 66 |
67 #if !defined(VPX_CODEC_DISABLE_COMPAT) || !VPX_CODEC_DISABLE_COMPAT | 67 #if !defined(VPX_CODEC_DISABLE_COMPAT) || !VPX_CODEC_DISABLE_COMPAT |
68 #define IMG_FMT_PLANAR VPX_IMG_FMT_PLANAR /**< \deprecated Use #VPX_
IMG_FMT_PLANAR */ | 68 #define IMG_FMT_PLANAR VPX_IMG_FMT_PLANAR /**< \deprecated Use #VPX_
IMG_FMT_PLANAR */ |
69 #define IMG_FMT_UV_FLIP VPX_IMG_FMT_UV_FLIP /**< \deprecated Use #VPX_
IMG_FMT_UV_FLIP */ | 69 #define IMG_FMT_UV_FLIP VPX_IMG_FMT_UV_FLIP /**< \deprecated Use #VPX_
IMG_FMT_UV_FLIP */ |
70 #define IMG_FMT_HAS_ALPHA VPX_IMG_FMT_HAS_ALPHA /**< \deprecated Use #VPX_
IMG_FMT_HAS_ALPHA */ | 70 #define IMG_FMT_HAS_ALPHA VPX_IMG_FMT_HAS_ALPHA /**< \deprecated Use #VPX_
IMG_FMT_HAS_ALPHA */ |
71 | 71 |
72 /*!\brief Deprecated list of supported image formats | 72 /*!\brief Deprecated list of supported image formats |
73 * \deprecated New code should use #vpx_img_fmt | 73 * \deprecated New code should use #vpx_img_fmt |
74 */ | 74 */ |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 * | 241 * |
242 * \param[in] img Image descriptor | 242 * \param[in] img Image descriptor |
243 */ | 243 */ |
244 void vpx_img_free(vpx_image_t *img); | 244 void vpx_img_free(vpx_image_t *img); |
245 | 245 |
246 #ifdef __cplusplus | 246 #ifdef __cplusplus |
247 } // extern "C" | 247 } // extern "C" |
248 #endif | 248 #endif |
249 | 249 |
250 #endif // VPX_VPX_IMAGE_H_ | 250 #endif // VPX_VPX_IMAGE_H_ |
OLD | NEW |