Users can also use cmake to build for
x86_64, and Windows (MSVS project) platforms.
Run the following commands to build the Ex-HEAAC Decoder for native platform:
Go to the root directory(libxaac/) of the Ex-HEAAC Decoder. Create a new folder in the project root directory and move to the newly created folder. $ cd <path to libxaac> $ mkdir bin $ cd bin $ cmake .. $ cmake --build .
To create MSVS project files for the Ex-HEAAC decoder from cmake, run the following commands:
Go to the root directory(libxaac/) of the Ex-HEAAC Decoder. Create a new folder in the project root directory and move to the newly created folder. $ cd <path to libxaac> $ mkdir bin $ cd bin $ cmake -G "Visual Studio 15 2017" ..
The above command creates MSVS 2017 project files. If the version is different, modify the generator name accordingly. The Ex-HEAAC decoder can be built using these project files.
The Ex-HEAAC Decoder can be run by providing command-line parameters(CLI options) directly or by providing a parameter file as a command line argument.
Command line usage :
<exceutable> -ifile:<input_file> -imeta:<meta_data_file> -ofile:<out_file> [options] [options] can be, [-pcmsz:<pcmwordsize>] [-dmix:<down_mix>] [-tostereo:<interleave_to_stereo>] [-dsample:<down_sample_sbr>] [-fs:<RAW_sample_rate>] [-nosync:<disable_sync>] [-sbrup:<auto_sbr_upsample>] [-maxchannel:<maximum_num_channels>] [-mp4:<mp4_flag>] where, <inputfile> is the input AAC file name. <meta_data_file> is a text file which contains metadata for USAC files with an MP4 container. <outputfile> is the output file name. <pcmwordsize> is the bits per sample info. Only 16 is valid <down_mix> is to enable/disable always mono output. Default 0. <interleave_to_stereo> is to enable/disable always interleaved to stereo output. Default 1. <down_sample_sbr> is to enable/disable down-sampled SBR output. Default auto identification from header. <RAW_sample_rate> is to indicate the core AAC sample rate for a RAW stream. If this is specified no other file format headers are searched for. <disable_sync> is to disable the ADTS/ADIF sync search i.e when enabled the decoder expects the header to be at the start of input buffer. Default 0. <auto_sbr_upsample> is to enable(1) or disable(0) auto SBR upsample in case of stream changing from SBR present to SBR not present. Default 1. <maximum_num_channels> is the number of maxiumum channels the input may have. Default is 6 (5.1). <mp4_flag> is a flag that should be set to 1 when passing raw stream along with meta data text file.
<xaac_dec_exe> -ifile:in_file.aac -ofile:out_file.wav -pcmsz:16
Conformance testing for AAC/HEAAC v1/HEAAC v2 mainly involves comparing decoder under test output with the ISO and 3GPP reference decoded output.
Testing for USAC is done using encoded streams generated using ISO USAC reference encoder. The output generated by ITTIAM USAC decoder is compared against the output generated by ISO USAC decoder for 16-bit conformance on the respective(ARMv7, ARMv8, X86_32, X86_64) platforms.