Commit e688d6eb authored by norvell's avatar norvell
Browse files

Added encoder call in test_sba_plc_system

parent eff398bb
Loading
Loading
Loading
Loading
+39 −2
Original line number Diff line number Diff line
@@ -595,11 +595,14 @@ def test_sba_enc_BWforce_system(
def test_sba_plc_system(
    record_property,
    props_to_record,
    dut_encoder_frontend: EncoderFrontend,
    dut_decoder_frontend: DecoderFrontend,
    ref_decoder_frontend,
    test_vector_path,
    reference_path,
    dut_base_path,
    ref_decoder_path,
    ref_encoder_frontend,
    ref_decoder_frontend,
    br_switch_file_path,
    update_ref,
    keep_files,
    ivas_br,
@@ -632,11 +635,45 @@ def test_sba_plc_system(
        pytest.skip()
    if "ltv" in tag:
        tag = f"ltv{fs}_FOA"
        cut_testv = False
    elif "stv" in tag:
        tag = tag + fs + "c"
        cut_testv = True
    else:
        assert 0 

    # added enc call
    max_bw = "FB"
    sba_order = "+1"
    if gain_flag == 1:
        cut_gain = "16.0"
    elif dtx == "1":
        cut_gain = ".004"
    else:
        cut_gain = "1.0"

    sba_enc(
        dut_encoder_frontend,
        test_vector_path,
        ref_encoder_frontend,
        reference_path,
        dut_base_path,
        br_switch_file_path,
        tag,
        fs,
        ivas_br,
        dtx,
        SID,
        max_bw,
        sba_order,
        update_ref,
        gain_flag,
        keep_files,
        cut_gain=cut_gain,
        create_dutenc=True,
        cut_testv=cut_testv,
    )

    # dec
    sba_dec(
        record_property,