Commit fdf2af96 authored by Jan Kiene's avatar Jan Kiene
Browse files

add ssnr possibility in other tests

parent ead310a4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ def test_masa_enc_dec(
    get_mld_lim,
    decoder_only,
    abs_tol,
    get_ssnr,
):
    # Input parameters
    in_fs = 48
@@ -219,6 +220,7 @@ def test_masa_enc_dec(
                get_mld=get_mld,
                mld_lim=get_mld_lim,
                abs_tol=abs_tol,
                get_ssnr=get_ssnr
            )
            if get_mld:
                mld = re.search(MLD_PATTERN, reason).groups(1)[0]
@@ -256,6 +258,7 @@ def test_masa_enc_dec(
                    get_mld=get_mld,
                    mld_lim=get_mld_lim,
                    abs_tol=abs_tol,
                    get_ssnr=get_ssnr
                )
                if get_mld:
                    mld = re.search(MLD_PATTERN, reason).groups(1)[0]
+4 −0
Original line number Diff line number Diff line
@@ -93,6 +93,7 @@ def test_sba_plc_system(
    get_mld,
    get_mld_lim,
    abs_tol,
    get_ssnr,
):
    SID = 0
    if dtx == "1" and ivas_br not in ["13200", "16400", "24400", "32000", "64000"]:
@@ -132,6 +133,7 @@ def test_sba_plc_system(
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
        abs_tol=abs_tol,
        get_ssnr=get_ssnr,
    )


@@ -156,6 +158,7 @@ def sba_dec_plc(
    get_mld=False,
    get_mld_lim=0,
    abs_tol=0,
    get_ssnr=False,
):
    # ------------  run cmd  ------------

@@ -213,6 +216,7 @@ def sba_dec_plc(
            get_mld=get_mld,
            mld_lim=get_mld_lim,
            abs_tol=abs_tol,
            get_ssnr=get_ssnr,
        )
        if get_mld:
            mld = re.search(MLD_PATTERN, reason).groups(1)[0]
+12 −0
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ def test_pca_enc(
    get_mld_lim,
    decoder_only,
    abs_tol,
    get_ssnr,
):
    pca = True
    tag = tag + fs + "c"
@@ -162,6 +163,7 @@ def test_pca_enc(
        get_mld_lim=get_mld_lim,
        pca=pca,
        abs_tol=abs_tol,
        get_ssnr=get_ssnr,
    )


@@ -194,6 +196,7 @@ def test_sba_enc_system(
    get_mld_lim,
    decoder_only,
    abs_tol,
    get_ssnr,
):
    if dtx == "1" and ivas_br not in ["13200", "16400", "24400", "32000", "64000"]:
        # skip high bitrates for DTX until DTX issue is resolved
@@ -269,6 +272,7 @@ def test_sba_enc_system(
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
        abs_tol=abs_tol,
        get_ssnr=get_ssnr,
    )


@@ -292,6 +296,7 @@ def test_spar_hoa2_enc_system(
    get_mld_lim,
    decoder_only,
    abs_tol,
    get_ssnr,
):
    fs = "48"
    dtx = "0"
@@ -344,6 +349,7 @@ def test_spar_hoa2_enc_system(
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
        abs_tol=abs_tol,
        get_ssnr=get_ssnr,
    )


@@ -367,6 +373,7 @@ def test_spar_hoa3_enc_system(
    get_mld_lim,
    decoder_only,
    abs_tol,
    get_ssnr,
):
    fs = "48"
    dtx = "0"
@@ -419,6 +426,7 @@ def test_spar_hoa3_enc_system(
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
        abs_tol=abs_tol,
        get_ssnr=get_ssnr,
    )


@@ -446,6 +454,7 @@ def test_sba_enc_BWforce_system(
    get_mld_lim,
    decoder_only,
    abs_tol,
    get_ssnr,
):
    if dtx == "1" and ivas_br not in ["32000", "64000"]:
        # skip high bitrates for DTX until DTX issue is resolved
@@ -504,6 +513,7 @@ def test_sba_enc_BWforce_system(
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
        abs_tol=abs_tol,
        get_ssnr=get_ssnr,
    )


@@ -665,6 +675,7 @@ def sba_dec(
    get_mld_lim=0,
    pca=False,
    abs_tol=0,
    get_ssnr=False,
):
    # --------  run cmd  ------------
    # sampling rate to BW mapping
@@ -729,6 +740,7 @@ def sba_dec(
            get_mld=get_mld,
            mld_lim=get_mld_lim,
            abs_tol=abs_tol,
            get_ssnr=get_ssnr,
        )
        if get_mld:
            mld = re.search(MLD_PATTERN, reason).groups(1)[0]