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

same for head rotation testcases

parent 1cad243d
Loading
Loading
Loading
Loading
+19 −5
Original line number Diff line number Diff line
@@ -30,20 +30,27 @@ 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
from .. import get_testv_path, get_valid_fs_max_band_pairs
from ..constants import *


def pytest_generate_tests(metafunc):
    # NOTE: this excludes narrow-band modes for stereo_dmx_evs as those are not really IVAS but EVS and implementation is complicated...
    fs_mb_params = get_valid_fs_max_band_pairs()
    metafunc.parametrize("input_sampling_rate,max_band", fs_mb_params)


@pytest.mark.parametrize("exof", EXOF_PARAMS)
@pytest.mark.parametrize("otr_mode", OTR_PARAMS)
@pytest.mark.parametrize(
    "input_format,bitrate,input_sampling_rate,dtx,output_format,output_sampling_rate,bitstream_processing",
    "input_format,bitrate,dtx,output_format,output_sampling_rate,bitstream_processing",
    DECODER_CONST_BR_BINAURAL_MC_AND_MASA,
)
def test_decoder_hr_mc_and_masa(
    input_format,
    bitrate,
    input_sampling_rate,
    max_band,
    dtx,
    output_format,
    output_sampling_rate,
@@ -63,6 +70,7 @@ def test_decoder_hr_mc_and_masa(
        processing=bitstream_processing,
        otr_mode=otr_mode,
        exof=exof,
        max_band=max_band,
    ) as (ref_bitstream, options):
        run_check(
            ref_bitstream,
@@ -81,13 +89,14 @@ def test_decoder_hr_mc_and_masa(
@pytest.mark.parametrize("exof", EXOF_PARAMS)
@pytest.mark.parametrize("otr_mode", OTR_PARAMS)
@pytest.mark.parametrize(
    "input_format,bitrate,input_sampling_rate,dtx,md_type,output_format,output_sampling_rate,bitstream_processing",
    "input_format,bitrate,dtx,md_type,output_format,output_sampling_rate,bitstream_processing",
    DECODER_CONST_BR_BINAURAL_OBJECTBASED,
)
def test_decoder_hr_objectbased(
    input_format,
    bitrate,
    input_sampling_rate,
    max_band,
    dtx,
    md_type,
    output_format,
@@ -114,6 +123,7 @@ def test_decoder_hr_objectbased(
        processing=bitstream_processing,
        otr_mode=otr_mode,
        exof=exof,
        max_band=max_band,
    ) as (ref_bitstream, options):
        run_check(
            ref_bitstream,
@@ -130,13 +140,14 @@ def test_decoder_hr_objectbased(
@pytest.mark.parametrize("exof", EXOF_PARAMS)
@pytest.mark.parametrize("otr_mode", OTR_PARAMS)
@pytest.mark.parametrize(
    "input_format,bitrate,input_sampling_rate,dtx,pca,output_format,output_sampling_rate,bitstream_processing",
    "input_format,bitrate,dtx,pca,output_format,output_sampling_rate,bitstream_processing",
    DECODER_CONST_BR_BINAURAL_SCENEBASED,
)
def test_decoder_hr_scenebased(
    input_format,
    bitrate,
    input_sampling_rate,
    max_band,
    dtx,
    pca,
    output_format,
@@ -161,6 +172,7 @@ def test_decoder_hr_scenebased(
        processing=bitstream_processing,
        otr_mode=otr_mode,
        exof=exof,
        max_band=max_band,
    ) as (ref_bitstream, options):
        run_check(
            ref_bitstream,
@@ -177,7 +189,7 @@ def test_decoder_hr_scenebased(
@pytest.mark.parametrize("exof", EXOF_PARAMS)
@pytest.mark.parametrize("otr_mode", OTR_PARAMS)
@pytest.mark.parametrize(
    "input_format_ism,input_format_other,bitrate,input_sampling_rate,md_type,output_format,output_sampling_rate,bitstream_processing",
    "input_format_ism,input_format_other,bitrate,md_type,output_format,output_sampling_rate,bitstream_processing",
    DECODER_CONST_BR_BINAURAL_COMBINED_PARAMS,
)
def test_decoder_hr_combined_formats(
@@ -185,6 +197,7 @@ def test_decoder_hr_combined_formats(
    input_format_other,
    bitrate,
    input_sampling_rate,
    max_band,
    md_type,
    output_format,
    output_sampling_rate,
@@ -214,6 +227,7 @@ def test_decoder_hr_combined_formats(
        processing=bitstream_processing,
        otr_mode=otr_mode,
        exof=exof,
        max_band=max_band,
    ) as (ref_bitstream, options):
        run_check(
            ref_bitstream,