Commit 7789f4cc authored by Jan Kiene's avatar Jan Kiene
Browse files

add higher bitrates for non-stereo format

parent e601077c
Loading
Loading
Loading
Loading
+23 −18
Original line number Diff line number Diff line
import pytest
import pathlib
import itertools
from filecmp import cmp
from tempfile import TemporaryDirectory
from .conftest import EncoderFrontend, DecoderFrontend
@@ -33,7 +34,7 @@ INPUT_FILES = [
        ]

# TODO: add higher BRs
BITRATES = [13200, 16400, 24400, 32000, 48000, 64000, 80000, 96000, 128000, 160000, 192000, 256000]
BITRATES = [13200, 16400, 24400, 32000, 48000, 64000, 80000, 96000, 128000, 160000, 192000, 256000, 384000, 512000]


def get_options(inp_format):
@@ -52,6 +53,7 @@ def get_options(inp_format):

    return options


@pytest.mark.parametrize("inp_format,inp_file", zip(INPUT_FORMATS, INPUT_FILES))
@pytest.mark.parametrize("bitrate", BITRATES)
def test_be_for_ext_output(
@@ -62,6 +64,9 @@ def test_be_for_ext_output(
        dut_decoder_frontend: DecoderFrontend,
        ):
    
    if inp_format == "stereo" and bitrate > 256000:
        pytest.skip("Invalid bitrate for Stereo")

    with TemporaryDirectory() as tmp_dir:
        tmp_dir = pathlib.Path(tmp_dir)