├── MODULE_LICENSE_FRAUNHOFER ├── OWNERS ├── documentation ├── aacDecoder.pdf └── aacEncoder.pdf ├── .clang-format ├── Android.bp ├── NOTICE ├── libSBRdec └── src │ ├── sbr_deb.cpp │ ├── psdecrom_drm.cpp │ ├── psdec_drm.cpp │ ├── sbr_deb.h │ ├── psdec_drm.h │ ├── huff_dec.h │ ├── psbitdec.h │ ├── env_dec.h │ └── sbrdec_freq_sca.h ├── libAACdec └── src │ ├── rvlcbit.h │ ├── ldfiltbank.h │ ├── aacdec_hcr_bit.h │ ├── usacdec_ace_d4t64.h │ ├── overlapadd.h │ └── aacdec_pns.h ├── libAACenc └── src │ ├── chaosmeasure.h │ ├── spreading.h │ ├── bandwidth.h │ ├── noisedet.h │ ├── tonality.h │ ├── aacenc_pns.h │ ├── ms_stereo.h │ └── pre_echo_control.h ├── libDRCdec └── src │ ├── drcGainDec_preprocess.h │ ├── drcGainDec_init.h │ └── drcDec_rom.h ├── libSACdec └── src │ ├── sac_stp.h │ ├── sac_reshapeBBEnv.h │ └── sac_smoothing.h ├── libMpegTPDec └── src │ └── tp_version.h ├── libMpegTPEnc └── src │ └── tp_version.h ├── libFDK └── include │ ├── FDK_core.h │ ├── x86 │ └── abs_x86.h │ ├── mips │ ├── scale_mips.h │ ├── abs_mips.h │ ├── scramble_mips.h │ └── fixmul_mips.h │ └── fft_rad2.h └── libPCMutils └── src └── version.h /MODULE_LICENSE_FRAUNHOFER: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- 1 | jmtrivi@google.com 2 | gkasten@android.com 3 | -------------------------------------------------------------------------------- /documentation/aacDecoder.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArrowOS/android_external_aac/arrow-10.0/documentation/aacDecoder.pdf -------------------------------------------------------------------------------- /documentation/aacEncoder.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArrowOS/android_external_aac/arrow-10.0/documentation/aacEncoder.pdf -------------------------------------------------------------------------------- /.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | SortIncludes: false 3 | # Do not reformat the Doxygen-style comments in the code 4 | CommentPragmas : "^ * \\\\" 5 | -------------------------------------------------------------------------------- /Android.bp: -------------------------------------------------------------------------------- 1 | cc_library_static { 2 | name: "libFraunhoferAAC", 3 | vendor_available: true, 4 | srcs: [ 5 | "libAACdec/src/*.cpp", 6 | "libAACenc/src/*.cpp", 7 | "libPCMutils/src/*.cpp", 8 | "libFDK/src/*.cpp", 9 | "libSYS/src/*.cpp", 10 | "libMpegTPDec/src/*.cpp", 11 | "libMpegTPEnc/src/*.cpp", 12 | "libSBRdec/src/*.cpp", 13 | "libSBRenc/src/*.cpp", 14 | "libArithCoding/src/*.cpp", 15 | "libDRCdec/src/*.cpp", 16 | "libSACdec/src/*.cpp", 17 | "libSACenc/src/*.cpp", 18 | ], 19 | cflags: [ 20 | "-Werror", 21 | "-Wno-unused-parameter", 22 | "-Wno-#warnings", 23 | "-Wuninitialized", 24 | "-Wno-self-assign", 25 | "-Wno-implicit-fallthrough", 26 | ], 27 | sanitize: { 28 | misc_undefined:[ 29 | "unsigned-integer-overflow", 30 | "signed-integer-overflow", 31 | "bounds", 32 | ], 33 | // Enable CFI if this becomes a shared library. 34 | // cfi: true, 35 | }, 36 | shared_libs: [ 37 | "liblog", 38 | ], 39 | export_include_dirs: [ 40 | "libAACdec/include", 41 | "libAACenc/include", 42 | "libPCMutils/include", 43 | "libFDK/include", 44 | "libSYS/include", 45 | "libMpegTPDec/include", 46 | "libMpegTPEnc/include", 47 | "libSBRdec/include", 48 | "libSBRenc/include", 49 | "libArithCoding/include", 50 | "libDRCdec/include", 51 | "libSACdec/include", 52 | "libSACenc/include", 53 | ], 54 | } 55 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Software License for The Fraunhofer FDK AAC Codec Library for Android 2 | 3 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 4 | Forschung e.V. All rights reserved. 5 | 6 | 1. INTRODUCTION 7 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 8 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 9 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 10 | a wide variety of Android devices. 11 | 12 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 13 | general perceptual audio codecs. AAC-ELD is considered the best-performing 14 | full-bandwidth communications codec by independent studies and is widely 15 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 16 | specifications. 17 | 18 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 19 | those of Fraunhofer) may be obtained through Via Licensing 20 | (www.vialicensing.com) or through the respective patent owners individually for 21 | the purpose of encoding or decoding bit streams in products that are compliant 22 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 23 | Android devices already license these patent claims through Via Licensing or 24 | directly from the patent owners, and therefore FDK AAC Codec software may 25 | already be covered under those patent licenses when it is used for those 26 | licensed purposes only. 27 | 28 | Commercially-licensed AAC software libraries, including floating-point versions 29 | with enhanced sound quality, are also available from Fraunhofer. Users are 30 | encouraged to check the Fraunhofer website for additional applications 31 | information and documentation. 32 | 33 | 2. COPYRIGHT LICENSE 34 | 35 | Redistribution and use in source and binary forms, with or without modification, 36 | are permitted without payment of copyright license fees provided that you 37 | satisfy the following conditions: 38 | 39 | You must retain the complete text of this software license in redistributions of 40 | the FDK AAC Codec or your modifications thereto in source code form. 41 | 42 | You must retain the complete text of this software license in the documentation 43 | and/or other materials provided with redistributions of the FDK AAC Codec or 44 | your modifications thereto in binary form. You must make available free of 45 | charge copies of the complete source code of the FDK AAC Codec and your 46 | modifications thereto to recipients of copies in binary form. 47 | 48 | The name of Fraunhofer may not be used to endorse or promote products derived 49 | from this library without prior written permission. 50 | 51 | You may not charge copyright license fees for anyone to use, copy or distribute 52 | the FDK AAC Codec software or your modifications thereto. 53 | 54 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 55 | that you changed the software and the date of any change. For modified versions 56 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 57 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 58 | AAC Codec Library for Android." 59 | 60 | 3. NO PATENT LICENSE 61 | 62 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 63 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 64 | Fraunhofer provides no warranty of patent non-infringement with respect to this 65 | software. 66 | 67 | You may use this FDK AAC Codec software or modifications thereto only for 68 | purposes that are authorized by appropriate patent licenses. 69 | 70 | 4. DISCLAIMER 71 | 72 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 73 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 74 | including but not limited to the implied warranties of merchantability and 75 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 76 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 77 | or consequential damages, including but not limited to procurement of substitute 78 | goods or services; loss of use, data, or profits, or business interruption, 79 | however caused and on any theory of liability, whether in contract, strict 80 | liability, or tort (including negligence), arising in any way out of the use of 81 | this software, even if advised of the possibility of such damage. 82 | 83 | 5. CONTACT INFORMATION 84 | 85 | Fraunhofer Institute for Integrated Circuits IIS 86 | Attention: Audio and Multimedia Departments - FDK AAC LL 87 | Am Wolfsmantel 33 88 | 91058 Erlangen, Germany 89 | 90 | www.iis.fraunhofer.de/amm 91 | amm-info@iis.fraunhofer.de 92 | 93 | -------------------------------------------------------------------------------- /libSBRdec/src/sbr_deb.cpp: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** SBR decoder library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | /*! 104 | \file 105 | \brief Print selected debug messages 106 | */ 107 | 108 | #include "sbr_deb.h" 109 | -------------------------------------------------------------------------------- /libSBRdec/src/psdecrom_drm.cpp: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** SBR decoder library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | /*! 104 | \file 105 | \brief rom tables for Drm parametric stereo decoder 106 | */ 107 | 108 | #include "psdec_drm.h" 109 | -------------------------------------------------------------------------------- /libSBRdec/src/psdec_drm.cpp: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** SBR decoder library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | /*! 104 | \file 105 | \brief parametric stereo decoder for Digital radio mondial 106 | */ 107 | 108 | #include "psdec_drm.h" 109 | -------------------------------------------------------------------------------- /libSBRdec/src/sbr_deb.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** SBR decoder library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | /*! 104 | \file 105 | \brief Debugging aids 106 | */ 107 | 108 | #ifndef SBR_DEB_H 109 | #define SBR_DEB_H 110 | 111 | #include "sbrdecoder.h" 112 | 113 | #endif 114 | -------------------------------------------------------------------------------- /libSBRdec/src/psdec_drm.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** SBR decoder library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | /*! 104 | \file 105 | \brief parametric stereo decoder for digital radio mondial 106 | */ 107 | 108 | #ifndef PSDEC_DRM_H 109 | #define PSDEC_DRM_H 110 | 111 | #include "sbrdecoder.h" 112 | 113 | #endif /* PSDEC_DRM_H */ 114 | -------------------------------------------------------------------------------- /libSBRdec/src/huff_dec.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** SBR decoder library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | /*! 104 | \file 105 | \brief Huffman Decoder 106 | */ 107 | #ifndef HUFF_DEC_H 108 | #define HUFF_DEC_H 109 | 110 | #include "sbrdecoder.h" 111 | #include "FDK_bitstream.h" 112 | 113 | typedef const SCHAR (*Huffman)[2]; 114 | 115 | int DecodeHuffmanCW(Huffman h, HANDLE_FDK_BITSTREAM hBitBuf); 116 | 117 | #endif 118 | -------------------------------------------------------------------------------- /libAACdec/src/rvlcbit.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC decoder library ****************************** 96 | 97 | Author(s): Robert Weidner (DSP Solutions) 98 | 99 | Description: RVLC Decoder: Bitstream reading 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef RVLCBIT_H 104 | #define RVLCBIT_H 105 | 106 | #include "rvlc.h" 107 | 108 | UCHAR rvlcReadBitFromBitstream(HANDLE_FDK_BITSTREAM bs, const INT bsAnchor, 109 | INT *pPosition, UCHAR readDirection); 110 | 111 | #endif /* RVLCBIT_H */ 112 | -------------------------------------------------------------------------------- /libAACenc/src/chaosmeasure.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC encoder library ****************************** 96 | 97 | Author(s): M. Werner 98 | 99 | Description: Chaos measure calculation 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef CHAOSMEASURE_H 104 | #define CHAOSMEASURE_H 105 | 106 | #include "common_fix.h" 107 | #include "psy_const.h" 108 | 109 | void FDKaacEnc_CalculateChaosMeasure(FIXP_DBL *paMDCTDataNM0, INT numberOfLines, 110 | FIXP_DBL *chaosMeasure); 111 | 112 | #endif /* CHAOSMEASURE_H */ 113 | -------------------------------------------------------------------------------- /libAACdec/src/ldfiltbank.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC decoder library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: low delay filterbank interface 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef LDFILTBANK_H 104 | #define LDFILTBANK_H 105 | 106 | #include "common_fix.h" 107 | 108 | int InvMdctTransformLowDelay_fdk(FIXP_DBL *mdctdata_m, const int mdctdata_e, 109 | FIXP_PCM *mdctOut, FIXP_DBL *fs_buffer, 110 | const int frameLength); 111 | 112 | #endif 113 | -------------------------------------------------------------------------------- /libDRCdec/src/drcGainDec_preprocess.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /************************* MPEG-D DRC decoder library ************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef DRCGAINDEC_PREPROCESS_H 104 | #define DRCGAINDEC_PREPROCESS_H 105 | 106 | DRC_ERROR 107 | prepareDrcGain(HANDLE_DRC_GAIN_DECODER hGainDec, 108 | HANDLE_UNI_DRC_GAIN hUniDrcGain, const FIXP_SGL compress, 109 | const FIXP_SGL boost, const FIXP_DBL loudnessNormalizationGainDb, 110 | const int activeDrcIndex); 111 | #endif 112 | -------------------------------------------------------------------------------- /libSACdec/src/sac_stp.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /*********************** MPEG surround decoder library ************************* 96 | 97 | Author(s): 98 | 99 | Description: SAC Dec subband processing 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef SAC_STP_H 104 | #define SAC_STP_H 105 | 106 | #include "sac_dec.h" 107 | 108 | SACDEC_ERROR subbandTPCreate(HANDLE_STP_DEC *hStpDec); 109 | 110 | SACDEC_ERROR subbandTPInit(HANDLE_STP_DEC self); 111 | 112 | SACDEC_ERROR subbandTPApply(spatialDec *self, const SPATIAL_BS_FRAME *frame); 113 | void subbandTPDestroy(HANDLE_STP_DEC *hStpDec); 114 | 115 | #endif 116 | -------------------------------------------------------------------------------- /libSBRdec/src/psbitdec.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** SBR decoder library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef PSBITDEC_H 104 | #define PSBITDEC_H 105 | 106 | #include "sbrdecoder.h" 107 | 108 | #include "psdec.h" 109 | 110 | unsigned int ReadPsData(struct PS_DEC *h_ps_d, HANDLE_FDK_BITSTREAM hBs, 111 | int nBitsLeft); 112 | 113 | int DecodePs(struct PS_DEC *h_ps_d, const UCHAR frameError, 114 | PS_DEC_COEFFICIENTS *pCoef); 115 | 116 | #endif /* PSBITDEC_H */ 117 | -------------------------------------------------------------------------------- /libSACdec/src/sac_reshapeBBEnv.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /*********************** MPEG surround decoder library ************************* 96 | 97 | Author(s): 98 | 99 | Description: SAC Dec guided envelope shaping 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef SAC_RESHAPEBBENV_H 104 | #define SAC_RESHAPEBBENV_H 105 | 106 | #include "sac_dec_interface.h" 107 | 108 | #define BB_ENV_SIZE 9 /* END_BB_ENV - START_BB_ENV */ 109 | 110 | void initBBEnv(spatialDec *self, int initStatesFlag); 111 | void SpatialDecReshapeBBEnv(spatialDec *self, const SPATIAL_BS_FRAME *frame, 112 | int ts); 113 | 114 | #endif 115 | -------------------------------------------------------------------------------- /libSACdec/src/sac_smoothing.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /*********************** MPEG surround decoder library ************************* 96 | 97 | Author(s): 98 | 99 | Description: SAC Dec parameter smoothing 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef SAC_SMOOTHING_H 104 | #define SAC_SMOOTHING_H 105 | 106 | #include "sac_dec.h" 107 | 108 | void initParameterSmoothing(spatialDec *self); 109 | void SpatialDecSmoothM1andM2(spatialDec *self, const SPATIAL_BS_FRAME *frame, 110 | int ps); 111 | void SpatialDecSmoothOPD(spatialDec *self, const SPATIAL_BS_FRAME *frame, 112 | int ps); 113 | 114 | #endif 115 | -------------------------------------------------------------------------------- /libAACenc/src/spreading.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC encoder library ****************************** 96 | 97 | Author(s): M.Werner 98 | 99 | Description: Spreading of energy and weighted tonality 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef SPREADING_H 104 | #define SPREADING_H 105 | 106 | #include "common_fix.h" 107 | 108 | void FDKaacEnc_SpreadingMax(const INT pbCnt, 109 | const FIXP_DBL *RESTRICT maskLowFactor, 110 | const FIXP_DBL *RESTRICT maskHighFactor, 111 | FIXP_DBL *RESTRICT pbSpreadEnergy); 112 | 113 | #endif /* #ifndef SPREADING_H */ 114 | -------------------------------------------------------------------------------- /libMpegTPDec/src/tp_version.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /******************* MPEG transport format decoder library ********************* 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | #if !defined(TP_VERSION_H) 104 | #define TP_VERSION_H 105 | 106 | /* library info */ 107 | #define TP_LIB_VL0 3 108 | #define TP_LIB_VL1 0 109 | #define TP_LIB_VL2 0 110 | #define TP_LIB_TITLE "MPEG Transport" 111 | #ifdef __ANDROID__ 112 | #define TP_LIB_BUILD_DATE "" 113 | #define TP_LIB_BUILD_TIME "" 114 | #else 115 | #define TP_LIB_BUILD_DATE __DATE__ 116 | #define TP_LIB_BUILD_TIME __TIME__ 117 | #endif 118 | #endif /* !defined(TP_VERSION_H) */ 119 | -------------------------------------------------------------------------------- /libMpegTPEnc/src/tp_version.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /******************* MPEG transport format encoder library ********************* 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | #if !defined(TP_VERSION_H) 104 | #define TP_VERSION_H 105 | 106 | /* library info */ 107 | #define TP_LIB_VL0 3 108 | #define TP_LIB_VL1 0 109 | #define TP_LIB_VL2 0 110 | #define TP_LIB_TITLE "MPEG Transport" 111 | #ifdef __ANDROID__ 112 | #define TP_LIB_BUILD_DATE "" 113 | #define TP_LIB_BUILD_TIME "" 114 | #else 115 | #define TP_LIB_BUILD_DATE __DATE__ 116 | #define TP_LIB_BUILD_TIME __TIME__ 117 | #endif 118 | #endif /* !defined(TP_VERSION_H) */ 119 | -------------------------------------------------------------------------------- /libAACenc/src/bandwidth.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC encoder library ****************************** 96 | 97 | Author(s): M. Schug / A. Groeschel 98 | 99 | Description: bandwidth expert 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef BANDWIDTH_H 104 | #define BANDWIDTH_H 105 | 106 | #include "qc_data.h" 107 | 108 | AAC_ENCODER_ERROR FDKaacEnc_DetermineBandWidth( 109 | const INT proposedBandWidth, const INT bitrate, 110 | const AACENC_BITRATE_MODE bitrateMode, const INT sampleRate, 111 | const INT frameLength, const CHANNEL_MAPPING *const cm, 112 | const CHANNEL_MODE encoderMode, INT *const bandWidth); 113 | 114 | #endif /* BANDWIDTH_H */ 115 | -------------------------------------------------------------------------------- /libFDK/include/FDK_core.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /******************* Library for basic calculation routines ******************** 96 | 97 | Author(s): Manuel Jander 98 | 99 | Description: FDK tools versioning support 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef FDK_CORE_H 104 | #define FDK_CORE_H 105 | 106 | #include "FDK_audio.h" 107 | 108 | #ifdef __cplusplus 109 | extern "C" { 110 | #endif 111 | 112 | /** @brief Get FDK_tools library information. 113 | * @return Return 0 on success and a negative errorcode on failure (see 114 | * errorcodes.h). 115 | */ 116 | int FDK_toolsGetLibInfo(LIB_INFO *info); 117 | 118 | #ifdef __cplusplus 119 | } 120 | #endif 121 | 122 | #endif 123 | -------------------------------------------------------------------------------- /libPCMutils/src/version.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** PCM utility library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | #if !defined(VERSION_H) 104 | #define VERSION_H 105 | 106 | /* library info */ 107 | #define PCMUTIL_LIB_VL0 3 108 | #define PCMUTIL_LIB_VL1 0 109 | #define PCMUTIL_LIB_VL2 0 110 | #define PCMUTIL_LIB_TITLE "PCM Utility Lib" 111 | #ifdef __ANDROID__ 112 | #define PCMUTIL_LIB_BUILD_DATE "" 113 | #define PCMUTIL_LIB_BUILD_TIME "" 114 | #else 115 | #define PCMUTIL_LIB_BUILD_DATE __DATE__ 116 | #define PCMUTIL_LIB_BUILD_TIME __TIME__ 117 | #endif 118 | 119 | #endif /* !defined(VERSION_H) */ 120 | -------------------------------------------------------------------------------- /libAACenc/src/noisedet.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC encoder library ****************************** 96 | 97 | Author(s): M. Lohwasser 98 | 99 | Description: noisedet.h 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef NOISEDET_H 104 | #define NOISEDET_H 105 | 106 | #include "common_fix.h" 107 | 108 | #include "pnsparam.h" 109 | #include "psy_data.h" 110 | 111 | void FDKaacEnc_noiseDetect(FIXP_DBL *mdctSpectrum, INT *sfbMaxScaleSpec, 112 | INT sfbActive, const INT *sfbOffset, 113 | FIXP_SGL noiseFuzzyMeasure[], NOISEPARAMS *np, 114 | FIXP_SGL *sfbtonality); 115 | 116 | #endif /* NOISEDET_H */ 117 | -------------------------------------------------------------------------------- /libAACdec/src/aacdec_hcr_bit.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC decoder library ****************************** 96 | 97 | Author(s): Robert Weidner (DSP Solutions) 98 | 99 | Description: HCR Decoder: Bitstream reading prototypes 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef AACDEC_HCR_BIT_H 104 | #define AACDEC_HCR_BIT_H 105 | 106 | #include "aacdec_hcr.h" 107 | 108 | UCHAR ToggleReadDirection(UCHAR readDirection); 109 | 110 | UINT HcrGetABitFromBitstream(HANDLE_FDK_BITSTREAM bs, const INT bsAnchor, 111 | INT *pLeftStartOfSegment, 112 | INT *pRightStartOfSegment, UCHAR readDirection); 113 | 114 | #endif /* AACDEC_HCR_BIT_H */ 115 | -------------------------------------------------------------------------------- /libSBRdec/src/env_dec.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** SBR decoder library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | /*! 104 | \file 105 | \brief Envelope decoding 106 | */ 107 | #ifndef ENV_DEC_H 108 | #define ENV_DEC_H 109 | 110 | #include "sbrdecoder.h" 111 | #include "env_extr.h" 112 | 113 | void decodeSbrData(HANDLE_SBR_HEADER_DATA hHeaderData, 114 | HANDLE_SBR_FRAME_DATA h_data_left, 115 | HANDLE_SBR_PREV_FRAME_DATA h_prev_data_left, 116 | HANDLE_SBR_FRAME_DATA h_data_right, 117 | HANDLE_SBR_PREV_FRAME_DATA h_prev_data_right); 118 | 119 | #endif 120 | -------------------------------------------------------------------------------- /libAACdec/src/usacdec_ace_d4t64.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC decoder library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: ACELP 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef USACDEC_ACE_D4T64_H 104 | #define USACDEC_ACE_D4T64_H 105 | 106 | #include "common_fix.h" 107 | 108 | /* Data type definition for the fixed codebook vector */ 109 | #define FIXP_COD FIXP_SGL 110 | #define FX_COD2FX_DBL(x) (FX_SGL2FX_DBL(x)) 111 | #define FX_DBL2FX_COD(x) FX_DBL2FX_SGL((x) + (FIXP_DBL)0x8000) 112 | #define FX_SGL2FX_COD(x) (x) 113 | #define COD_BITS FRACT_BITS 114 | 115 | void D_ACELP_decode_4t64(SHORT index[], int nbits, FIXP_COD code[]); 116 | 117 | #endif /* USACDEC_ACE_D4T64_H */ 118 | -------------------------------------------------------------------------------- /libAACdec/src/overlapadd.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC decoder library ****************************** 96 | 97 | Author(s): Josef Hoepfl 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef OVERLAPADD_H 104 | #define OVERLAPADD_H 105 | 106 | #include "common_fix.h" 107 | 108 | /* ELD uses different overlap which is twice the frame size: */ 109 | #define OverlapBufferSize (768) 110 | 111 | typedef FIXP_DBL SPECTRUM[1024]; 112 | typedef FIXP_DBL* SPECTRAL_PTR; 113 | 114 | #define SPEC_LONG(ptr) (ptr) 115 | #define SPEC(ptr, w, gl) ((ptr) + ((w) * (gl))) 116 | 117 | #define SPEC_TCX(ptr, f, gl, fb) \ 118 | ((ptr) + ((f) * (gl * 2) * (((fb) == 0) ? 1 : 2))) 119 | 120 | #endif /* #ifndef OVERLAPADD_H */ 121 | -------------------------------------------------------------------------------- /libDRCdec/src/drcGainDec_init.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2019 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /************************* MPEG-D DRC decoder library ************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef DRCGAINDEC_INIT_H 104 | #define DRCGAINDEC_INIT_H 105 | 106 | DRC_ERROR 107 | initGainDec(HANDLE_DRC_GAIN_DECODER hGainDec); 108 | 109 | void initDrcGainBuffers(const int frameSize, DRC_GAIN_BUFFERS* drcGainBuffers); 110 | 111 | DRC_ERROR 112 | initActiveDrc(HANDLE_DRC_GAIN_DECODER hGainDec, 113 | HANDLE_UNI_DRC_CONFIG hUniDrcConfig, const int drcSetIdSelected, 114 | const int downmixIdSelected); 115 | 116 | DRC_ERROR 117 | initActiveDrcOffset(HANDLE_DRC_GAIN_DECODER hGainDec); 118 | 119 | #endif 120 | -------------------------------------------------------------------------------- /libFDK/include/x86/abs_x86.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /******************* Library for basic calculation routines ******************** 96 | 97 | Author(s): 98 | 99 | Description: fixed point intrinsics 100 | 101 | *******************************************************************************/ 102 | 103 | #if !defined(ABS_X86_H) 104 | #define ABS_X86_H 105 | 106 | #if defined(__x86__) 107 | 108 | #if defined(__x86_64__) 109 | 110 | inline INT fixabs_D(INT x) { return ((x) > (INT)(0)) ? (x) : -(x); } 111 | inline INT fixabs_S(INT x) { return ((x) > (INT)(0)) ? (x) : -(x); } 112 | 113 | #define fixabs_I(x) fixabs_D(x) 114 | 115 | #define FUNCTION_fixabs_S 116 | #define FUNCTION_fixabs_D 117 | #define FUNCTION_fixabs_I 118 | 119 | #endif /* __x86_64__ */ 120 | 121 | #endif /*__x86__ */ 122 | 123 | #endif /* !defined(ABS_X86_H) */ 124 | -------------------------------------------------------------------------------- /libAACenc/src/tonality.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC encoder library ****************************** 96 | 97 | Author(s): M. Lohwasser 98 | 99 | Description: Calculate tonality index 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef TONALITY_H 104 | #define TONALITY_H 105 | 106 | #include "common_fix.h" 107 | #include "chaosmeasure.h" 108 | 109 | void FDKaacEnc_CalculateFullTonality(FIXP_DBL *RESTRICT spectrum, 110 | INT *RESTRICT sfbMaxScaleSpec, 111 | FIXP_DBL *RESTRICT sfbEnergyLD64, 112 | FIXP_SGL *RESTRICT sfbTonality, INT sfbCnt, 113 | const INT *sfbOffset, INT usePns); 114 | 115 | #endif /* TONALITY_H */ 116 | -------------------------------------------------------------------------------- /libAACenc/src/aacenc_pns.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC encoder library ****************************** 96 | 97 | Author(s): M. Lohwasser 98 | 99 | Description: pns.h 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef AACENC_PNS_H 104 | #define AACENC_PNS_H 105 | 106 | #include "common_fix.h" 107 | #include "pnsparam.h" 108 | 109 | #define NO_NOISE_PNS FDK_INT_MIN 110 | 111 | typedef struct { 112 | NOISEPARAMS np; 113 | FIXP_DBL minCorrelationEnergy; 114 | FIXP_DBL noiseCorrelationThresh; 115 | INT usePns; 116 | } PNS_CONFIG; 117 | 118 | typedef struct { 119 | FIXP_SGL noiseFuzzyMeasure[MAX_GROUPED_SFB]; 120 | FIXP_DBL noiseEnergyCorrelation[MAX_GROUPED_SFB]; 121 | INT pnsFlag[MAX_GROUPED_SFB]; 122 | } PNS_DATA; 123 | 124 | #endif /* AACENC_PNS_H */ 125 | -------------------------------------------------------------------------------- /libFDK/include/mips/scale_mips.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /******************* Library for basic calculation routines ******************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef SCALE_MIPS_H 104 | #define SCALE_MIPS_H 105 | 106 | #if defined(__mips_dsp) 107 | 108 | /*! 109 | * 110 | * \brief Scale input value by 2^{scale} and saturate output to 2^{dBits-1} 111 | * \return scaled and saturated value 112 | * 113 | * This macro scales src value right or left and applies saturation to 114 | * (2^dBits)-1 maxima output. 115 | */ 116 | #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \ 117 | (__builtin_mips_shll_s_w((src) >> (scale), (DFRACT_BITS - (dBits))) >> \ 118 | (DFRACT_BITS - (dBits))) 119 | 120 | #endif /*__mips_dsp */ 121 | 122 | #endif /* SCALE_MIPS_H */ 123 | -------------------------------------------------------------------------------- /libDRCdec/src/drcDec_rom.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /************************* MPEG-D DRC decoder library ************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef DRCDEC_ROM_H 104 | #define DRCDEC_ROM_H 105 | 106 | extern const SCHAR deltaGain_codingProfile_0_1_huffman[24][2]; 107 | extern const SCHAR deltaGain_codingProfile_2_huffman[48][2]; 108 | 109 | extern const FIXP_SGL slopeSteepness[]; 110 | extern const SCHAR slopeSteepness_huffman[14][2]; 111 | 112 | extern const FIXP_DBL downmixCoeff[]; 113 | extern const FIXP_DBL downmixCoeffV1[]; 114 | 115 | extern const CUSTOM_DRC_CHAR_SIGMOID cicpDrcCharSigmoidLeft[]; 116 | extern const CUSTOM_DRC_CHAR_SIGMOID cicpDrcCharSigmoidRight[]; 117 | extern const CUSTOM_DRC_CHAR_NODES cicpDrcCharNodesLeft[]; 118 | extern const CUSTOM_DRC_CHAR_NODES cicpDrcCharNodesRight[]; 119 | 120 | #endif 121 | -------------------------------------------------------------------------------- /libFDK/include/fft_rad2.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /******************* Library for basic calculation routines ******************** 96 | 97 | Author(s): M. Lohwasser, M. Gayer 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef FFT_RAD2_H 104 | #define FFT_RAD2_H 105 | 106 | #include "common_fix.h" 107 | 108 | /** 109 | * \brief Performe an inplace complex valued FFT of 2^n length 110 | * 111 | * \param x Input/Output data buffer. The input data must have at least 1 bit 112 | * scale headroom. The values are interleaved, real/imag pairs. 113 | * \param ldn log2 of FFT length 114 | * \param trigdata Pointer to a sinetable of a length of at least (2^ldn)/2 sine 115 | * values. 116 | * \param trigDataSize length of the sinetable "trigdata". 117 | */ 118 | void dit_fft(FIXP_DBL *x, const INT ldn, const FIXP_STP *trigdata, 119 | const INT trigDataSize); 120 | 121 | #endif /* FFT_RAD2_H */ 122 | -------------------------------------------------------------------------------- /libFDK/include/mips/abs_mips.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /******************* Library for basic calculation routines ******************** 96 | 97 | Author(s): 98 | 99 | Description: fixed point intrinsics 100 | 101 | *******************************************************************************/ 102 | 103 | #if !defined(ABS_MIPS_H) 104 | #define ABS_MIPS_H 105 | 106 | #if defined(__mips__) 107 | 108 | #if defined(__GNUC__) && defined(__mips__) 109 | 110 | #if defined(__mips_dsp) 111 | #define FUNCTION_fixabs_D 112 | #define FUNCTION_fixabs_I 113 | #define FUNCTION_fixabs_S 114 | inline FIXP_DBL fixabs_D(FIXP_DBL x) { return __builtin_mips_absq_s_w(x); } 115 | inline FIXP_SGL fixabs_S(FIXP_SGL x) { 116 | return ((x) > (FIXP_SGL)(0)) ? (x) : -(x); 117 | } 118 | inline INT fixabs_I(INT x) { return __builtin_mips_absq_s_w(x); } 119 | #endif /* __mips_dsp */ 120 | 121 | #endif /* defined(__GNUC__) && defined(__mips__) */ 122 | 123 | #endif /*__mips__ */ 124 | 125 | #endif /* !defined(ABS_MIPS_H) */ 126 | -------------------------------------------------------------------------------- /libAACenc/src/ms_stereo.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC encoder library ****************************** 96 | 97 | Author(s): M.Werner 98 | 99 | Description: MS stereo processing 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef MS_STEREO_H 104 | #define MS_STEREO_H 105 | 106 | #include "interface.h" 107 | 108 | void FDKaacEnc_MsStereoProcessing(PSY_DATA *RESTRICT psyData[(2)], 109 | PSY_OUT_CHANNEL *psyOutChannel[2], 110 | const INT *isBook, INT *msDigest, /* output */ 111 | INT *msMask, /* output */ 112 | const INT allowMS, const INT sfbCnt, 113 | const INT sfbPerGroup, 114 | const INT maxSfbPerGroup, 115 | const INT *sfbOffset); 116 | 117 | #endif /* MS_STEREO_H */ 118 | -------------------------------------------------------------------------------- /libFDK/include/mips/scramble_mips.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /******************* Library for basic calculation routines ******************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef SCRAMBLE_MIPS_H 104 | #define SCRAMBLE_MIPS_H 105 | 106 | #define FUNCTION_scramble 107 | 108 | #if defined(FUNCTION_scramble) 109 | inline void scramble(FIXP_DBL *x, INT n) { 110 | INT m, j; 111 | int ldn = 1; 112 | do { 113 | ldn++; 114 | } while ((1 << ldn) < n); 115 | 116 | for (m = 1, j = 0; m < n - 1; m++) { 117 | j = __builtin_mips_bitrev(m) >> (16 - ldn); 118 | 119 | if (j > m) { 120 | FIXP_DBL tmp; 121 | tmp = x[2 * m]; 122 | x[2 * m] = x[2 * j]; 123 | x[2 * j] = tmp; 124 | 125 | tmp = x[2 * m + 1]; 126 | x[2 * m + 1] = x[2 * j + 1]; 127 | x[2 * j + 1] = tmp; 128 | } 129 | } 130 | } 131 | #endif 132 | 133 | #endif /* SCRAMBLE_MIPS_H */ 134 | -------------------------------------------------------------------------------- /libAACenc/src/pre_echo_control.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC encoder library ****************************** 96 | 97 | Author(s): M.Werner 98 | 99 | Description: Pre echo control 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef PRE_ECHO_CONTROL_H 104 | #define PRE_ECHO_CONTROL_H 105 | 106 | #include "common_fix.h" 107 | 108 | void FDKaacEnc_InitPreEchoControl(FIXP_DBL *pbThresholdnm1, INT *calcPreEcho, 109 | INT numPb, FIXP_DBL *sfbPcmQuantThreshold, 110 | INT *mdctScalenm1); 111 | 112 | void FDKaacEnc_PreEchoControl(FIXP_DBL *pbThresholdNm1, INT calcPreEcho, 113 | INT numPb, INT maxAllowedIncreaseFactor, 114 | FIXP_SGL minRemainingThresholdFactor, 115 | FIXP_DBL *pbThreshold, INT mdctScale, 116 | INT *mdctScalenm1); 117 | 118 | #endif 119 | -------------------------------------------------------------------------------- /libSBRdec/src/sbrdec_freq_sca.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** SBR decoder library ****************************** 96 | 97 | Author(s): 98 | 99 | Description: 100 | 101 | *******************************************************************************/ 102 | 103 | /*! 104 | \file 105 | \brief Frequency scale prototypes 106 | */ 107 | #ifndef SBRDEC_FREQ_SCA_H 108 | #define SBRDEC_FREQ_SCA_H 109 | 110 | #include "sbrdecoder.h" 111 | #include "env_extr.h" 112 | 113 | typedef enum { DUAL, QUAD } SBR_RATE; 114 | 115 | SBR_ERROR 116 | sbrdecUpdateFreqScale(UCHAR *v_k_master, UCHAR *numMaster, UINT fs, 117 | HANDLE_SBR_HEADER_DATA headerData, UINT flags); 118 | 119 | void sbrdecDownSampleLoRes(UCHAR *v_result, UCHAR num_result, 120 | UCHAR *freqBandTableRef, UCHAR num_Ref); 121 | 122 | void shellsort(UCHAR *in, UCHAR n); 123 | 124 | SBR_ERROR 125 | resetFreqBandTables(HANDLE_SBR_HEADER_DATA hHeaderData, const UINT flags); 126 | 127 | #endif 128 | -------------------------------------------------------------------------------- /libFDK/include/mips/fixmul_mips.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /******************* Library for basic calculation routines ******************** 96 | 97 | Author(s): 98 | 99 | Description: fixed point intrinsics 100 | 101 | *******************************************************************************/ 102 | 103 | #if !defined(FIXMUL_MIPS_H) 104 | #define FIXMUL_MIPS_H 105 | 106 | #if defined(__mips__) 107 | 108 | #if (__GNUC__) && defined(__mips__) 109 | /* MIPS GCC based compiler */ 110 | 111 | #define FUNCTION_fixmuldiv2_DD 112 | 113 | #define FUNCTION_fixmuldiv2BitExact_DD 114 | #define fixmuldiv2BitExact_DD(a, b) fixmuldiv2_DD(a, b) 115 | 116 | inline INT fixmuldiv2_DD(const INT a, const INT b) { 117 | INT result; 118 | 119 | result = ((long long)a * b) >> 32; 120 | 121 | return result; 122 | } 123 | 124 | #endif /* (__GNUC__) && defined(__mips__) */ 125 | 126 | #endif /* __mips__ */ 127 | 128 | #define FUNCTION_fixmulBitExact_DD 129 | #define fixmulBitExact_DD fixmul_DD 130 | #endif /* !defined(FIXMUL_MIPS_H) */ 131 | -------------------------------------------------------------------------------- /libAACdec/src/aacdec_pns.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------- 2 | Software License for The Fraunhofer FDK AAC Codec Library for Android 3 | 4 | © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten 5 | Forschung e.V. All rights reserved. 6 | 7 | 1. INTRODUCTION 8 | The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software 9 | that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding 10 | scheme for digital audio. This FDK AAC Codec software is intended to be used on 11 | a wide variety of Android devices. 12 | 13 | AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient 14 | general perceptual audio codecs. AAC-ELD is considered the best-performing 15 | full-bandwidth communications codec by independent studies and is widely 16 | deployed. AAC has been standardized by ISO and IEC as part of the MPEG 17 | specifications. 18 | 19 | Patent licenses for necessary patent claims for the FDK AAC Codec (including 20 | those of Fraunhofer) may be obtained through Via Licensing 21 | (www.vialicensing.com) or through the respective patent owners individually for 22 | the purpose of encoding or decoding bit streams in products that are compliant 23 | with the ISO/IEC MPEG audio standards. Please note that most manufacturers of 24 | Android devices already license these patent claims through Via Licensing or 25 | directly from the patent owners, and therefore FDK AAC Codec software may 26 | already be covered under those patent licenses when it is used for those 27 | licensed purposes only. 28 | 29 | Commercially-licensed AAC software libraries, including floating-point versions 30 | with enhanced sound quality, are also available from Fraunhofer. Users are 31 | encouraged to check the Fraunhofer website for additional applications 32 | information and documentation. 33 | 34 | 2. COPYRIGHT LICENSE 35 | 36 | Redistribution and use in source and binary forms, with or without modification, 37 | are permitted without payment of copyright license fees provided that you 38 | satisfy the following conditions: 39 | 40 | You must retain the complete text of this software license in redistributions of 41 | the FDK AAC Codec or your modifications thereto in source code form. 42 | 43 | You must retain the complete text of this software license in the documentation 44 | and/or other materials provided with redistributions of the FDK AAC Codec or 45 | your modifications thereto in binary form. You must make available free of 46 | charge copies of the complete source code of the FDK AAC Codec and your 47 | modifications thereto to recipients of copies in binary form. 48 | 49 | The name of Fraunhofer may not be used to endorse or promote products derived 50 | from this library without prior written permission. 51 | 52 | You may not charge copyright license fees for anyone to use, copy or distribute 53 | the FDK AAC Codec software or your modifications thereto. 54 | 55 | Your modified versions of the FDK AAC Codec must carry prominent notices stating 56 | that you changed the software and the date of any change. For modified versions 57 | of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android" 58 | must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK 59 | AAC Codec Library for Android." 60 | 61 | 3. NO PATENT LICENSE 62 | 63 | NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without 64 | limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE. 65 | Fraunhofer provides no warranty of patent non-infringement with respect to this 66 | software. 67 | 68 | You may use this FDK AAC Codec software or modifications thereto only for 69 | purposes that are authorized by appropriate patent licenses. 70 | 71 | 4. DISCLAIMER 72 | 73 | This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright 74 | holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, 75 | including but not limited to the implied warranties of merchantability and 76 | fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 77 | CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, 78 | or consequential damages, including but not limited to procurement of substitute 79 | goods or services; loss of use, data, or profits, or business interruption, 80 | however caused and on any theory of liability, whether in contract, strict 81 | liability, or tort (including negligence), arising in any way out of the use of 82 | this software, even if advised of the possibility of such damage. 83 | 84 | 5. CONTACT INFORMATION 85 | 86 | Fraunhofer Institute for Integrated Circuits IIS 87 | Attention: Audio and Multimedia Departments - FDK AAC LL 88 | Am Wolfsmantel 33 89 | 91058 Erlangen, Germany 90 | 91 | www.iis.fraunhofer.de/amm 92 | amm-info@iis.fraunhofer.de 93 | ----------------------------------------------------------------------------- */ 94 | 95 | /**************************** AAC decoder library ****************************** 96 | 97 | Author(s): Josef Hoepfl 98 | 99 | Description: perceptual noise substitution tool 100 | 101 | *******************************************************************************/ 102 | 103 | #ifndef AACDEC_PNS_H 104 | #define AACDEC_PNS_H 105 | 106 | #include "common_fix.h" 107 | 108 | #define NO_OFBANDS ((8 * 16)) 109 | 110 | typedef struct { 111 | UCHAR correlated[NO_OFBANDS]; 112 | } CPnsInterChannelData; 113 | 114 | typedef struct { 115 | CPnsInterChannelData *pPnsInterChannelData; 116 | UCHAR pnsUsed[NO_OFBANDS]; 117 | int CurrentEnergy; 118 | UCHAR PnsActive; 119 | INT *currentSeed; 120 | INT *randomSeed; 121 | } CPnsData; 122 | 123 | void CPns_UpdateNoiseState(CPnsData *pPnsData, INT *currentSeed, 124 | INT *randomSeed); 125 | 126 | void CPns_ResetData(CPnsData *pPnsData, 127 | CPnsInterChannelData *pPnsInterChannelData); 128 | 129 | #endif /* #ifndef AACDEC_PNS_H */ 130 | --------------------------------------------------------------------------------