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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 * | 115 * |
116 * Initializes a decoder context using the given interface. Applications | 116 * Initializes a decoder context using the given interface. Applications |
117 * should call the vpx_codec_dec_init convenience macro instead of this | 117 * should call the vpx_codec_dec_init convenience macro instead of this |
118 * function directly, to ensure that the ABI version number parameter | 118 * function directly, to ensure that the ABI version number parameter |
119 * is properly initialized. | 119 * is properly initialized. |
120 * | 120 * |
121 * If the library was configured with --disable-multithread, this call | 121 * If the library was configured with --disable-multithread, this call |
122 * is not thread safe and should be guarded with a lock if being used | 122 * is not thread safe and should be guarded with a lock if being used |
123 * in a multithreaded context. | 123 * in a multithreaded context. |
124 * | 124 * |
125 * In XMA mode (activated by setting VPX_CODEC_USE_XMA in the flags | |
126 * parameter), the storage pointed to by the cfg parameter must be | |
127 * kept readable and stable until all memory maps have been set. | |
128 * | |
129 * \param[in] ctx Pointer to this instance's context. | 125 * \param[in] ctx Pointer to this instance's context. |
130 * \param[in] iface Pointer to the algorithm interface to use. | 126 * \param[in] iface Pointer to the algorithm interface to use. |
131 * \param[in] cfg Configuration to use, if known. May be NULL. | 127 * \param[in] cfg Configuration to use, if known. May be NULL. |
132 * \param[in] flags Bitfield of VPX_CODEC_USE_* flags | 128 * \param[in] flags Bitfield of VPX_CODEC_USE_* flags |
133 * \param[in] ver ABI version number. Must be set to | 129 * \param[in] ver ABI version number. Must be set to |
134 * VPX_DECODER_ABI_VERSION | 130 * VPX_DECODER_ABI_VERSION |
135 * \retval #VPX_CODEC_OK | 131 * \retval #VPX_CODEC_OK |
136 * The decoder algorithm initialized. | 132 * The decoder algorithm initialized. |
137 * \retval #VPX_CODEC_MEM_ERROR | 133 * \retval #VPX_CODEC_MEM_ERROR |
138 * Memory allocation failed. | 134 * Memory allocation failed. |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 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); |
374 | 370 |
375 /*!@} - end defgroup cap_external_frame_buffer */ | 371 /*!@} - end defgroup cap_external_frame_buffer */ |
376 | 372 |
377 /*!@} - end defgroup decoder*/ | 373 /*!@} - end defgroup decoder*/ |
378 #ifdef __cplusplus | 374 #ifdef __cplusplus |
379 } | 375 } |
380 #endif | 376 #endif |
381 #endif // VPX_VPX_DECODER_H_ | 377 #endif // VPX_VPX_DECODER_H_ |
382 | 378 |
OLD | NEW |