Commit 83101f87 authored by vaclav's avatar vaclav
Browse files

Merge branch 'orange/fixpoint_crend_hrtf_file_format_clean_up' of...

Merge branch 'orange/fixpoint_crend_hrtf_file_format_clean_up' of https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec into orange/fixpoint_crend_hrtf_file_format_clean_up
parents 33e2a7f1 07a4c06e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -29,8 +29,6 @@
   the United Nations Convention on Contracts on the International Sales of Goods.
*******************************************************************************************************/
/* Generated on 18-Jul-2024 with Matlab version 24.1.0.2578822 (R2024a) Update 2 by marcemerit on MACA64 */
/* clang-format off */
@@ -49,6 +47,10 @@
 * TD Binaural rendering related ROM tables
 *------------------------------------------------------------------------*/
/* TD renderer default HRIR model */
#ifdef DEBUGGING
/* Generated on 18-Jul-2024 with Matlab version 24.1.0.2578822 (R2024a) Update 2 by marcemerit on MACA64 */
#endif
#ifdef FIX_POINT_HRTF_FILE_FORMAT
const int16_t defaultHRIR_rom_latency_s_Q = 31;
const int32_t defaultHRIR_rom_latency_s = 44741;
+4 −0
Original line number Diff line number Diff line
@@ -49,10 +49,12 @@
/* Binaural rendering data set based on HRIRs */
/* Tables generated by the script at "scripts/binauralRenderer_interface/fastconv/generate_tables_for_fastconv.m */
#ifdef DEBUGGING
/* Can be replaced by your own generated HRIR tables */
/*
 * Generated on 18-Jul-2024 with Matlab version 24.1.0.2578822 (R2024a) Update 2 by marcemerit on MACA64
*/
#endif
const int16_t FASTCONV_HOA3_latency_s_factorQ = 31;
@@ -46966,10 +46968,12 @@ const int16_t fastconvReverberationEneCorrections[CLDFB_NO_CHANNELS_MAX] =
};
#ifdef DEBUGGING
/*
 * Generated on 18-Jul-2024 with Matlab version 24.1.0.2578822 (R2024a) Update 2 by marcemerit on MACA64
 * Binaural rendering data set based on BRIRs 
 Tables derived from Mozart IIS BRIRs.*/
#endif
const int16_t hrtfShCoeffs_factorQ = 14;
+3 −1
Original line number Diff line number Diff line
@@ -38,9 +38,11 @@ function write_fastconv_rom_table(output_file, FastConv_SHD_IR_FOA, FastConv_SHD
        username = getenv('username');
    end
    fid = fopen(output_file, 'at');
    fprintf(fid, '#ifdef DEBUGGING\n');
    fprintf(fid, '/*\n');
    fprintf(fid, ' * Generated on %s with Matlab version %s by %s on %s\n', datetime("today"), version, username, computer);
    fprintf(fid, '*/\n\n\n');
    fprintf(fid, '*/\n');
    fprintf(fid, '#endif\n\n\n');
    
    %% HRIRs (SHD)
    % HOA3
+3 −1
Original line number Diff line number Diff line
@@ -38,9 +38,11 @@ function write_fastconv_rom_table(output_file, FastConv_SHD_IR_FOA, FastConv_SHD
        username = getenv('username');
    end
    fid = fopen(output_file, 'at');
    fprintf(fid, '#ifdef DEBUGGING\n');
    fprintf(fid, '/*\n');
    fprintf(fid, ' * Generated on %s with Matlab version %s by %s on %s\n', datetime("today"), version, username, computer);
    fprintf(fid, '*/\n\n\n');
    fprintf(fid, '*/\n');
    fprintf(fid, '#endif\n\n\n');
    
    %% HRIRs (SHD)
    % HOA3
+3 −1
Original line number Diff line number Diff line
@@ -79,10 +79,12 @@ if writeRomFileOutput
        username = getenv('username');
    end
    fid = fopen(fullfile('.', rom_file), 'at');
    fprintf(fid, '#ifdef DEBUGGING\n');
    fprintf(fid, '/*\n');
    fprintf(fid, ' * Generated on %s with Matlab version %s by %s on %s\n', datetime("today"), version, username, computer);
    fprintf(fid, ' * Binaural rendering data set based on BRIRs \n Tables derived from Mozart IIS BRIRs.*/');    
    fprintf(fid, '\n\n\n');
    fprintf(fid, '*/\n');
    fprintf(fid, '#endif\n\n\n');
end


Loading