Loading tests/hrtf_binary_loading/constants.py +9 −1 Original line number Diff line number Diff line Loading @@ -67,6 +67,14 @@ INPUT_FORMATS_ISM = ["1", "2", "3", "4"] INPUT_FORMATS_MASA = {"tc": ["1", "2"], "dir": ["1", "2"]} INPUT_FORMATS_MASA_RENDERER = ["MASA1", "MASA2"] MC_BITRATE_FOR_FORMAT = { "5_1": 96000, "5_1_2": 32000, "5_1_4": 512000, "7_1": 512000, "7_1_4": 160000, } FORMAT_TO_FILE_MC_WOEXT = { "5_1": "stv51MC{}c_cut", Loading @@ -87,7 +95,7 @@ BITRATE_ISM = { "1": 96000, "2": 160000, "3": 384000, "4": 512000, "4": 32000, } FORMAT_TO_METADATA_FILES = {"MASA": "stv{}MASA{}TC{}c.met", "ISM": "stvISM{}.csv"} Loading tests/hrtf_binary_loading/test_codec_ROM_vs_file.py +9 −10 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ import itertools from tests.hrtf_binary_loading.utils import * from .constants import HRTF_TAGS from .constants import HRTF_TAGS, MC_BITRATE_FOR_FORMAT """ Binary file """ Loading @@ -60,7 +60,7 @@ def test_binary_file(test_info, hrtf_tag, out_fs): ], ) def test_multichannel_binaural_static(test_info, in_fmt, out_fmt, out_fs, hrtf_tag): bitrate = 512000 bitrate = MC_BITRATE_FOR_FORMAT[in_fmt] in_fs = 48 option_list = ["-mc", in_fmt] in_file = FORMAT_TO_FILE_MC_WOEXT[in_fmt].format(in_fs) Loading Loading @@ -95,7 +95,7 @@ def test_multichannel_binaural_static(test_info, in_fmt, out_fmt, out_fs, hrtf_t def test_multichannel_binaural_headrotation( test_info, in_fmt, out_fmt, out_fs, trj_file, hrtf_tag ): bitrate = 512000 bitrate = MC_BITRATE_FOR_FORMAT[in_fmt] in_fs = 48 option_list = ["-mc", in_fmt] in_file = FORMAT_TO_FILE_MC_WOEXT[in_fmt].format(in_fs) Loading @@ -117,18 +117,17 @@ def test_multichannel_binaural_headrotation( @pytest.mark.parametrize( ("in_fmt", "fs", "out_fmt", "hrtf_tag"), ("bitrate", "in_fmt", "fs", "out_fmt", "hrtf_tag"), [ pytest.param(*x, marks=pytest.mark.xfail(strict=True)) if x[-1] == HRTF_BINARY_FILE_DIFF_FROM_ROM else x for x in itertools.product( INPUT_FORMATS_SBA, SAMPLE_RATE[1:], OUTPUT_FORMATS_BINAURAL[:-1], HRTF_TAGS [256000, 64000], INPUT_FORMATS_SBA, SAMPLE_RATE[1:], OUTPUT_FORMATS_BINAURAL[:-1], HRTF_TAGS ) ], ) def test_sba_binaural_static(test_info, in_fmt, fs, out_fmt, hrtf_tag): bitrate = 256000 def test_sba_binaural_static(bitrate, test_info, in_fmt, fs, out_fmt, hrtf_tag): option_list = ["-sba", in_fmt] in_file = FORMAT_TO_FILE_SBA_WOEXT[in_fmt].format(fs) Loading @@ -145,12 +144,13 @@ def test_sba_binaural_static(test_info, in_fmt, fs, out_fmt, hrtf_tag): @pytest.mark.parametrize( ("in_fmt", "fs", "out_fmt", "trj_file", "hrtf_tag"), ("bitrate", "in_fmt", "fs", "out_fmt", "trj_file", "hrtf_tag"), [ pytest.param(*x, marks=pytest.mark.xfail(strict=True)) if x[-1] == HRTF_BINARY_FILE_DIFF_FROM_ROM else x for x in itertools.product( [256000, 64000], INPUT_FORMATS_SBA, SAMPLE_RATE[1:], OUTPUT_FORMATS_BINAURAL[:-1], Loading @@ -159,8 +159,7 @@ def test_sba_binaural_static(test_info, in_fmt, fs, out_fmt, hrtf_tag): ) ], ) def test_sba_binaural_headrotation(test_info, in_fmt, fs, out_fmt, trj_file, hrtf_tag): bitrate = 256000 def test_sba_binaural_headrotation(bitrate, test_info, in_fmt, fs, out_fmt, trj_file, hrtf_tag): option_list = ["-sba", in_fmt] in_file = FORMAT_TO_FILE_SBA_WOEXT[in_fmt].format(fs) Loading Loading
tests/hrtf_binary_loading/constants.py +9 −1 Original line number Diff line number Diff line Loading @@ -67,6 +67,14 @@ INPUT_FORMATS_ISM = ["1", "2", "3", "4"] INPUT_FORMATS_MASA = {"tc": ["1", "2"], "dir": ["1", "2"]} INPUT_FORMATS_MASA_RENDERER = ["MASA1", "MASA2"] MC_BITRATE_FOR_FORMAT = { "5_1": 96000, "5_1_2": 32000, "5_1_4": 512000, "7_1": 512000, "7_1_4": 160000, } FORMAT_TO_FILE_MC_WOEXT = { "5_1": "stv51MC{}c_cut", Loading @@ -87,7 +95,7 @@ BITRATE_ISM = { "1": 96000, "2": 160000, "3": 384000, "4": 512000, "4": 32000, } FORMAT_TO_METADATA_FILES = {"MASA": "stv{}MASA{}TC{}c.met", "ISM": "stvISM{}.csv"} Loading
tests/hrtf_binary_loading/test_codec_ROM_vs_file.py +9 −10 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ import itertools from tests.hrtf_binary_loading.utils import * from .constants import HRTF_TAGS from .constants import HRTF_TAGS, MC_BITRATE_FOR_FORMAT """ Binary file """ Loading @@ -60,7 +60,7 @@ def test_binary_file(test_info, hrtf_tag, out_fs): ], ) def test_multichannel_binaural_static(test_info, in_fmt, out_fmt, out_fs, hrtf_tag): bitrate = 512000 bitrate = MC_BITRATE_FOR_FORMAT[in_fmt] in_fs = 48 option_list = ["-mc", in_fmt] in_file = FORMAT_TO_FILE_MC_WOEXT[in_fmt].format(in_fs) Loading Loading @@ -95,7 +95,7 @@ def test_multichannel_binaural_static(test_info, in_fmt, out_fmt, out_fs, hrtf_t def test_multichannel_binaural_headrotation( test_info, in_fmt, out_fmt, out_fs, trj_file, hrtf_tag ): bitrate = 512000 bitrate = MC_BITRATE_FOR_FORMAT[in_fmt] in_fs = 48 option_list = ["-mc", in_fmt] in_file = FORMAT_TO_FILE_MC_WOEXT[in_fmt].format(in_fs) Loading @@ -117,18 +117,17 @@ def test_multichannel_binaural_headrotation( @pytest.mark.parametrize( ("in_fmt", "fs", "out_fmt", "hrtf_tag"), ("bitrate", "in_fmt", "fs", "out_fmt", "hrtf_tag"), [ pytest.param(*x, marks=pytest.mark.xfail(strict=True)) if x[-1] == HRTF_BINARY_FILE_DIFF_FROM_ROM else x for x in itertools.product( INPUT_FORMATS_SBA, SAMPLE_RATE[1:], OUTPUT_FORMATS_BINAURAL[:-1], HRTF_TAGS [256000, 64000], INPUT_FORMATS_SBA, SAMPLE_RATE[1:], OUTPUT_FORMATS_BINAURAL[:-1], HRTF_TAGS ) ], ) def test_sba_binaural_static(test_info, in_fmt, fs, out_fmt, hrtf_tag): bitrate = 256000 def test_sba_binaural_static(bitrate, test_info, in_fmt, fs, out_fmt, hrtf_tag): option_list = ["-sba", in_fmt] in_file = FORMAT_TO_FILE_SBA_WOEXT[in_fmt].format(fs) Loading @@ -145,12 +144,13 @@ def test_sba_binaural_static(test_info, in_fmt, fs, out_fmt, hrtf_tag): @pytest.mark.parametrize( ("in_fmt", "fs", "out_fmt", "trj_file", "hrtf_tag"), ("bitrate", "in_fmt", "fs", "out_fmt", "trj_file", "hrtf_tag"), [ pytest.param(*x, marks=pytest.mark.xfail(strict=True)) if x[-1] == HRTF_BINARY_FILE_DIFF_FROM_ROM else x for x in itertools.product( [256000, 64000], INPUT_FORMATS_SBA, SAMPLE_RATE[1:], OUTPUT_FORMATS_BINAURAL[:-1], Loading @@ -159,8 +159,7 @@ def test_sba_binaural_static(test_info, in_fmt, fs, out_fmt, hrtf_tag): ) ], ) def test_sba_binaural_headrotation(test_info, in_fmt, fs, out_fmt, trj_file, hrtf_tag): bitrate = 256000 def test_sba_binaural_headrotation(bitrate, test_info, in_fmt, fs, out_fmt, trj_file, hrtf_tag): option_list = ["-sba", in_fmt] in_file = FORMAT_TO_FILE_SBA_WOEXT[in_fmt].format(fs) Loading