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 #ifndef VPX_VPX_DECODER_H_ | 10 #ifndef VPX_VPX_DECODER_H_ |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 * \param[in] flags Bitfield of VPX_CODEC_USE_* flags | 128 * \param[in] flags Bitfield of VPX_CODEC_USE_* flags |
129 * \param[in] ver ABI version number. Must be set to | 129 * \param[in] ver ABI version number. Must be set to |
130 * VPX_DECODER_ABI_VERSION | 130 * VPX_DECODER_ABI_VERSION |
131 * \retval #VPX_CODEC_OK | 131 * \retval #VPX_CODEC_OK |
132 * The decoder algorithm initialized. | 132 * The decoder algorithm initialized. |
133 * \retval #VPX_CODEC_MEM_ERROR | 133 * \retval #VPX_CODEC_MEM_ERROR |
134 * Memory allocation failed. | 134 * Memory allocation failed. |
135 */ | 135 */ |
136 vpx_codec_err_t vpx_codec_dec_init_ver(vpx_codec_ctx_t *ctx, | 136 vpx_codec_err_t vpx_codec_dec_init_ver(vpx_codec_ctx_t *ctx, |
137 vpx_codec_iface_t *iface, | 137 vpx_codec_iface_t *iface, |
138 vpx_codec_dec_cfg_t *cfg, | 138 const vpx_codec_dec_cfg_t *cfg, |
139 vpx_codec_flags_t flags, | 139 vpx_codec_flags_t flags, |
140 int ver); | 140 int ver); |
141 | 141 |
142 /*!\brief Convenience macro for vpx_codec_dec_init_ver() | 142 /*!\brief Convenience macro for vpx_codec_dec_init_ver() |
143 * | 143 * |
144 * Ensures the ABI version parameter is properly set. | 144 * Ensures the ABI version parameter is properly set. |
145 */ | 145 */ |
146 #define vpx_codec_dec_init(ctx, iface, cfg, flags) \ | 146 #define vpx_codec_dec_init(ctx, iface, cfg, flags) \ |
147 vpx_codec_dec_init_ver(ctx, iface, cfg, flags, VPX_DECODER_ABI_VERSION) | 147 vpx_codec_dec_init_ver(ctx, iface, cfg, flags, VPX_DECODER_ABI_VERSION) |
148 | 148 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 vpx_release_frame_buffer_cb_fn_t cb_release, void *cb_priv); | 369 vpx_release_frame_buffer_cb_fn_t cb_release, void *cb_priv); |
370 | 370 |
371 /*!@} - end defgroup cap_external_frame_buffer */ | 371 /*!@} - end defgroup cap_external_frame_buffer */ |
372 | 372 |
373 /*!@} - end defgroup decoder*/ | 373 /*!@} - end defgroup decoder*/ |
374 #ifdef __cplusplus | 374 #ifdef __cplusplus |
375 } | 375 } |
376 #endif | 376 #endif |
377 #endif // VPX_VPX_DECODER_H_ | 377 #endif // VPX_VPX_DECODER_H_ |
378 | 378 |
OLD | NEW |