Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# CMake generated files
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles/
CMakeScripts/
Testing/
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps/
CMakeUserPresets.json
# IDE-specific files
vscode/
cache/
clangd/
# Compiled object files
*.o
*.obj
# Compiled dynamic libraries
*.so
*.dylib
*.dll
# Compiled static libraries
*.a
*.lib
# Executables
*.exe
*.out
*.app
4 changes: 2 additions & 2 deletions README_dec.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ The libxaac decoder can be run by providing command-line parameters(CLI options)

Command line usage :
```
<executable> -ifile:<input_file> -imeta:<meta_data_file> -ofile:<output_file> [options]
xaacdec -ifile:<input_file> -imeta:<meta_data_file> -ofile:<output_file> [options]

[options] can be,
[-mp4:<mp4_flag>]
Expand Down Expand Up @@ -230,7 +230,7 @@ where,
Note: `loudness_leveling_flag` is applicable only if `LOUDNESS_LEVELING_SUPPORT` macro is enabled.
Sample CLI:
```
<xaac_dec_exe> -ifile:in_file.aac -ofile:out_file.wav -pcmsz:16
xaacdec -ifile:in_file.aac -ofile:out_file.wav -pcmsz:16
```

# Validating the libxaac decoder
Expand Down
6 changes: 3 additions & 3 deletions README_enc.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ The configuration file for DRC is placed in `encoder\test` directory(impd_drc_co

# Command line usage :
```
<exceutable> -ifile:<input_file> -ofile:<out_file> [options]
xaacenc -ifile:<input_file> -ofile:<out_file> [options]
(or)
<executable> -paramfile:<paramfile>
xaacenc -paramfile:<paramfile>
[options] can be,
[-br:<bitrate>]
[-mps:<use_mps>]
Expand Down Expand Up @@ -110,7 +110,7 @@ where,
```
Sample CLI:
```
-ifile:input_file.wav -ofile:out_file.aac -br:<bit_rate> –aot:<audio profile>
xaacenc -ifile:input_file.wav -ofile:out_file.aac -br:<bit_rate> –aot:<audio profile>
```


Expand Down
11 changes: 6 additions & 5 deletions test/decoder/ixheaacd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <libgen.h>

#define AOSP_CHANGE

Expand Down Expand Up @@ -2271,15 +2272,15 @@ int ixheaacd_main_process(WORD32 argc, pWORD8 argv[]) {
/* */
/*****************************************************************************/

void print_usage() {
void print_usage(char *argv[]) {
#ifdef DISPLAY_MESSAGE
ia_lib_info_struct str_lib_info = {0};
ixheaacd_get_lib_id_strings(&str_lib_info);

ia_display_id_message(str_lib_info.p_lib_name, str_lib_info.p_version_num);
#endif
printf("\n Usage \n");
printf("\n <executable> -ifile:<input_file> -imeta:<meta_data_file> -ofile:<output_file> "
printf("\n %s %s", basename(argv[0]), "-ifile:<input_file> -imeta:<meta_data_file> -ofile:<output_file> "
"[options]\n");
printf("\n[options] can be,");
printf("\n[-mp4:<mp4_flag>]");
Expand Down Expand Up @@ -2460,7 +2461,7 @@ int main(WORD32 argc, char *argv[]) {
}

if ((g_pf_inp == NULL) || (g_pf_out == NULL)) {
print_usage();
print_usage(argv);
err_code = IA_TESTBENCH_MFMAN_FATAL_FILE_OPEN_FAILED;
ixheaacd_error_handler(&ixheaacd_ia_testbench_error_info,
(pWORD8) "Input or Output File", err_code);
Expand All @@ -2474,7 +2475,7 @@ int main(WORD32 argc, char *argv[]) {
for (i = 0; i < argc; i++) {
if (!strcmp((pCHAR8)argv[i], "-mp4:1")) {
if (g_pf_meta == NULL) {
print_usage();
print_usage(argv);
err_code = IA_TESTBENCH_MFMAN_FATAL_FILE_OPEN_FAILED;
ixheaacd_error_handler(&ixheaacd_ia_testbench_error_info,
(pWORD8) "Metadata File", err_code);
Expand Down Expand Up @@ -2507,4 +2508,4 @@ int main(WORD32 argc, char *argv[]) {
mpeg_d_drc_on = 0;

return IA_NO_ERROR;
} /* end ixheaacd_main */
} /* end ixheaacd_main */
16 changes: 9 additions & 7 deletions test/encoder/ixheaace_testbench.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <libgen.h>
#include "ixheaac_type_def.h"
#include "impd_drc_common_enc.h"
#include "impd_drc_uni_drc.h"
Expand Down Expand Up @@ -202,11 +203,11 @@ IA_ERRORCODE ia_enhaacplus_enc_wav_header_decode(FILE *in_file, UWORD32 *n_chann
return IA_NO_ERROR;
}

void ia_enhaacplus_enc_print_usage() {
void ia_enhaacplus_enc_print_usage(pCHAR8 argv[]) {
printf("\nUsage:\n");
printf("\n<executable> -ifile:<inputfile> -ofile:<outputfile> [options]\n");
printf("\n%s %s\n", basename(argv[0]), "-ifile:<inputfile> -ofile:<outputfile> [options]");
printf("\nor\n");
printf("\n<executable> -paramfile:<paramfile>\n");
printf("\n%s %s\n", basename(argv[0]), "-paramfile:<paramfile>");
printf("\n[options] can be,");
printf("\n[-br:<bitrate>]");
printf("\n[-mps:<use_mps>]");
Expand Down Expand Up @@ -320,7 +321,8 @@ void ia_enhaacplus_enc_print_usage() {
"\n It is applicable only for AOT 42. Valid values are 0 to 65535. Default is 0.");
printf(
"\n <delay adjustment> is used to discard algorithmic delay from the decoded file."
"\n It is applicable only for AOT 42. Valid values are 0 and 1. Default is 1.");
"\n It is applicable only for AOT 42. Valid values are 0 and 1. Default is 1."
"\n");
exit(1);
}

Expand Down Expand Up @@ -1629,15 +1631,15 @@ int main(WORD32 argc, pCHAR8 argv[]) {
if (param_file_id == NULL) {
ixheaace_get_lib_id_strings(&instance);
ia_enhaacplus_enc_display_id_message(instance.p_lib_name, instance.p_version_num);
ia_enhaacplus_enc_print_usage();
ia_enhaacplus_enc_print_usage(argv);
return IA_NO_ERROR;
}
} else {
param_file_id = fopen(PARAMFILE, "r");
if (param_file_id == NULL) {
ixheaace_get_lib_id_strings(&instance);
ia_enhaacplus_enc_display_id_message(instance.p_lib_name, instance.p_version_num);
ia_enhaacplus_enc_print_usage();
ia_enhaacplus_enc_print_usage(argv);
return IA_NO_ERROR;
}
}
Expand Down Expand Up @@ -1851,7 +1853,7 @@ int main(WORD32 argc, pCHAR8 argv[]) {
}

if (!strncmp((const char *)argv[i], "-help", 5)) {
ia_enhaacplus_enc_print_usage();
ia_enhaacplus_enc_print_usage(argv);
}
}

Expand Down