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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 const char *err_detail; /**< Detailed info, if available */ | 205 const char *err_detail; /**< Detailed info, if available */ |
206 vpx_codec_flags_t init_flags; /**< Flags passed at init time */ | 206 vpx_codec_flags_t init_flags; /**< Flags passed at init time */ |
207 union { | 207 union { |
208 struct vpx_codec_dec_cfg *dec; /**< Decoder Configuration Pointer */ | 208 struct vpx_codec_dec_cfg *dec; /**< Decoder Configuration Pointer */ |
209 struct vpx_codec_enc_cfg *enc; /**< Encoder Configuration Pointer */ | 209 struct vpx_codec_enc_cfg *enc; /**< Encoder Configuration Pointer */ |
210 void *raw; | 210 void *raw; |
211 } config; /**< Configuration pointer aliasing un
ion */ | 211 } config; /**< Configuration pointer aliasing un
ion */ |
212 vpx_codec_priv_t *priv; /**< Algorithm private storage */ | 212 vpx_codec_priv_t *priv; /**< Algorithm private storage */ |
213 } vpx_codec_ctx_t; | 213 } vpx_codec_ctx_t; |
214 | 214 |
| 215 /*!\brief Bit depth for codec |
| 216 * * |
| 217 * This enumeration determines the bit depth of the codec. |
| 218 */ |
| 219 typedef enum vpx_bit_depth { |
| 220 VPX_BITS_8, /**< 8 bits */ |
| 221 VPX_BITS_10, /**< 10 bits */ |
| 222 VPX_BITS_12 /**< 12 bits */ |
| 223 } vpx_bit_depth_t; |
215 | 224 |
216 /* | 225 /* |
217 * Library Version Number Interface | 226 * Library Version Number Interface |
218 * | 227 * |
219 * For example, see the following sample return values: | 228 * For example, see the following sample return values: |
220 * vpx_codec_version() (1<<16 | 2<<8 | 3) | 229 * vpx_codec_version() (1<<16 | 2<<8 | 3) |
221 * vpx_codec_version_str() "v1.2.3-rc1-16-gec6a1ba" | 230 * vpx_codec_version_str() "v1.2.3-rc1-16-gec6a1ba" |
222 * vpx_codec_version_extra_str() "rc1-16-gec6a1ba" | 231 * vpx_codec_version_extra_str() "rc1-16-gec6a1ba" |
223 */ | 232 */ |
224 | 233 |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 vpx_codec_mmap_t *mmaps, | 558 vpx_codec_mmap_t *mmaps, |
550 unsigned int num_maps); | 559 unsigned int num_maps); |
551 | 560 |
552 /*!@} - end defgroup cap_xma*/ | 561 /*!@} - end defgroup cap_xma*/ |
553 /*!@} - end defgroup codec*/ | 562 /*!@} - end defgroup codec*/ |
554 #ifdef __cplusplus | 563 #ifdef __cplusplus |
555 } | 564 } |
556 #endif | 565 #endif |
557 #endif // VPX_VPX_CODEC_H_ | 566 #endif // VPX_VPX_CODEC_H_ |
558 | 567 |
OLD | NEW |