Commit f6fa0003 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

update to the split rendering test

parent b72b6479
Loading
Loading
Loading
Loading
Loading
+114 −32
Original line number Diff line number Diff line
@@ -37,12 +37,7 @@ from tests.split_rendering.utils import *

""" Ambisonics """

<<<<<<< HEAD


=======
@pytest.mark.parametrize("delay_profile", DELAY_PROFILES)
>>>>>>> main
@pytest.mark.parametrize("trajectory", SPLIT_REND_HR_TRAJECTORIES_TO_TEST)
@pytest.mark.parametrize("render_config", RENDERER_CONFIGS_TO_TEST_AMBI)
@pytest.mark.parametrize("bitrate", IVAS_BITRATES_AMBI)
@@ -55,7 +50,12 @@ def test_ambisonics_full_chain_split(
    get_ssnr,
    get_odg,
    get_odg_bin,    
    test_info, in_fmt, bitrate, render_config, trajectory
    test_info,
    in_fmt,
    bitrate,
    render_config,
    trajectory,
    delay_profile
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")
@@ -75,6 +75,7 @@ def test_ambisonics_full_chain_split(
        get_ssnr=get_ssnr,
        get_odg=get_odg,
        get_odg_bin=get_odg_bin,        
        delay_profile=SCRIPTS_DIR / "dly_error_profiles" / f"{delay_profile}.dat" if delay_profile else None,
    )


@@ -90,7 +91,11 @@ def test_ambisonics_external_split(
    get_ssnr,
    get_odg,
    get_odg_bin,     
    test_info, in_fmt, render_config, trajectory):
    test_info,
    in_fmt,
    render_config,
    trajectory
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")

@@ -115,6 +120,7 @@ def test_ambisonics_external_split(



@pytest.mark.parametrize("delay_profile", DELAY_PROFILES)
@pytest.mark.parametrize("trajectory", SPLIT_REND_HR_TRAJECTORIES_TO_TEST)
@pytest.mark.parametrize("render_config", RENDERER_CONFIGS_TO_TEST_MC)
@pytest.mark.parametrize("bitrate", IVAS_BITRATES_MC)
@@ -127,7 +133,12 @@ def test_multichannel_full_chain_split(
    get_ssnr,
    get_odg,
    get_odg_bin,     
    test_info, in_fmt, bitrate, render_config, trajectory
    test_info,
    in_fmt,
    bitrate,
    render_config,
    trajectory,
    delay_profile
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")
@@ -147,6 +158,7 @@ def test_multichannel_full_chain_split(
        get_ssnr=get_ssnr,
        get_odg=get_odg,
        get_odg_bin=get_odg_bin,        
        delay_profile=SCRIPTS_DIR / "dly_error_profiles" / f"{delay_profile}.dat" if delay_profile else None,
    )


@@ -162,7 +174,11 @@ def test_multichannel_external_split(
    get_ssnr,
    get_odg,
    get_odg_bin,     
test_info, in_fmt, render_config, trajectory):
    test_info,
    in_fmt,
    render_config,
    trajectory
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")

@@ -187,6 +203,7 @@ test_info, in_fmt, render_config, trajectory):



@pytest.mark.parametrize("delay_profile", DELAY_PROFILES)
@pytest.mark.parametrize("trajectory", SPLIT_REND_HR_TRAJECTORIES_TO_TEST)
@pytest.mark.parametrize("render_config", RENDERER_CONFIGS_TO_TEST_ISM)
@pytest.mark.parametrize("bitrate", IVAS_BITRATES_ISM)
@@ -199,7 +216,13 @@ def test_ism_full_chain_split(
    get_ssnr,
    get_odg,
    get_odg_bin,     
test_info, in_fmt, bitrate, render_config, trajectory):
    test_info,
    in_fmt,
    bitrate,
    render_config,
    trajectory,
    delay_profile
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")

@@ -218,6 +241,7 @@ test_info, in_fmt, bitrate, render_config, trajectory):
        get_ssnr=get_ssnr,
        get_odg=get_odg,
        get_odg_bin=get_odg_bin,        
        delay_profile=SCRIPTS_DIR / "dly_error_profiles" / f"{delay_profile}.dat" if delay_profile else None,
    )


@@ -233,7 +257,11 @@ def test_ism_external_split(
    get_ssnr,
    get_odg,
    get_odg_bin,     
test_info, in_fmt, render_config, trajectory):
    test_info,
    in_fmt,
    render_config,
    trajectory
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")

@@ -258,6 +286,7 @@ test_info, in_fmt, render_config, trajectory):



@pytest.mark.parametrize("delay_profile", DELAY_PROFILES)
@pytest.mark.parametrize("trajectory", SPLIT_REND_HR_TRAJECTORIES_TO_TEST)
@pytest.mark.parametrize("render_config", RENDERER_CONFIGS_TO_TEST_MASA)
@pytest.mark.parametrize("bitrate", IVAS_BITRATES_MASA)
@@ -270,7 +299,14 @@ def test_masa_full_chain_split(
    get_ssnr,
    get_odg,
    get_odg_bin,     
test_info, in_fmt, bitrate, render_config, trajectory):
    test_info,
    in_fmt,
    bitrate,
    render_config,
    trajectory,
    delay_profile
):
        
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")

@@ -289,6 +325,7 @@ test_info, in_fmt, bitrate, render_config, trajectory):
        get_ssnr=get_ssnr,
        get_odg=get_odg,
        get_odg_bin=get_odg_bin,        
        delay_profile=SCRIPTS_DIR / "dly_error_profiles" / f"{delay_profile}.dat" if delay_profile else None,
    )


@@ -304,7 +341,11 @@ def test_masa_external_split(
    get_ssnr,
    get_odg,
    get_odg_bin,     
test_info, in_fmt, render_config, trajectory):
    test_info,
    in_fmt,
    render_config,
    trajectory
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")

@@ -329,6 +370,7 @@ test_info, in_fmt, render_config, trajectory):



@pytest.mark.parametrize("delay_profile", DELAY_PROFILES)
@pytest.mark.parametrize("trajectory", SPLIT_REND_HR_TRAJECTORIES_TO_TEST)
@pytest.mark.parametrize("render_config", RENDERER_CONFIGS_TO_TEST_OMASA)
@pytest.mark.parametrize("bitrate", IVAS_BITRATES_OMASA)
@@ -341,7 +383,13 @@ def test_omasa_full_chain_split(
    get_ssnr,
    get_odg,
    get_odg_bin,     
test_info, in_fmt, bitrate, render_config, trajectory):
    test_info,
    in_fmt,
    bitrate,
    render_config,
    trajectory,
    delay_profile
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")

@@ -404,6 +452,7 @@ def test_omasa_external_split(



@pytest.mark.parametrize("delay_profile", DELAY_PROFILES)
@pytest.mark.parametrize("trajectory", SPLIT_REND_HR_TRAJECTORIES_TO_TEST)
@pytest.mark.parametrize("render_config", RENDERER_CONFIGS_TO_TEST_OSBA)
@pytest.mark.parametrize("bitrate", IVAS_BITRATES_OSBA)
@@ -416,7 +465,12 @@ def test_osba_full_chain_split(
    get_ssnr,
    get_odg,
    get_odg_bin,     
test_info, in_fmt, bitrate, render_config, trajectory):
    test_info,
    in_fmt,
    bitrate,
    render_config,
    trajectory
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")

@@ -491,7 +545,12 @@ def test_post_rend_plc(
    get_ssnr,
    get_odg,
    get_odg_bin,     
test_info, in_fmt, render_config, trajectory, error_pattern):
    test_info,
    in_fmt,
    render_config,
    trajectory,
    error_pattern
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")

@@ -525,6 +584,7 @@ full_chain_split_pcm_params = [



@pytest.mark.parametrize("delay_profile", DELAY_PROFILES)
@pytest.mark.parametrize("in_fmt,bitrate,render_config", full_chain_split_pcm_params)
def test_full_chain_split_pcm(
    record_property,
@@ -534,7 +594,11 @@ def test_full_chain_split_pcm(
    get_ssnr,
    get_odg,
    get_odg_bin,     
test_info, in_fmt, bitrate, render_config):
    test_info,
    in_fmt,
    bitrate,
    render_config
):
    trajectory = SPLIT_REND_HR_TRAJECTORIES_TO_TEST[0]
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")
@@ -555,6 +619,7 @@ test_info, in_fmt, bitrate, render_config):
        get_ssnr=get_ssnr,
        get_odg=get_odg,
        get_odg_bin=get_odg_bin,        
        delay_profile=SCRIPTS_DIR / "dly_error_profiles" / f"{delay_profile}.dat" if delay_profile else None,
    )


@@ -575,7 +640,10 @@ def test_external_split_pcm(
    get_ssnr,
    get_odg,
    get_odg_bin,     
test_info, in_fmt, render_config):
    test_info,
    in_fmt,
    render_config
):
    trajectory = SPLIT_REND_HR_TRAJECTORIES_TO_TEST[0]
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")
@@ -611,7 +679,13 @@ def test_framing_combinations_external_split(
    get_ssnr,
    get_odg,
    get_odg_bin,     
test_info, in_fmt, render_config, trajectory, post_rend_fr, pre_rend_fr):
    test_info,
    in_fmt,
    render_config,
    trajectory,
    post_rend_fr,
    pre_rend_fr
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")

@@ -633,6 +707,7 @@ test_info, in_fmt, render_config, trajectory, post_rend_fr, pre_rend_fr):
        get_odg_bin=get_odg_bin,        
    )

@pytest.mark.parametrize("delay_profile", DELAY_PROFILES)
@pytest.mark.parametrize("trajectory", SPLIT_REND_HR_TRAJECTORIES_TO_TEST)
@pytest.mark.parametrize("render_config", RENDERER_CONFIGS_FRAMING)
@pytest.mark.parametrize("in_fmt", ["5_1"])
@@ -646,7 +721,13 @@ def test_framing_combinations_full_chain_split(
    get_ssnr,
    get_odg,
    get_odg_bin,     
        test_info, in_fmt, render_config, trajectory, post_rend_fr, pre_rend_fr
    test_info,
    in_fmt,
    render_config,
    trajectory,
    post_rend_fr,
    pre_rend_fr,
    delay_profile
):
    post_trajectory = HR_TRAJECTORY_DIR.joinpath(f"{trajectory}.csv")
    pre_trajectory = post_trajectory.with_stem(f"{post_trajectory.stem}_delayed")
@@ -668,4 +749,5 @@ def test_framing_combinations_full_chain_split(
        get_ssnr=get_ssnr,
        get_odg=get_odg,
        get_odg_bin=get_odg_bin,        
        delay_profile=SCRIPTS_DIR / "dly_error_profiles" / f"{delay_profile}.dat" if delay_profile else None,
    )