Commit 1a3b444e authored by Jan Kiene's avatar Jan Kiene
Browse files

implement --decoder_only for sba tests

parent 81f977c7
Loading
Loading
Loading
Loading
+119 −102
Original line number Diff line number Diff line
@@ -104,6 +104,7 @@ def test_pca_enc(
    fs,
    get_mld,
    get_mld_lim,
    decoder_only,
):
    pca = True
    tag = tag + fs + "c"
@@ -114,6 +115,7 @@ def test_pca_enc(
    sba_order = "+1"
    output_config = "FOA"

    if not decoder_only:
        # enc
        sba_enc(
            dut_encoder_frontend,
@@ -153,6 +155,7 @@ def test_pca_enc(
        update_ref,
        gain_flag,
        keep_files,
        decoder_only,
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
        pca=pca,
@@ -186,6 +189,7 @@ def test_sba_enc_system(
    SID,
    get_mld,
    get_mld_lim,
    decoder_only,
):
    if dtx == "1" and ivas_br not in ["13200", "16400", "24400", "32000", "64000"]:
        # skip high bitrates for DTX until DTX issue is resolved
@@ -215,6 +219,8 @@ def test_sba_enc_system(
        cut_gain = ".004"
    else:
        cut_gain = "1.0"

    if not decoder_only:
        # enc
        sba_enc(
            dut_encoder_frontend,
@@ -255,6 +261,7 @@ def test_sba_enc_system(
        update_ref,
        gain_flag,
        keep_files,
        decoder_only,
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
    )
@@ -278,6 +285,7 @@ def test_spar_hoa2_enc_system(
    tag,
    get_mld,
    get_mld_lim,
    decoder_only,
):
    fs = "48"
    dtx = "0"
@@ -288,6 +296,7 @@ def test_spar_hoa2_enc_system(
    sba_order = "+2"
    output_config = "HOA2"

    if not decoder_only:
        # enc
        sba_enc(
            dut_encoder_frontend,
@@ -325,6 +334,7 @@ def test_spar_hoa2_enc_system(
        update_ref,
        gain_flag,
        keep_files,
        decoder_only,
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
    )
@@ -348,6 +358,7 @@ def test_spar_hoa3_enc_system(
    tag,
    get_mld,
    get_mld_lim,
    decoder_only,
):
    fs = "48"
    dtx = "0"
@@ -358,6 +369,7 @@ def test_spar_hoa3_enc_system(
    sba_order = "+3"
    output_config = "HOA3"

    if not decoder_only:
        # enc
        sba_enc(
            dut_encoder_frontend,
@@ -395,6 +407,7 @@ def test_spar_hoa3_enc_system(
        update_ref,
        gain_flag,
        keep_files,
        decoder_only,
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
    )
@@ -422,6 +435,7 @@ def test_sba_enc_BWforce_system(
    sample_rate_bw_idx,
    get_mld,
    get_mld_lim,
    decoder_only,
):
    if dtx == "1" and ivas_br not in ["32000", "64000"]:
        # skip high bitrates for DTX until DTX issue is resolved
@@ -437,6 +451,7 @@ def test_sba_enc_BWforce_system(
    sba_order = "+1"
    output_config = "FOA"

    if not decoder_only:
        # enc
        sba_enc(
            dut_encoder_frontend,
@@ -475,6 +490,7 @@ def test_sba_enc_BWforce_system(
        update_ref,
        gain_flag,
        keep_files,
        decoder_only,
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
    )
@@ -642,6 +658,7 @@ def sba_dec(
    update_ref,
    gain_flag,
    keep_files,
    decoder_only,
    get_mld=False,
    get_mld_lim=0,
    pca=False,
@@ -693,7 +710,7 @@ def sba_dec(
        decoder_frontend.run(
            output_config,
            sampling_rate,
            dut_in_pkt,
            dut_in_pkt if not decoder_only else ref_in_pkt,
            dut_out_raw,
        )