Loading tests/codec_be_on_mr_nonselection/test_param_file.py +9 −6 Original line number Diff line number Diff line Loading @@ -465,9 +465,12 @@ def test_param_file_tests( n_obj = len(in_meta_files) if n_obj > 0 and output_config == "EXT": out_meta_files = [f"{dut_output_file}.{i}.csv" for i in range(0,n_obj)] output_config = in_fmt # For EXT, output format is the same as the input format else: out_meta_files = None if output_config == "EXT": output_config = in_fmt if output_config == "": output_config = "MONO" # EVS mono metadata_input = None # Todo: This can be used for OMASA/OSBA rendering trj_file = findstr(r'-t\s+(\S+)', dec_opts) non_diegetic_pan = findstr(r'-non_diegetic_pan\s+(\S+)', dec_opts) Loading @@ -488,7 +491,7 @@ def test_param_file_tests( if not output_config in PEAQ_SUPPORTED_FMT: # Render output # Render output to BINAURAL output_reformat = "BINAURAL" check_and_makedir(str(Path(dut_output_file_binaural).parent)) Loading Loading @@ -516,14 +519,14 @@ def test_param_file_tests( out_file=dut_output_file_binaural, sr=out_sr, ) # Update output_config to rendered format output_config = output_reformat # Use binauralized file for comparison dut_output_file = dut_output_file_binaural if not in_fmt in PEAQ_SUPPORTED_FMT or in_fmt != output_config: # Render input if in_fmt != output_config: # Render input to match output_config out_fmt = output_config if not out_fmt in PEAQ_SUPPORTED_FMT: out_fmt = "BINAURAL" check_and_makedir(str(Path(ref_output_file_binaural).parent)) Loading Loading
tests/codec_be_on_mr_nonselection/test_param_file.py +9 −6 Original line number Diff line number Diff line Loading @@ -465,9 +465,12 @@ def test_param_file_tests( n_obj = len(in_meta_files) if n_obj > 0 and output_config == "EXT": out_meta_files = [f"{dut_output_file}.{i}.csv" for i in range(0,n_obj)] output_config = in_fmt # For EXT, output format is the same as the input format else: out_meta_files = None if output_config == "EXT": output_config = in_fmt if output_config == "": output_config = "MONO" # EVS mono metadata_input = None # Todo: This can be used for OMASA/OSBA rendering trj_file = findstr(r'-t\s+(\S+)', dec_opts) non_diegetic_pan = findstr(r'-non_diegetic_pan\s+(\S+)', dec_opts) Loading @@ -488,7 +491,7 @@ def test_param_file_tests( if not output_config in PEAQ_SUPPORTED_FMT: # Render output # Render output to BINAURAL output_reformat = "BINAURAL" check_and_makedir(str(Path(dut_output_file_binaural).parent)) Loading Loading @@ -516,14 +519,14 @@ def test_param_file_tests( out_file=dut_output_file_binaural, sr=out_sr, ) # Update output_config to rendered format output_config = output_reformat # Use binauralized file for comparison dut_output_file = dut_output_file_binaural if not in_fmt in PEAQ_SUPPORTED_FMT or in_fmt != output_config: # Render input if in_fmt != output_config: # Render input to match output_config out_fmt = output_config if not out_fmt in PEAQ_SUPPORTED_FMT: out_fmt = "BINAURAL" check_and_makedir(str(Path(ref_output_file_binaural).parent)) Loading