| 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 /* | 630 /* |
| 631 * Spatial scalability settings (ss) | 631 * Spatial scalability settings (ss) |
| 632 */ | 632 */ |
| 633 | 633 |
| 634 /*!\brief Number of spatial coding layers. | 634 /*!\brief Number of spatial coding layers. |
| 635 * | 635 * |
| 636 * This value specifies the number of spatial coding layers to be used. | 636 * This value specifies the number of spatial coding layers to be used. |
| 637 */ | 637 */ |
| 638 unsigned int ss_number_layers; | 638 unsigned int ss_number_layers; |
| 639 | 639 |
| 640 #if CONFIG_SPATIAL_SVC | |
| 641 /*!\brief Enable auto alt reference flags for each spatial layer. | 640 /*!\brief Enable auto alt reference flags for each spatial layer. |
| 642 * | 641 * |
| 643 * These values specify if auto alt reference frame is enabled for each | 642 * These values specify if auto alt reference frame is enabled for each |
| 644 * spatial layer. | 643 * spatial layer. |
| 645 */ | 644 */ |
| 646 int ss_enable_auto_alt_ref[VPX_SS_MAX_LAYERS]; | 645 int ss_enable_auto_alt_ref[VPX_SS_MAX_LAYERS]; |
| 647 #endif | |
| 648 | 646 |
| 649 /*!\brief Target bitrate for each spatial layer. | 647 /*!\brief Target bitrate for each spatial layer. |
| 650 * | 648 * |
| 651 * These values specify the target coding bitrate to be used for each | 649 * These values specify the target coding bitrate to be used for each |
| 652 * spatial layer. | 650 * spatial layer. |
| 653 */ | 651 */ |
| 654 unsigned int ss_target_bitrate[VPX_SS_MAX_LAYERS]; | 652 unsigned int ss_target_bitrate[VPX_SS_MAX_LAYERS]; |
| 655 | 653 |
| 656 /*!\brief Number of temporal coding layers. | 654 /*!\brief Number of temporal coding layers. |
| 657 * | 655 * |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 * | 695 * |
| 698 * Initializes a encoder context using the given interface. Applications | 696 * Initializes a encoder context using the given interface. Applications |
| 699 * should call the vpx_codec_enc_init convenience macro instead of this | 697 * should call the vpx_codec_enc_init convenience macro instead of this |
| 700 * function directly, to ensure that the ABI version number parameter | 698 * function directly, to ensure that the ABI version number parameter |
| 701 * is properly initialized. | 699 * is properly initialized. |
| 702 * | 700 * |
| 703 * If the library was configured with --disable-multithread, this call | 701 * If the library was configured with --disable-multithread, this call |
| 704 * is not thread safe and should be guarded with a lock if being used | 702 * is not thread safe and should be guarded with a lock if being used |
| 705 * in a multithreaded context. | 703 * in a multithreaded context. |
| 706 * | 704 * |
| 707 * In XMA mode (activated by setting VPX_CODEC_USE_XMA in the flags | |
| 708 * parameter), the storage pointed to by the cfg parameter must be | |
| 709 * kept readable and stable until all memory maps have been set. | |
| 710 * | |
| 711 * \param[in] ctx Pointer to this instance's context. | 705 * \param[in] ctx Pointer to this instance's context. |
| 712 * \param[in] iface Pointer to the algorithm interface to use. | 706 * \param[in] iface Pointer to the algorithm interface to use. |
| 713 * \param[in] cfg Configuration to use, if known. May be NULL. | 707 * \param[in] cfg Configuration to use, if known. May be NULL. |
| 714 * \param[in] flags Bitfield of VPX_CODEC_USE_* flags | 708 * \param[in] flags Bitfield of VPX_CODEC_USE_* flags |
| 715 * \param[in] ver ABI version number. Must be set to | 709 * \param[in] ver ABI version number. Must be set to |
| 716 * VPX_ENCODER_ABI_VERSION | 710 * VPX_ENCODER_ABI_VERSION |
| 717 * \retval #VPX_CODEC_OK | 711 * \retval #VPX_CODEC_OK |
| 718 * The decoder algorithm initialized. | 712 * The decoder algorithm initialized. |
| 719 * \retval #VPX_CODEC_MEM_ERROR | 713 * \retval #VPX_CODEC_MEM_ERROR |
| 720 * Memory allocation failed. | 714 * Memory allocation failed. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 734 vpx_codec_enc_init_ver(ctx, iface, cfg, flags, VPX_ENCODER_ABI_VERSION) | 728 vpx_codec_enc_init_ver(ctx, iface, cfg, flags, VPX_ENCODER_ABI_VERSION) |
| 735 | 729 |
| 736 | 730 |
| 737 /*!\brief Initialize multi-encoder instance | 731 /*!\brief Initialize multi-encoder instance |
| 738 * | 732 * |
| 739 * Initializes multi-encoder context using the given interface. | 733 * Initializes multi-encoder context using the given interface. |
| 740 * Applications should call the vpx_codec_enc_init_multi convenience macro | 734 * Applications should call the vpx_codec_enc_init_multi convenience macro |
| 741 * instead of this function directly, to ensure that the ABI version number | 735 * instead of this function directly, to ensure that the ABI version number |
| 742 * parameter is properly initialized. | 736 * parameter is properly initialized. |
| 743 * | 737 * |
| 744 * In XMA mode (activated by setting VPX_CODEC_USE_XMA in the flags | |
| 745 * parameter), the storage pointed to by the cfg parameter must be | |
| 746 * kept readable and stable until all memory maps have been set. | |
| 747 * | |
| 748 * \param[in] ctx Pointer to this instance's context. | 738 * \param[in] ctx Pointer to this instance's context. |
| 749 * \param[in] iface Pointer to the algorithm interface to use. | 739 * \param[in] iface Pointer to the algorithm interface to use. |
| 750 * \param[in] cfg Configuration to use, if known. May be NULL. | 740 * \param[in] cfg Configuration to use, if known. May be NULL. |
| 751 * \param[in] num_enc Total number of encoders. | 741 * \param[in] num_enc Total number of encoders. |
| 752 * \param[in] flags Bitfield of VPX_CODEC_USE_* flags | 742 * \param[in] flags Bitfield of VPX_CODEC_USE_* flags |
| 753 * \param[in] dsf Pointer to down-sampling factors. | 743 * \param[in] dsf Pointer to down-sampling factors. |
| 754 * \param[in] ver ABI version number. Must be set to | 744 * \param[in] ver ABI version number. Must be set to |
| 755 * VPX_ENCODER_ABI_VERSION | 745 * VPX_ENCODER_ABI_VERSION |
| 756 * \retval #VPX_CODEC_OK | 746 * \retval #VPX_CODEC_OK |
| 757 * The decoder algorithm initialized. | 747 * The decoder algorithm initialized. |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 */ | 961 */ |
| 972 const vpx_image_t *vpx_codec_get_preview_frame(vpx_codec_ctx_t *ctx); | 962 const vpx_image_t *vpx_codec_get_preview_frame(vpx_codec_ctx_t *ctx); |
| 973 | 963 |
| 974 | 964 |
| 975 /*!@} - end defgroup encoder*/ | 965 /*!@} - end defgroup encoder*/ |
| 976 #ifdef __cplusplus | 966 #ifdef __cplusplus |
| 977 } | 967 } |
| 978 #endif | 968 #endif |
| 979 #endif // VPX_VPX_ENCODER_H_ | 969 #endif // VPX_VPX_ENCODER_H_ |
| 980 | 970 |
| OLD | NEW |