mirror of
https://github.com/nu774/fdkaac.git
synced 2025-06-05 23:29:14 +02:00
Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
f2f9c1b4bb | |||
836367a7fe | |||
ca65cffdd3 | |||
36424b121c | |||
2329b4b1eb | |||
4c963ef139 | |||
3f7b6abd20 | |||
4571d9d76a | |||
4682fe4961 | |||
c37edc6051 | |||
07c06b4c3e | |||
4242ad726f | |||
c8cc3fb57e | |||
622e065bd8 | |||
cf200f9563 | |||
fd2a1e77b3 | |||
17799e39b9 | |||
19a6b7f10c | |||
80b476bad9 | |||
e403976bf6 | |||
4080ab21e6 | |||
be991a6abe | |||
4c9167c1cb | |||
c77dae004d |
52
ChangeLog
52
ChangeLog
@ -1,6 +1,54 @@
|
|||||||
|
2016-08-26 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
|
* update ChangeLog [HEAD -> master]
|
||||||
|
|
||||||
|
* bump [origin/master]
|
||||||
|
|
||||||
|
* Ticket #23: quit supporting MPEG-2 AOT
|
||||||
|
|
||||||
|
2016-08-25 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
|
* fix libfdkaac encoder version check for SBR_RATIO availability
|
||||||
|
|
||||||
|
* Use our SBR signaling implementation on old libfdkaac
|
||||||
|
|
||||||
|
2015-10-10 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
|
* improve MSVC project
|
||||||
|
|
||||||
|
2015-09-21 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
|
* fix indents
|
||||||
|
|
||||||
|
* update compat layer, mainly for MSVC14 issue
|
||||||
|
|
||||||
|
2015-07-22 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
|
* add platformtoolset in vcxproj
|
||||||
|
|
||||||
|
* fix build issue on MSVC14
|
||||||
|
|
||||||
|
2015-06-12 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
|
* remove an unused variable decl
|
||||||
|
|
||||||
|
* remove an unused variable decl
|
||||||
|
|
||||||
|
* m4af: move internal struct m4af_itmf_entry_t from header
|
||||||
|
|
||||||
|
2015-02-14 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
|
* update ChangeLog
|
||||||
|
|
||||||
|
* bump version [v0.6.2]
|
||||||
|
|
||||||
|
* take stco->co64 switch due to mdat relocation into account on finalizing m4a
|
||||||
|
|
||||||
|
* fix incorrect iTunSMPB written when interrupted by signals
|
||||||
|
|
||||||
2014-09-13 nu774 <honeycomb77@gmail.com>
|
2014-09-13 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
* update ChangeLog [HEAD]
|
* update ChangeLog
|
||||||
|
|
||||||
* bump version [v0.6.1]
|
* bump version [v0.6.1]
|
||||||
|
|
||||||
@ -10,7 +58,7 @@
|
|||||||
|
|
||||||
2014-08-17 nu774 <honeycomb77@gmail.com>
|
2014-08-17 nu774 <honeycomb77@gmail.com>
|
||||||
|
|
||||||
* update INSTALL [origin/master]
|
* update INSTALL
|
||||||
|
|
||||||
* add m4 macros
|
* add m4 macros
|
||||||
|
|
||||||
|
@ -1,83 +1,79 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
<Platform>Win32</Platform>
|
<Platform>Win32</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
<ProjectConfiguration Include="Release|Win32">
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
<Configuration>Release</Configuration>
|
<Configuration>Release</Configuration>
|
||||||
<Platform>Win32</Platform>
|
<Platform>Win32</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>{D7D4B982-8B16-4A10-8B1C-9527BD789709}</ProjectGuid>
|
<ProjectGuid>{D7D4B982-8B16-4A10-8B1C-9527BD789709}</ProjectGuid>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<RootNamespace>fdkaac</RootNamespace>
|
<RootNamespace>fdk-aac</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<PlatformToolset Condition="'$(PlatformToolset)' == '' and '$(MSBuildToolsVersion)' == '15.0'">v141_xp</PlatformToolset>
|
||||||
|
<PlatformToolset Condition="'$(PlatformToolset)' == '' and '$(MSBuildToolsVersion)' == '14.0'">v140_xp</PlatformToolset>
|
||||||
|
<PlatformToolset Condition="'$(PlatformToolset)' == '' and '$(MSBuildToolsVersion)' == '12.0'">v120_xp</PlatformToolset>
|
||||||
|
<PlatformToolset Condition="'$(PlatformToolset)' == '' and '$(MSBuildToolsVersion)' == '11.0'">v110_xp</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<IntDir>fdk-aac\$(Platform)\$(Configuration)</IntDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Label="Configuration">
|
||||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
|
||||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
<ImportGroup Label="ExtensionSettings">
|
<ImportGroup Label="PropertySheets">
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ItemDefinitionGroup>
|
||||||
<IntDir>$(Configuration)Lib\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<IntDir>$(Configuration)Lib\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<Optimization>Disabled</Optimization>
|
<PreprocessorDefinitions>WIN32;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<AdditionalIncludeDirectories>../fdk-aac/libaacenc/include;../fdk-aac/libFDK/include;../fdk-aac/libMpegTPEnc/include;../fdk-aac/libPCMutils/include;../fdk-aac/libSACenc/include;../fdk-aac/libSBRenc/include;../fdk-aac/libSYS/include</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>../fdk-aac/libaacenc/include;../fdk-aac/libFDK/include;../fdk-aac/libMpegTPEnc/include;../fdk-aac/libPCMutils/include;../fdk-aac/libSBRenc/include;../fdk-aac/libSYS/include</AdditionalIncludeDirectories>
|
|
||||||
<StringPooling>true</StringPooling>
|
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
|
||||||
<SubSystem>Windows</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<Optimization>Disabled</Optimization>
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
</ClCompile>
|
||||||
<Optimization>MaxSpeed</Optimization>
|
</ItemDefinitionGroup>
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<ClCompile>
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<Optimization>MaxSpeed</Optimization>
|
||||||
<AdditionalIncludeDirectories>../fdk-aac/libaacenc/include;../fdk-aac/libFDK/include;../fdk-aac/libMpegTPEnc/include;../fdk-aac/libPCMutils/include;../fdk-aac/libSBRenc/include;../fdk-aac/libSYS/include</AdditionalIncludeDirectories>
|
<AdditionalOptions>/Qvec-report:1 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<StringPooling>true</StringPooling>
|
</ClCompile>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>__x86_64__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
|
||||||
<SubSystem>Windows</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc.cpp" />
|
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc_hcr.cpp" />
|
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc_lib.cpp" />
|
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc_lib.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc_pns.cpp" />
|
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc_pns.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\aacEnc_ram.cpp" />
|
<ClCompile Include="..\fdk-aac\libAACenc\src\aacEnc_ram.cpp" />
|
||||||
@ -97,6 +93,7 @@
|
|||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\line_pe.cpp" />
|
<ClCompile Include="..\fdk-aac\libAACenc\src\line_pe.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\metadata_compressor.cpp" />
|
<ClCompile Include="..\fdk-aac\libAACenc\src\metadata_compressor.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\metadata_main.cpp" />
|
<ClCompile Include="..\fdk-aac\libAACenc\src\metadata_main.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libAACenc\src\mps_main.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\ms_stereo.cpp" />
|
<ClCompile Include="..\fdk-aac\libAACenc\src\ms_stereo.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\noisedet.cpp" />
|
<ClCompile Include="..\fdk-aac\libAACenc\src\noisedet.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\pnsparam.cpp" />
|
<ClCompile Include="..\fdk-aac\libAACenc\src\pnsparam.cpp" />
|
||||||
@ -115,6 +112,8 @@
|
|||||||
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_core.cpp" />
|
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_core.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_crc.cpp" />
|
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_crc.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_hybrid.cpp" />
|
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_hybrid.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_lpc.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_matrixCalloc.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_tools_rom.cpp" />
|
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_tools_rom.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_trigFcts.cpp" />
|
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_trigFcts.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libFDK\src\fft.cpp" />
|
<ClCompile Include="..\fdk-aac\libFDK\src\fft.cpp" />
|
||||||
@ -128,7 +127,20 @@
|
|||||||
<ClCompile Include="..\fdk-aac\libMpegTPEnc\src\tpenc_asc.cpp" />
|
<ClCompile Include="..\fdk-aac\libMpegTPEnc\src\tpenc_asc.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libMpegTPEnc\src\tpenc_latm.cpp" />
|
<ClCompile Include="..\fdk-aac\libMpegTPEnc\src\tpenc_latm.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libMpegTPEnc\src\tpenc_lib.cpp" />
|
<ClCompile Include="..\fdk-aac\libMpegTPEnc\src\tpenc_lib.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libPCMutils\src\pcmutils_lib.cpp" />
|
<ClCompile Include="..\fdk-aac\libPCMutils\src\pcm_utils.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_bitstream.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_delay.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_dmx_tdom_enh.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_filter.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_framewindowing.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_huff_tab.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_lib.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_nlc_enc.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_onsetdetect.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_paramextract.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_staticgain.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_tree.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_vectorfunctions.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\bit_sbr.cpp" />
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\bit_sbr.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\code_env.cpp" />
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\code_env.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\env_bit.cpp" />
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\env_bit.cpp" />
|
||||||
@ -142,19 +154,18 @@
|
|||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\ps_main.cpp" />
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\ps_main.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\resampler.cpp" />
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\resampler.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbrenc_freq_sca.cpp" />
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbrenc_freq_sca.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbrenc_ram.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbrenc_rom.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbr_encoder.cpp" />
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbr_encoder.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbr_misc.cpp" />
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbr_misc.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbr_ram.cpp" />
|
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbr_rom.cpp" />
|
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\ton_corr.cpp" />
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\ton_corr.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\tran_det.cpp" />
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\tran_det.cpp" />
|
||||||
<ClCompile Include="..\fdk-aac\libSYS\src\conv_string.cpp" />
|
|
||||||
<ClCompile Include="..\fdk-aac\libSYS\src\genericStds.cpp" />
|
<ClCompile Include="..\fdk-aac\libSYS\src\genericStds.cpp" />
|
||||||
|
<ClCompile Include="..\fdk-aac\libSYS\src\syslib_channelMapDescr.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\fdk-aac\libAACenc\include\aacenc_lib.h" />
|
<ClInclude Include="..\fdk-aac\libAACenc\include\aacenc_lib.h" />
|
||||||
<ClInclude Include="..\fdk-aac\libAACenc\src\aacenc.h" />
|
<ClInclude Include="..\fdk-aac\libAACenc\src\aacenc.h" />
|
||||||
<ClInclude Include="..\fdk-aac\libAACenc\src\aacenc_hcr.h" />
|
|
||||||
<ClInclude Include="..\fdk-aac\libAACenc\src\aacenc_pns.h" />
|
<ClInclude Include="..\fdk-aac\libAACenc\src\aacenc_pns.h" />
|
||||||
<ClInclude Include="..\fdk-aac\libAACenc\src\aacEnc_ram.h" />
|
<ClInclude Include="..\fdk-aac\libAACenc\src\aacEnc_ram.h" />
|
||||||
<ClInclude Include="..\fdk-aac\libAACenc\src\aacEnc_rom.h" />
|
<ClInclude Include="..\fdk-aac\libAACenc\src\aacEnc_rom.h" />
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="Source Files">
|
<Filter Include="Source Files">
|
||||||
@ -18,9 +18,6 @@
|
|||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc.cpp">
|
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc_hcr.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc_lib.cpp">
|
<ClCompile Include="..\fdk-aac\libAACenc\src\aacenc_lib.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -171,9 +168,6 @@
|
|||||||
<ClCompile Include="..\fdk-aac\libMpegTPEnc\src\tpenc_lib.cpp">
|
<ClCompile Include="..\fdk-aac\libMpegTPEnc\src\tpenc_lib.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\fdk-aac\libPCMutils\src\pcmutils_lib.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\bit_sbr.cpp">
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\bit_sbr.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -219,22 +213,73 @@
|
|||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbr_misc.cpp">
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbr_misc.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbr_ram.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbr_rom.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\ton_corr.cpp">
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\ton_corr.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\fdk-aac\libSBRenc\src\tran_det.cpp">
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\tran_det.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\fdk-aac\libSYS\src\conv_string.cpp">
|
<ClCompile Include="..\fdk-aac\libSYS\src\genericStds.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\fdk-aac\libSYS\src\genericStds.cpp">
|
<ClCompile Include="..\fdk-aac\libPCMutils\src\pcm_utils.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbrenc_ram.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSBRenc\src\sbrenc_rom.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_bitstream.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_delay.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_dmx_tdom_enh.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_filter.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_framewindowing.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_huff_tab.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_lib.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_nlc_enc.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_onsetdetect.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_paramextract.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_staticgain.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_tree.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSACenc\src\sacenc_vectorfunctions.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libAACenc\src\mps_main.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libSYS\src\syslib_channelMapDescr.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_matrixCalloc.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\fdk-aac\libFDK\src\FDK_lpc.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
@ -245,9 +290,6 @@
|
|||||||
<ClInclude Include="..\fdk-aac\libAACenc\src\aacenc.h">
|
<ClInclude Include="..\fdk-aac\libAACenc\src\aacenc.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\fdk-aac\libAACenc\src\aacenc_hcr.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\fdk-aac\libAACenc\src\aacenc_pns.h">
|
<ClInclude Include="..\fdk-aac\libAACenc\src\aacenc_pns.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -8,17 +8,27 @@ EndProject
|
|||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Win32 = Debug|Win32
|
Debug|Win32 = Debug|Win32
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
Release|Win32 = Release|Win32
|
Release|Win32 = Release|Win32
|
||||||
|
Release|x64 = Release|x64
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Debug|Win32.ActiveCfg = Debug|Win32
|
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Debug|Win32.Build.0 = Debug|Win32
|
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Debug|x64.Build.0 = Debug|x64
|
||||||
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Release|Win32.ActiveCfg = Release|Win32
|
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Release|Win32.Build.0 = Release|Win32
|
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}.Release|x64.Build.0 = Release|x64
|
||||||
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Debug|Win32.ActiveCfg = Debug|Win32
|
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Debug|Win32.Build.0 = Debug|Win32
|
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Debug|x64.Build.0 = Debug|x64
|
||||||
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Release|Win32.ActiveCfg = Release|Win32
|
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Release|Win32.Build.0 = Release|Win32
|
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{D7D4B982-8B16-4A10-8B1C-9527BD789709}.Release|x64.Build.0 = Release|x64
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -5,55 +5,50 @@
|
|||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
<Platform>Win32</Platform>
|
<Platform>Win32</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
<ProjectConfiguration Include="Release|Win32">
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
<Configuration>Release</Configuration>
|
<Configuration>Release</Configuration>
|
||||||
<Platform>Win32</Platform>
|
<Platform>Win32</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}</ProjectGuid>
|
<ProjectGuid>{E62D32CF-E308-40BD-9FF0-8266C6CAA9AA}</ProjectGuid>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<RootNamespace>fdkaac</RootNamespace>
|
<RootNamespace>fdkaac</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<PlatformToolset Condition="'$(PlatformToolset)' == '' and '$(MSBuildToolsVersion)' == '15.0'">v141_xp</PlatformToolset>
|
||||||
|
<PlatformToolset Condition="'$(PlatformToolset)' == '' and '$(MSBuildToolsVersion)' == '14.0'">v140_xp</PlatformToolset>
|
||||||
|
<PlatformToolset Condition="'$(PlatformToolset)' == '' and '$(MSBuildToolsVersion)' == '12.0'">v120_xp</PlatformToolset>
|
||||||
|
<PlatformToolset Condition="'$(PlatformToolset)' == '' and '$(MSBuildToolsVersion)' == '11.0'">v110_xp</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
<ImportGroup Label="ExtensionSettings">
|
<ImportGroup Label="PropertySheets">
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup>
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<PropertyGroup Label="UserMacros" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
<IntDir>cli_$(Configuration)\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
<IntDir>$(Configuration)Cli\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<Optimization>Disabled</Optimization>
|
<PreprocessorDefinitions>HAVE_STDINT_H;inline=__inline;_CRT_SECURE_NO_WARNINGS;WIN32;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<PreprocessorDefinitions>HAVE_STDINT_H;inline=__inline;_CRT_SECURE_NO_WARNINGS;WIN32;_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<AdditionalIncludeDirectories>./include;../missings;.;..</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>./include;../missings;.;..</AdditionalIncludeDirectories>
|
||||||
<StringPooling>true</StringPooling>
|
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
@ -64,34 +59,24 @@
|
|||||||
copy ..\fdk-aac\libAACenc\include\aacenc_lib.h include\fdk-aac\
|
copy ..\fdk-aac\libAACenc\include\aacenc_lib.h include\fdk-aac\
|
||||||
copy ..\fdk-aac\libSYS\include\FDK_Audio.h include\fdk-aac\
|
copy ..\fdk-aac\libSYS\include\FDK_Audio.h include\fdk-aac\
|
||||||
copy ..\fdk-aac\libSYS\include\genericStds.h include\fdk-aac\
|
copy ..\fdk-aac\libSYS\include\genericStds.h include\fdk-aac\
|
||||||
copy ..\fdk-aac\libSYS\include\machine_type.h include\fdk-aac\ </Command>
|
copy ..\fdk-aac\libSYS\include\machine_type.h include\fdk-aac\
|
||||||
|
copy ..\fdk-aac\libSYS\include\syslib_channelMapDescr.h include\fdk-aac\
|
||||||
|
</Command>
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<Optimization>MaxSpeed</Optimization>
|
<Optimization>MaxSpeed</Optimization>
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
||||||
<PreprocessorDefinitions>HAVE_STDINT_H;inline=__inline;_CRT_SECURE_NO_WARNINGS;WIN32;_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<AdditionalIncludeDirectories>./include;../missings;.;..</AdditionalIncludeDirectories>
|
|
||||||
<StringPooling>true</StringPooling>
|
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
</Link>
|
</Link>
|
||||||
<PreBuildEvent>
|
|
||||||
<Command>copy ..\fdk-aac\libAACdec\include\aacdecoder_lib.h include\fdk-aac\
|
|
||||||
copy ..\fdk-aac\libAACenc\include\aacenc_lib.h include\fdk-aac\
|
|
||||||
copy ..\fdk-aac\libSYS\include\FDK_Audio.h include\fdk-aac\
|
|
||||||
copy ..\fdk-aac\libSYS\include\genericStds.h include\fdk-aac\
|
|
||||||
copy ..\fdk-aac\libSYS\include\machine_type.h include\fdk-aac\ </Command>
|
|
||||||
</PreBuildEvent>
|
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\missings\getopt.c" />
|
<ClCompile Include="..\missings\getopt.c" />
|
||||||
|
@ -23,7 +23,7 @@ fdkaac_SOURCES = \
|
|||||||
dist_man_MANS = man/fdkaac.1
|
dist_man_MANS = man/fdkaac.1
|
||||||
|
|
||||||
fdkaac_LDADD = \
|
fdkaac_LDADD = \
|
||||||
@LIBICONV@ -lfdk-aac -lm
|
@LIBICONV@ @CHARSET_LIB@ -lfdk-aac -lm
|
||||||
|
|
||||||
if FDK_PLATFORM_POSIX
|
if FDK_PLATFORM_POSIX
|
||||||
fdkaac_SOURCES += \
|
fdkaac_SOURCES += \
|
||||||
|
9
README
9
README
@ -52,15 +52,6 @@ OPTIONS
|
|||||||
39
|
39
|
||||||
: MPEG-4 AAC ELD
|
: MPEG-4 AAC ELD
|
||||||
|
|
||||||
129
|
|
||||||
: MPEG-2 AAC LC
|
|
||||||
|
|
||||||
132
|
|
||||||
: MPEG-2 HE-AAC (SBR)
|
|
||||||
|
|
||||||
156
|
|
||||||
: MPEG-2 HE-AAC v2 (SBR+PS)
|
|
||||||
|
|
||||||
-b, --bitrate \<n\>
|
-b, --bitrate \<n\>
|
||||||
: Target bitrate (for CBR)
|
: Target bitrate (for CBR)
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ AC_PROG_CC
|
|||||||
AM_PROG_CC_C_O
|
AM_PROG_CC_C_O
|
||||||
|
|
||||||
AC_CHECK_HEADERS([sys/time.h])
|
AC_CHECK_HEADERS([sys/time.h])
|
||||||
AC_CHECK_HEADERS([localcharset.h langinfo.h endian.h byteswap.h])
|
AC_CHECK_HEADERS([libcharset.h langinfo.h endian.h byteswap.h])
|
||||||
AC_CHECK_HEADERS([fdk-aac/aacenc_lib.h], ,
|
AC_CHECK_HEADERS([fdk-aac/aacenc_lib.h], ,
|
||||||
AC_MSG_ERROR([libfdk-aac is required]))
|
AC_MSG_ERROR([libfdk-aac is required]))
|
||||||
|
|
||||||
@ -38,6 +38,12 @@ AC_CHECK_FUNC(getopt_long)
|
|||||||
AM_CONDITIONAL([FDK_NO_GETOPT_LONG],[test "$ac_cv_func_getopt_long" != "yes"])
|
AM_CONDITIONAL([FDK_NO_GETOPT_LONG],[test "$ac_cv_func_getopt_long" != "yes"])
|
||||||
AC_SEARCH_LIBS([aacEncOpen],[fdk-aac],[],[],[])
|
AC_SEARCH_LIBS([aacEncOpen],[fdk-aac],[],[],[])
|
||||||
|
|
||||||
|
CHARSET_LIB=
|
||||||
|
AC_CHECK_LIB([iconv], [locale_charset],
|
||||||
|
[CHARSET_LIB=-liconv],
|
||||||
|
[AC_CHECK_LIB([charset], [locale_charset], [CHARSET_LIB=-lcharset])])
|
||||||
|
AC_SUBST([CHARSET_LIB])
|
||||||
|
|
||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
X_PLATFORM=posix
|
X_PLATFORM=posix
|
||||||
|
22
man/fdkaac.1
22
man/fdkaac.1
@ -1,10 +1,13 @@
|
|||||||
.TH FDKAAC 1 "November, 2013"
|
.\" Automatically generated by Pandoc 1.17.1
|
||||||
|
.\"
|
||||||
|
.TH "FDKAAC" "1" "November, 2013" "" ""
|
||||||
|
.hy
|
||||||
.SH NAME
|
.SH NAME
|
||||||
.PP
|
.PP
|
||||||
fdkaac \- command line frontend for libfdk\-aac encoder
|
fdkaac \- command line frontend for libfdk\-aac encoder
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.PP
|
.PP
|
||||||
\f[B]fdkaac\f[] [OPTIONS][FILE]
|
\f[B]fdkaac\f[] [OPTIONS] [FILE]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.PP
|
.PP
|
||||||
\f[B]fdkaac\f[] reads linear PCM audio in either WAV, raw PCM, or CAF
|
\f[B]fdkaac\f[] reads linear PCM audio in either WAV, raw PCM, or CAF
|
||||||
@ -56,21 +59,6 @@ MPEG\-4 AAC LD
|
|||||||
MPEG\-4 AAC ELD
|
MPEG\-4 AAC ELD
|
||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
.TP
|
|
||||||
.B 129
|
|
||||||
MPEG\-2 AAC LC
|
|
||||||
.RS
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
.B 132
|
|
||||||
MPEG\-2 HE\-AAC (SBR)
|
|
||||||
.RS
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
.B 156
|
|
||||||
MPEG\-2 HE\-AAC v2 (SBR+PS)
|
|
||||||
.RS
|
|
||||||
.RE
|
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
.B \-b, \-\-bitrate <n>
|
.B \-b, \-\-bitrate <n>
|
||||||
|
82
src/aacenc.c
82
src/aacenc.c
@ -13,6 +13,13 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "aacenc.h"
|
#include "aacenc.h"
|
||||||
|
|
||||||
|
int aacenc_is_explicit_bw_compatible_sbr_signaling_available()
|
||||||
|
{
|
||||||
|
LIB_INFO lib_info;
|
||||||
|
aacenc_get_lib_info(&lib_info);
|
||||||
|
return lib_info.version > 0x03040900;
|
||||||
|
}
|
||||||
|
|
||||||
int aacenc_is_sbr_ratio_available()
|
int aacenc_is_sbr_ratio_available()
|
||||||
{
|
{
|
||||||
#if AACENCODER_LIB_VL0 < 3 || (AACENCODER_LIB_VL0==3 && AACENCODER_LIB_VL1<4)
|
#if AACENCODER_LIB_VL0 < 3 || (AACENCODER_LIB_VL0==3 && AACENCODER_LIB_VL1<4)
|
||||||
@ -20,15 +27,14 @@ int aacenc_is_sbr_ratio_available()
|
|||||||
#else
|
#else
|
||||||
LIB_INFO lib_info;
|
LIB_INFO lib_info;
|
||||||
aacenc_get_lib_info(&lib_info);
|
aacenc_get_lib_info(&lib_info);
|
||||||
return lib_info.version > 0x03040000;
|
return lib_info.version > 0x03040800;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int aacenc_is_sbr_active(const aacenc_param_t *params)
|
int aacenc_is_sbr_active(const aacenc_param_t *params)
|
||||||
{
|
{
|
||||||
switch (params->profile) {
|
switch (params->profile) {
|
||||||
case AOT_SBR: case AOT_PS: case AOT_MP2_SBR: case AOT_MP2_PS:
|
case AOT_SBR: case AOT_PS:
|
||||||
case AOT_DABPLUS_SBR: case AOT_DABPLUS_PS:
|
|
||||||
case AOT_DRM_SBR: case AOT_DRM_MPEG_PS:
|
case AOT_DRM_SBR: case AOT_DRM_MPEG_PS:
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -39,9 +45,9 @@ int aacenc_is_sbr_active(const aacenc_param_t *params)
|
|||||||
|
|
||||||
int aacenc_is_dual_rate_sbr(const aacenc_param_t *params)
|
int aacenc_is_dual_rate_sbr(const aacenc_param_t *params)
|
||||||
{
|
{
|
||||||
if (params->profile == AOT_PS || params->profile == AOT_MP2_PS)
|
if (params->profile == AOT_PS)
|
||||||
return 1;
|
return 1;
|
||||||
else if (params->profile == AOT_SBR || params->profile == AOT_MP2_SBR)
|
else if (params->profile == AOT_SBR)
|
||||||
return params->sbr_ratio == 0 || params->sbr_ratio == 2;
|
return params->sbr_ratio == 0 || params->sbr_ratio == 2;
|
||||||
else if (params->profile == AOT_ER_AAC_ELD && params->lowdelay_sbr)
|
else if (params->profile == AOT_ER_AAC_ELD && params->lowdelay_sbr)
|
||||||
return params->sbr_ratio == 2;
|
return params->sbr_ratio == 2;
|
||||||
@ -64,6 +70,70 @@ void aacenc_get_lib_info(LIB_INFO *info)
|
|||||||
free(lib_info);
|
free(lib_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const unsigned aacenc_sampling_freq_tab[] = {
|
||||||
|
96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050,
|
||||||
|
16000, 12000, 11025, 8000, 7350, 0, 0, 0
|
||||||
|
};
|
||||||
|
|
||||||
|
static
|
||||||
|
unsigned sampling_freq_index(unsigned rate)
|
||||||
|
{
|
||||||
|
unsigned i;
|
||||||
|
for (i = 0; aacenc_sampling_freq_tab[i]; ++i)
|
||||||
|
if (aacenc_sampling_freq_tab[i] == rate)
|
||||||
|
return i;
|
||||||
|
return 0xf;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Append backward compatible SBR/PS signaling to implicit signaling ASC,
|
||||||
|
* if SBR/PS is present.
|
||||||
|
*/
|
||||||
|
int aacenc_mp4asc(const aacenc_param_t *params,
|
||||||
|
const uint8_t *asc, uint32_t ascsize,
|
||||||
|
uint8_t *outasc, uint32_t *outsize)
|
||||||
|
{
|
||||||
|
unsigned asc_sfreq = aacenc_sampling_freq_tab[(asc[0]&0x7)<<1 |asc[1]>>7];
|
||||||
|
unsigned shift = aacenc_is_dual_rate_sbr(params);
|
||||||
|
|
||||||
|
switch (params->profile) {
|
||||||
|
case AOT_SBR:
|
||||||
|
case AOT_PS:
|
||||||
|
if (!shift)
|
||||||
|
break;
|
||||||
|
if (*outsize < ascsize + 3)
|
||||||
|
return -1;
|
||||||
|
memcpy(outasc, asc, ascsize);
|
||||||
|
/* syncExtensionType:11 (value:0x2b7) */
|
||||||
|
outasc[ascsize+0] = 0x2b << 1;
|
||||||
|
outasc[ascsize+1] = 0x7 << 5;
|
||||||
|
/* extensionAudioObjectType:5 (value:5)*/
|
||||||
|
outasc[ascsize+1] |= 5;
|
||||||
|
/* sbrPresentFlag:1 (value:1) */
|
||||||
|
outasc[ascsize+2] = 0x80;
|
||||||
|
/* extensionSamplingFrequencyIndex:4 */
|
||||||
|
outasc[ascsize+2] |= sampling_freq_index(asc_sfreq << shift) << 3;
|
||||||
|
if (params->profile == AOT_SBR) {
|
||||||
|
*outsize = ascsize + 3;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if (*outsize < ascsize + 5)
|
||||||
|
return -1;
|
||||||
|
/* syncExtensionType:11 (value:0x548) */
|
||||||
|
outasc[ascsize+2] |= 0x5;
|
||||||
|
outasc[ascsize+3] = 0x48;
|
||||||
|
/* psPresentFlag:1 (value:1) */
|
||||||
|
outasc[ascsize+4] = 0x80;
|
||||||
|
*outsize = ascsize + 5;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if (*outsize < ascsize)
|
||||||
|
return -1;
|
||||||
|
memcpy(outasc, asc, ascsize);
|
||||||
|
*outsize = ascsize;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
int aacenc_channel_mode(const pcm_sample_description_t *format)
|
int aacenc_channel_mode(const pcm_sample_description_t *format)
|
||||||
{
|
{
|
||||||
@ -140,7 +210,7 @@ int aacenc_init(HANDLE_AACENCODER *encoder, const aacenc_param_t *params,
|
|||||||
aacEncoder_SetParam(*encoder, AACENC_SBR_MODE, params->lowdelay_sbr);
|
aacEncoder_SetParam(*encoder, AACENC_SBR_MODE, params->lowdelay_sbr);
|
||||||
|
|
||||||
#if AACENCODER_LIB_VL0 > 3 || (AACENCODER_LIB_VL0==3 && AACENCODER_LIB_VL1>=4)
|
#if AACENCODER_LIB_VL0 > 3 || (AACENCODER_LIB_VL0==3 && AACENCODER_LIB_VL1>=4)
|
||||||
if (lib_info.version > 0x03040000)
|
if (lib_info.version > 0x03040800)
|
||||||
aacEncoder_SetParam(*encoder, AACENC_SBR_RATIO, params->sbr_ratio);
|
aacEncoder_SetParam(*encoder, AACENC_SBR_RATIO, params->sbr_ratio);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -30,6 +30,8 @@ typedef struct aacenc_frame_t {
|
|||||||
uint32_t size, capacity;
|
uint32_t size, capacity;
|
||||||
} aacenc_frame_t;
|
} aacenc_frame_t;
|
||||||
|
|
||||||
|
int aacenc_is_explicit_bw_compatible_sbr_signaling_available();
|
||||||
|
|
||||||
int aacenc_is_sbr_ratio_available();
|
int aacenc_is_sbr_ratio_available();
|
||||||
|
|
||||||
int aacenc_is_sbr_active(const aacenc_param_t *params);
|
int aacenc_is_sbr_active(const aacenc_param_t *params);
|
||||||
@ -38,6 +40,10 @@ int aacenc_is_dual_rate_sbr(const aacenc_param_t *params);
|
|||||||
|
|
||||||
void aacenc_get_lib_info(LIB_INFO *info);
|
void aacenc_get_lib_info(LIB_INFO *info);
|
||||||
|
|
||||||
|
int aacenc_mp4asc(const aacenc_param_t *params,
|
||||||
|
const uint8_t *asc, uint32_t ascsize,
|
||||||
|
uint8_t *outasc, uint32_t *outsize);
|
||||||
|
|
||||||
int aacenc_init(HANDLE_AACENCODER *encoder, const aacenc_param_t *params,
|
int aacenc_init(HANDLE_AACENCODER *encoder, const aacenc_param_t *params,
|
||||||
const pcm_sample_description_t *format,
|
const pcm_sample_description_t *format,
|
||||||
AACENC_InfoStruct *info);
|
AACENC_InfoStruct *info);
|
||||||
|
@ -20,9 +20,18 @@
|
|||||||
|
|
||||||
int64_t aacenc_timer(void);
|
int64_t aacenc_timer(void);
|
||||||
FILE *aacenc_fopen(const char *name, const char *mode);
|
FILE *aacenc_fopen(const char *name, const char *mode);
|
||||||
|
#ifdef _WIN32
|
||||||
void aacenc_getmainargs(int *argc, char ***argv);
|
void aacenc_getmainargs(int *argc, char ***argv);
|
||||||
|
#else
|
||||||
|
#define aacenc_getmainargs(argc, argv) (void)0
|
||||||
|
#endif
|
||||||
char *aacenc_to_utf8(const char *s);
|
char *aacenc_to_utf8(const char *s);
|
||||||
|
#ifdef _WIN32
|
||||||
int aacenc_fprintf(FILE *fp, const char *fmt, ...);
|
int aacenc_fprintf(FILE *fp, const char *fmt, ...);
|
||||||
|
#else
|
||||||
|
#define aacenc_fprintf fprintf
|
||||||
|
#endif
|
||||||
const char *aacenc_basename(const char *path);
|
const char *aacenc_basename(const char *path);
|
||||||
|
int aacenc_seekable(FILE *fp);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -32,20 +32,9 @@ FILE *aacenc_fopen(const char *name, const char *mode)
|
|||||||
return fp;
|
return fp;
|
||||||
}
|
}
|
||||||
|
|
||||||
void aacenc_getmainargs(int *argc, char ***argv)
|
int aacenc_seekable(FILE *fp)
|
||||||
{
|
{
|
||||||
return;
|
return fseek(fp, 0, SEEK_CUR) == 0;
|
||||||
}
|
|
||||||
|
|
||||||
int aacenc_fprintf(FILE *fp, const char *fmt, ...)
|
|
||||||
{
|
|
||||||
va_list ap;
|
|
||||||
int cnt;
|
|
||||||
|
|
||||||
va_start(ap, fmt);
|
|
||||||
cnt = vfprintf(fp, fmt, ap);
|
|
||||||
va_end(ap);
|
|
||||||
return cnt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -70,8 +59,8 @@ char *aacenc_to_utf8(const char *s)
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
|
|
||||||
#if HAVE_LOCALCHARSET_H
|
#if HAVE_LIBCHARSET_H
|
||||||
#include <localcharset.h>
|
#include <libcharset.h>
|
||||||
#elif HAVE_LANGINFO_H
|
#elif HAVE_LANGINFO_H
|
||||||
#include <langinfo.h>
|
#include <langinfo.h>
|
||||||
static const char *locale_charset(void)
|
static const char *locale_charset(void)
|
||||||
|
@ -20,14 +20,7 @@
|
|||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <shellapi.h>
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
int newmode;
|
|
||||||
} _startupinfo;
|
|
||||||
|
|
||||||
extern
|
|
||||||
int __wgetmainargs(int *, wchar_t ***, wchar_t ***, int, _startupinfo *);
|
|
||||||
|
|
||||||
int64_t aacenc_timer(void)
|
int64_t aacenc_timer(void)
|
||||||
{
|
{
|
||||||
@ -41,6 +34,11 @@ int64_t aacenc_timer(void)
|
|||||||
return (int64_t)tv.time * 1000 + tv.millitm;
|
return (int64_t)tv.time * 1000 + tv.millitm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int aacenc_seekable(FILE *fp)
|
||||||
|
{
|
||||||
|
return GetFileType((HANDLE)_get_osfhandle(_fileno(fp))) == FILE_TYPE_DISK;
|
||||||
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
int codepage_decode_wchar(int codepage, const char *from, wchar_t **to)
|
int codepage_decode_wchar(int codepage, const char *from, wchar_t **to)
|
||||||
{
|
{
|
||||||
@ -98,13 +96,13 @@ void aacenc_free_mainargs(void)
|
|||||||
void aacenc_getmainargs(int *argc, char ***argv)
|
void aacenc_getmainargs(int *argc, char ***argv)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
wchar_t **wargv, **envp;
|
wchar_t **wargv;
|
||||||
_startupinfo si = { 0 };
|
|
||||||
|
|
||||||
__wgetmainargs(argc, &wargv, &envp, 1, &si);
|
wargv = CommandLineToArgvW(GetCommandLineW(), argc);
|
||||||
*argv = malloc((*argc + 1) * sizeof(char*));
|
*argv = malloc((*argc + 1) * sizeof(char*));
|
||||||
for (i = 0; i < *argc; ++i)
|
for (i = 0; i < *argc; ++i)
|
||||||
codepage_encode_wchar(CP_UTF8, wargv[i], &(*argv)[i]);
|
codepage_encode_wchar(CP_UTF8, wargv[i], &(*argv)[i]);
|
||||||
|
LocalFree(wargv);
|
||||||
(*argv)[*argc] = 0;
|
(*argv)[*argc] = 0;
|
||||||
__aacenc_argv__ = *argv;
|
__aacenc_argv__ = *argv;
|
||||||
atexit(aacenc_free_mainargs);
|
atexit(aacenc_free_mainargs);
|
||||||
|
@ -39,6 +39,14 @@ typedef struct m4af_chunk_entry_t {
|
|||||||
uint32_t duration;
|
uint32_t duration;
|
||||||
} m4af_chunk_entry_t;
|
} m4af_chunk_entry_t;
|
||||||
|
|
||||||
|
typedef struct m4af_itmf_entry_t {
|
||||||
|
uint32_t fcc;
|
||||||
|
char *name;
|
||||||
|
uint32_t type_code;
|
||||||
|
char *data;
|
||||||
|
uint32_t data_size;
|
||||||
|
} m4af_itmf_entry_t;
|
||||||
|
|
||||||
typedef struct m4af_track_t {
|
typedef struct m4af_track_t {
|
||||||
uint32_t codec;
|
uint32_t codec;
|
||||||
uint32_t timescale;
|
uint32_t timescale;
|
||||||
@ -1374,7 +1382,6 @@ uint64_t m4af_patch_moov(m4af_ctx_t *ctx, uint32_t moov_size, uint32_t offset)
|
|||||||
static
|
static
|
||||||
void m4af_shift_mdat_pos(m4af_ctx_t *ctx, uint32_t offset)
|
void m4af_shift_mdat_pos(m4af_ctx_t *ctx, uint32_t offset)
|
||||||
{
|
{
|
||||||
unsigned i, j;
|
|
||||||
int64_t begin, end;
|
int64_t begin, end;
|
||||||
char *buf;
|
char *buf;
|
||||||
|
|
||||||
|
@ -71,14 +71,6 @@ typedef struct m4af_io_callbacks_t {
|
|||||||
m4af_tell_callback tell;
|
m4af_tell_callback tell;
|
||||||
} m4af_io_callbacks_t;
|
} m4af_io_callbacks_t;
|
||||||
|
|
||||||
typedef struct m4af_itmf_entry_t {
|
|
||||||
uint32_t fcc;
|
|
||||||
char *name;
|
|
||||||
uint32_t type_code;
|
|
||||||
char *data;
|
|
||||||
uint32_t data_size;
|
|
||||||
} m4af_itmf_entry_t;
|
|
||||||
|
|
||||||
typedef struct m4af_ctx_t m4af_ctx_t;
|
typedef struct m4af_ctx_t m4af_ctx_t;
|
||||||
|
|
||||||
|
|
||||||
|
105
src/main.c
105
src/main.c
@ -117,9 +117,6 @@ PROGNAME " %s\n"
|
|||||||
" 29: MPEG-4 HE-AAC v2 (SBR+PS)\n"
|
" 29: MPEG-4 HE-AAC v2 (SBR+PS)\n"
|
||||||
" 23: MPEG-4 AAC LD\n"
|
" 23: MPEG-4 AAC LD\n"
|
||||||
" 39: MPEG-4 AAC ELD\n"
|
" 39: MPEG-4 AAC ELD\n"
|
||||||
" 129: MPEG-2 AAC LC\n"
|
|
||||||
" 132: MPEG-2 HE-AAC (SBR)\n"
|
|
||||||
" 156: MPEG-2 HE-AAC v2 (SBR+PS)\n"
|
|
||||||
" -b, --bitrate <n> Bitrate in bits per seconds (for CBR)\n"
|
" -b, --bitrate <n> Bitrate in bits per seconds (for CBR)\n"
|
||||||
" -m, --bitrate-mode <n> Bitrate configuration\n"
|
" -m, --bitrate-mode <n> Bitrate configuration\n"
|
||||||
" 0: CBR (default)\n"
|
" 0: CBR (default)\n"
|
||||||
@ -292,7 +289,7 @@ int parse_options(int argc, char **argv, aacenc_param_ex_t *params)
|
|||||||
params->afterburner = 1;
|
params->afterburner = 1;
|
||||||
|
|
||||||
aacenc_getmainargs(&argc, &argv);
|
aacenc_getmainargs(&argc, &argv);
|
||||||
while ((ch = getopt_long(argc, argv, "hp:b:m:w:a:Ls:f:CP:G:Io:SR",
|
while ((ch = getopt_long(argc, argv, "hp:b:m:w:a:L:s:f:CP:G:Io:SR",
|
||||||
long_options, 0)) != EOF) {
|
long_options, 0)) != EOF) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'h':
|
case 'h':
|
||||||
@ -506,6 +503,11 @@ int write_sample(FILE *ofp, m4af_ctx_t *m4af, aacenc_frame_t *frame)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int do_smart_padding(int profile)
|
||||||
|
{
|
||||||
|
return profile == 2 || profile == 5 || profile == 29;
|
||||||
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
int encode(aacenc_param_ex_t *params, pcm_reader_t *reader,
|
int encode(aacenc_param_ex_t *params, pcm_reader_t *reader,
|
||||||
HANDLE_AACENCODER encoder, uint32_t frame_length,
|
HANDLE_AACENCODER encoder, uint32_t frame_length,
|
||||||
@ -520,15 +522,12 @@ int encode(aacenc_param_ex_t *params, pcm_reader_t *reader,
|
|||||||
int frames_written = 0, encoded = 0;
|
int frames_written = 0, encoded = 0;
|
||||||
aacenc_progress_t progress = { 0 };
|
aacenc_progress_t progress = { 0 };
|
||||||
const pcm_sample_description_t *fmt = pcm_get_format(reader);
|
const pcm_sample_description_t *fmt = pcm_get_format(reader);
|
||||||
|
const int is_padding = do_smart_padding(params->profile);
|
||||||
|
|
||||||
ibuf = malloc(frame_length * fmt->bytes_per_frame);
|
ibuf = malloc(frame_length * fmt->bytes_per_frame);
|
||||||
aacenc_progress_init(&progress, pcm_get_length(reader), fmt->sample_rate);
|
aacenc_progress_init(&progress, pcm_get_length(reader), fmt->sample_rate);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
/*
|
|
||||||
* Since we delay the write, we cannot just exit loop when interrupted.
|
|
||||||
* Instead, we regard it as EOF.
|
|
||||||
*/
|
|
||||||
if (g_interrupted)
|
if (g_interrupted)
|
||||||
nread = 0;
|
nread = 0;
|
||||||
if (nread > 0) {
|
if (nread > 0) {
|
||||||
@ -551,7 +550,7 @@ int encode(aacenc_param_ex_t *params, pcm_reader_t *reader,
|
|||||||
|
|
||||||
remaining -= consumed;
|
remaining -= consumed;
|
||||||
ip += consumed * fmt->channels_per_frame;
|
ip += consumed * fmt->channels_per_frame;
|
||||||
flip ^= 1;
|
if (is_padding) {
|
||||||
/*
|
/*
|
||||||
* As we pad 1 frame at beginning and ending by our extrapolator,
|
* As we pad 1 frame at beginning and ending by our extrapolator,
|
||||||
* we want to drop them.
|
* we want to drop them.
|
||||||
@ -560,25 +559,26 @@ int encode(aacenc_param_ex_t *params, pcm_reader_t *reader,
|
|||||||
* Since sbr_header is included in the first frame (in case of
|
* Since sbr_header is included in the first frame (in case of
|
||||||
* SBR), we cannot discard first frame. So we pick second instead.
|
* SBR), we cannot discard first frame. So we pick second instead.
|
||||||
*/
|
*/
|
||||||
++encoded;
|
flip ^= 1;
|
||||||
if (encoded == 1 || encoded == 3)
|
++encoded;
|
||||||
continue;
|
if (encoded == 1 || encoded == 3)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (write_sample(params->output_fp, m4af, &obuf[flip]) < 0)
|
if (write_sample(params->output_fp, m4af, &obuf[flip]) < 0)
|
||||||
goto END;
|
goto END;
|
||||||
++frames_written;
|
++frames_written;
|
||||||
} while (remaining > 0);
|
} while (remaining > 0);
|
||||||
/*
|
|
||||||
* When interrupted, we haven't pulled out last extrapolated frames
|
|
||||||
* from the reader. Therefore, we have to write the final outcome.
|
|
||||||
*/
|
|
||||||
if (g_interrupted) {
|
|
||||||
if (write_sample(params->output_fp, m4af, &obp[flip^1]) < 0)
|
|
||||||
goto END;
|
|
||||||
++frames_written;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
DONE:
|
DONE:
|
||||||
|
/*
|
||||||
|
* When interrupted, we haven't pulled out last extrapolated frames
|
||||||
|
* from the reader. Therefore, we have to write the final outcome.
|
||||||
|
*/
|
||||||
|
if (g_interrupted) {
|
||||||
|
if (write_sample(params->output_fp, m4af, &obp[flip^1]) < 0)
|
||||||
|
goto END;
|
||||||
|
++frames_written;
|
||||||
|
}
|
||||||
if (!params->silent)
|
if (!params->silent)
|
||||||
aacenc_progress_finish(&progress, pcm_get_position(reader));
|
aacenc_progress_finish(&progress, pcm_get_position(reader));
|
||||||
rc = frames_written;
|
rc = frames_written;
|
||||||
@ -702,7 +702,6 @@ pcm_reader_t *open_input(aacenc_param_ex_t *params)
|
|||||||
{
|
{
|
||||||
pcm_io_context_t io = { 0 };
|
pcm_io_context_t io = { 0 };
|
||||||
pcm_reader_t *reader = 0;
|
pcm_reader_t *reader = 0;
|
||||||
struct stat stb = { 0 };
|
|
||||||
|
|
||||||
if ((params->input_fp = aacenc_fopen(params->input_filename, "rb")) == 0) {
|
if ((params->input_fp = aacenc_fopen(params->input_filename, "rb")) == 0) {
|
||||||
aacenc_fprintf(stderr, "ERROR: %s: %s\n", params->input_filename,
|
aacenc_fprintf(stderr, "ERROR: %s: %s\n", params->input_filename,
|
||||||
@ -710,8 +709,7 @@ pcm_reader_t *open_input(aacenc_param_ex_t *params)
|
|||||||
goto FAIL;
|
goto FAIL;
|
||||||
}
|
}
|
||||||
io.cookie = params->input_fp;
|
io.cookie = params->input_fp;
|
||||||
if (fstat(fileno(params->input_fp), &stb) == 0
|
if (aacenc_seekable(params->input_fp))
|
||||||
&& (stb.st_mode & S_IFMT) == S_IFREG)
|
|
||||||
io.vtbl = &pcm_io_vtbl;
|
io.vtbl = &pcm_io_vtbl;
|
||||||
else
|
else
|
||||||
io.vtbl = &pcm_io_vtbl_noseek;
|
io.vtbl = &pcm_io_vtbl_noseek;
|
||||||
@ -760,8 +758,10 @@ pcm_reader_t *open_input(aacenc_param_ex_t *params)
|
|||||||
reader = pcm_open_native_converter(reader);
|
reader = pcm_open_native_converter(reader);
|
||||||
if (reader && PCM_IS_FLOAT(pcm_get_format(reader)))
|
if (reader && PCM_IS_FLOAT(pcm_get_format(reader)))
|
||||||
reader = limiter_open(reader);
|
reader = limiter_open(reader);
|
||||||
if (reader && (reader = pcm_open_sint16_converter(reader)) != 0)
|
if (reader && (reader = pcm_open_sint16_converter(reader)) != 0) {
|
||||||
reader = extrapolater_open(reader);
|
if (do_smart_padding(params->profile))
|
||||||
|
reader = extrapolater_open(reader);
|
||||||
|
}
|
||||||
return reader;
|
return reader;
|
||||||
FAIL:
|
FAIL:
|
||||||
return 0;
|
return 0;
|
||||||
@ -803,12 +803,14 @@ int main(int argc, char **argv)
|
|||||||
params.sbr_ratio = 2;
|
params.sbr_ratio = 2;
|
||||||
}
|
}
|
||||||
scale_shift = aacenc_is_dual_rate_sbr((aacenc_param_t*)¶ms);
|
scale_shift = aacenc_is_dual_rate_sbr((aacenc_param_t*)¶ms);
|
||||||
params.sbr_signaling =
|
params.sbr_signaling = 0;
|
||||||
(params.transport_format == TT_MP4_LOAS) ? 2 :
|
if (sbr_mode) {
|
||||||
(params.transport_format == TT_MP4_RAW) ? 1 : 0;
|
if (params.transport_format == TT_MP4_LOAS || !scale_shift)
|
||||||
if (sbr_mode && !scale_shift)
|
params.sbr_signaling = 2;
|
||||||
params.sbr_signaling = 2;
|
if (params.transport_format == TT_MP4_RAW &&
|
||||||
|
aacenc_is_explicit_bw_compatible_sbr_signaling_available())
|
||||||
|
params.sbr_signaling = 1;
|
||||||
|
}
|
||||||
if (aacenc_init(&encoder, (aacenc_param_t*)¶ms, sample_format,
|
if (aacenc_init(&encoder, (aacenc_param_t*)¶ms, sample_format,
|
||||||
&aacinfo) < 0)
|
&aacinfo) < 0)
|
||||||
goto END;
|
goto END;
|
||||||
@ -834,36 +836,37 @@ int main(int argc, char **argv)
|
|||||||
params.output_fp)) < 0)
|
params.output_fp)) < 0)
|
||||||
goto END;
|
goto END;
|
||||||
m4af_set_num_channels(m4af, 0, sample_format->channels_per_frame);
|
m4af_set_num_channels(m4af, 0, sample_format->channels_per_frame);
|
||||||
m4af_set_decoder_specific_info(m4af, 0,
|
|
||||||
aacinfo.confBuf, aacinfo.confSize);
|
|
||||||
m4af_set_fixed_frame_duration(m4af, 0, framelen >> scale_shift);
|
m4af_set_fixed_frame_duration(m4af, 0, framelen >> scale_shift);
|
||||||
|
if (aacenc_is_explicit_bw_compatible_sbr_signaling_available())
|
||||||
|
m4af_set_decoder_specific_info(m4af, 0,
|
||||||
|
aacinfo.confBuf, aacinfo.confSize);
|
||||||
|
else {
|
||||||
|
uint8_t mp4asc[32];
|
||||||
|
uint32_t ascsize = sizeof(mp4asc);
|
||||||
|
aacenc_mp4asc((aacenc_param_t*)¶ms, aacinfo.confBuf,
|
||||||
|
aacinfo.confSize, mp4asc, &ascsize);
|
||||||
|
m4af_set_decoder_specific_info(m4af, 0, mp4asc, ascsize);
|
||||||
|
}
|
||||||
m4af_set_vbr_mode(m4af, 0, params.bitrate_mode);
|
m4af_set_vbr_mode(m4af, 0, params.bitrate_mode);
|
||||||
m4af_set_priming_mode(m4af, params.gapless_mode + 1);
|
m4af_set_priming_mode(m4af, params.gapless_mode + 1);
|
||||||
m4af_begin_write(m4af);
|
m4af_begin_write(m4af);
|
||||||
}
|
}
|
||||||
if (scale_shift && (aacinfo.encoderDelay & 1)) {
|
|
||||||
/*
|
|
||||||
* Since odd delay cannot be exactly expressed in downsampled scale,
|
|
||||||
* we push one zero frame to the encoder here, to make delay even
|
|
||||||
*/
|
|
||||||
int16_t zero[8] = { 0 };
|
|
||||||
aacenc_frame_t frame = { 0 };
|
|
||||||
aac_encode_frame(encoder, sample_format, zero, 1, &frame);
|
|
||||||
free(frame.data);
|
|
||||||
}
|
|
||||||
frame_count = encode(¶ms, reader, encoder, aacinfo.frameLength, m4af);
|
frame_count = encode(¶ms, reader, encoder, aacinfo.frameLength, m4af);
|
||||||
if (frame_count < 0)
|
if (frame_count < 0)
|
||||||
goto END;
|
goto END;
|
||||||
if (m4af) {
|
if (m4af) {
|
||||||
uint32_t delay = aacinfo.encoderDelay;
|
|
||||||
uint32_t padding;
|
uint32_t padding;
|
||||||
|
#if AACENCODER_LIB_VL0 < 4
|
||||||
|
uint32_t delay = aacinfo.encoderDelay;
|
||||||
|
if (sbr_mode && params.profile != AOT_ER_AAC_ELD
|
||||||
|
&& !params.include_sbr_delay)
|
||||||
|
delay -= 481 << scale_shift;
|
||||||
|
#else
|
||||||
|
uint32_t delay = params.include_sbr_delay ? aacinfo.nDelay
|
||||||
|
: aacinfo.nDelayCore;
|
||||||
|
#endif
|
||||||
int64_t frames_read = pcm_get_position(reader);
|
int64_t frames_read = pcm_get_position(reader);
|
||||||
|
|
||||||
if (sbr_mode && params.profile != AOT_ER_AAC_ELD &&
|
|
||||||
!params.include_sbr_delay)
|
|
||||||
delay -= 481 << scale_shift;
|
|
||||||
if (scale_shift && (delay & 1))
|
|
||||||
++delay;
|
|
||||||
padding = frame_count * aacinfo.frameLength - frames_read - delay;
|
padding = frame_count * aacinfo.frameLength - frames_read - delay;
|
||||||
m4af_set_priming(m4af, 0, delay >> scale_shift, padding >> scale_shift);
|
m4af_set_priming(m4af, 0, delay >> scale_shift, padding >> scale_shift);
|
||||||
if (finalize_m4a(m4af, ¶ms, encoder) < 0)
|
if (finalize_m4a(m4af, ¶ms, encoder) < 0)
|
||||||
|
@ -41,7 +41,6 @@ static int64_t get_position(pcm_reader_t *reader)
|
|||||||
|
|
||||||
static int read_frames(pcm_reader_t *reader, void *buffer, unsigned nframes)
|
static int read_frames(pcm_reader_t *reader, void *buffer, unsigned nframes)
|
||||||
{
|
{
|
||||||
unsigned i;
|
|
||||||
pcm_float_converter_t *self = (pcm_float_converter_t *)reader;
|
pcm_float_converter_t *self = (pcm_float_converter_t *)reader;
|
||||||
const pcm_sample_description_t *sfmt = pcm_get_format(self->src);
|
const pcm_sample_description_t *sfmt = pcm_get_format(self->src);
|
||||||
nframes = pcm_read_frames(self->src, buffer, nframes);
|
nframes = pcm_read_frames(self->src, buffer, nframes);
|
||||||
|
Reference in New Issue
Block a user