Loading tests/codec_be_to_accepted_release/decoder/test_dec_const_br_sba.py +11 −4 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ the United Nations Convention on Contracts on the International Sales of Goods. import pytest from . import get_bitstream_and_options, run_check from .. import get_testv_path, get_valid_fs_max_band_pairs from ..constants import SBA_PARAMS_DEC from ..constants import SBA_PARAMS_DEC, SBA_PARAMS_DEC_REDUCED def pytest_generate_tests(metafunc): Loading @@ -46,9 +46,10 @@ def pytest_generate_tests(metafunc): metafunc.parametrize(param_string_fs_mb, fs_mb_params) metafunc.parametrize(param_string, SBA_PARAMS_DEC) elif reduction_level == "reduced": # param_string = "bitrate,dtx,input_sampling_rate,max_band,output_format,output_sampling_rate,bitstream_processing" # metafunc.parametrize(param_string, SBA_PARAMS_DEC_REDUCED) raise NotImplementedError() param_string = ( "bitrate,input_sampling_rate,max_band,planar,input_format,dtx,pca,output_format,output_sampling_rate,bitstream_processing" ) metafunc.parametrize(param_string, SBA_PARAMS_DEC_REDUCED) def test_dec_const_br_sba( Loading @@ -65,13 +66,19 @@ def test_dec_const_br_sba( dut_decoder_frontend, update_ref, ): if planar == SBA_IS_PLANAR: input_format = f"Planar{input_format}" testv_name = get_testv_path(input_format, input_sampling_rate).stem suffix = "" if pca == SBA_FOA_PCA_ON: suffix += "-pca" with get_bitstream_and_options( testv_name, input_format, bitrate, input_sampling_rate, dtx, suffix=suffix, processing=bitstream_processing, max_band=max_band, ) as (ref_bitstream, options): Loading tests/codec_be_to_accepted_release/encoder/test_enc_const_br_sba.py +0 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,6 @@ def test_enc_const_br_sba( dut_encoder_frontend, update_ref, ): # hacky for now, but maybe no need to do this cleanly if planar == SBA_IS_PLANAR: input_format = f"Planar{input_format}" testv = get_testv_path(input_format, sampling_rate) Loading Loading
tests/codec_be_to_accepted_release/decoder/test_dec_const_br_sba.py +11 −4 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ the United Nations Convention on Contracts on the International Sales of Goods. import pytest from . import get_bitstream_and_options, run_check from .. import get_testv_path, get_valid_fs_max_band_pairs from ..constants import SBA_PARAMS_DEC from ..constants import SBA_PARAMS_DEC, SBA_PARAMS_DEC_REDUCED def pytest_generate_tests(metafunc): Loading @@ -46,9 +46,10 @@ def pytest_generate_tests(metafunc): metafunc.parametrize(param_string_fs_mb, fs_mb_params) metafunc.parametrize(param_string, SBA_PARAMS_DEC) elif reduction_level == "reduced": # param_string = "bitrate,dtx,input_sampling_rate,max_band,output_format,output_sampling_rate,bitstream_processing" # metafunc.parametrize(param_string, SBA_PARAMS_DEC_REDUCED) raise NotImplementedError() param_string = ( "bitrate,input_sampling_rate,max_band,planar,input_format,dtx,pca,output_format,output_sampling_rate,bitstream_processing" ) metafunc.parametrize(param_string, SBA_PARAMS_DEC_REDUCED) def test_dec_const_br_sba( Loading @@ -65,13 +66,19 @@ def test_dec_const_br_sba( dut_decoder_frontend, update_ref, ): if planar == SBA_IS_PLANAR: input_format = f"Planar{input_format}" testv_name = get_testv_path(input_format, input_sampling_rate).stem suffix = "" if pca == SBA_FOA_PCA_ON: suffix += "-pca" with get_bitstream_and_options( testv_name, input_format, bitrate, input_sampling_rate, dtx, suffix=suffix, processing=bitstream_processing, max_band=max_band, ) as (ref_bitstream, options): Loading
tests/codec_be_to_accepted_release/encoder/test_enc_const_br_sba.py +0 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,6 @@ def test_enc_const_br_sba( dut_encoder_frontend, update_ref, ): # hacky for now, but maybe no need to do this cleanly if planar == SBA_IS_PLANAR: input_format = f"Planar{input_format}" testv = get_testv_path(input_format, sampling_rate) Loading