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_ENCODER_H_ | 10 #ifndef VPX_VPX_ENCODER_H_ |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 | 820 |
821 | 821 |
822 /*!\brief Get a default configuration | 822 /*!\brief Get a default configuration |
823 * | 823 * |
824 * Initializes a encoder configuration structure with default values. Supports | 824 * Initializes a encoder configuration structure with default values. Supports |
825 * the notion of "usages" so that an algorithm may offer different default | 825 * the notion of "usages" so that an algorithm may offer different default |
826 * settings depending on the user's intended goal. This function \ref SHOULD | 826 * settings depending on the user's intended goal. This function \ref SHOULD |
827 * be called by all applications to initialize the configuration structure | 827 * be called by all applications to initialize the configuration structure |
828 * before specializing the configuration with application specific values. | 828 * before specializing the configuration with application specific values. |
829 * | 829 * |
830 * \param[in] iface Pointer to the algorithm interface to use. | 830 * \param[in] iface Pointer to the algorithm interface to use. |
831 * \param[out] cfg Configuration buffer to populate | 831 * \param[out] cfg Configuration buffer to populate. |
832 * \param[in] usage End usage. Set to 0 or use codec specific values. | 832 * \param[in] reserved Must set to 0 for VP8 and VP9. |
833 * | 833 * |
834 * \retval #VPX_CODEC_OK | 834 * \retval #VPX_CODEC_OK |
835 * The configuration was populated. | 835 * The configuration was populated. |
836 * \retval #VPX_CODEC_INCAPABLE | 836 * \retval #VPX_CODEC_INCAPABLE |
837 * Interface is not an encoder interface. | 837 * Interface is not an encoder interface. |
838 * \retval #VPX_CODEC_INVALID_PARAM | 838 * \retval #VPX_CODEC_INVALID_PARAM |
839 * A parameter was NULL, or the usage value was not recognized. | 839 * A parameter was NULL, or the usage value was not recognized. |
840 */ | 840 */ |
841 vpx_codec_err_t vpx_codec_enc_config_default(vpx_codec_iface_t *iface, | 841 vpx_codec_err_t vpx_codec_enc_config_default(vpx_codec_iface_t *iface, |
842 vpx_codec_enc_cfg_t *cfg, | 842 vpx_codec_enc_cfg_t *cfg, |
843 unsigned int usage); | 843 unsigned int reserved); |
844 | 844 |
845 | 845 |
846 /*!\brief Set or change configuration | 846 /*!\brief Set or change configuration |
847 * | 847 * |
848 * Reconfigures an encoder instance according to the given configuration. | 848 * Reconfigures an encoder instance according to the given configuration. |
849 * | 849 * |
850 * \param[in] ctx Pointer to this instance's context | 850 * \param[in] ctx Pointer to this instance's context |
851 * \param[in] cfg Configuration buffer to use | 851 * \param[in] cfg Configuration buffer to use |
852 * | 852 * |
853 * \retval #VPX_CODEC_OK | 853 * \retval #VPX_CODEC_OK |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 */ | 1014 */ |
1015 const vpx_image_t *vpx_codec_get_preview_frame(vpx_codec_ctx_t *ctx); | 1015 const vpx_image_t *vpx_codec_get_preview_frame(vpx_codec_ctx_t *ctx); |
1016 | 1016 |
1017 | 1017 |
1018 /*!@} - end defgroup encoder*/ | 1018 /*!@} - end defgroup encoder*/ |
1019 #ifdef __cplusplus | 1019 #ifdef __cplusplus |
1020 } | 1020 } |
1021 #endif | 1021 #endif |
1022 #endif // VPX_VPX_ENCODER_H_ | 1022 #endif // VPX_VPX_ENCODER_H_ |
1023 | 1023 |
OLD | NEW |