Commit cc4bb425 authored by norvell's avatar norvell
Browse files

Handle non-diegetic panning

parent 0b0300f8
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ INPUT_FMT = [
    (r"-ism_sba\s?2\s?2", "OSBA_2_2"),
    (r"-ism_sba\s?3\s?2", "OSBA_3_2"),
    (r"-ism_sba\s?4\s?2", "OSBA_4_2"),
    (r".*", "MONO"),
]

PEAQ_SUPPORTED_FMT = [
@@ -474,6 +475,8 @@ def test_param_file_tests(
        metadata_input = None # Todo: This can be used for OMASA/OSBA rendering
        trj_file = findstr(r'-t\s+(\S+)', dec_opts)
        non_diegetic_pan = findstr(r'-non_diegetic_pan\s+(\S+)', dec_opts)
        if non_diegetic_pan is not None:
            output_config = "STEREO"
        name_extension = None
        refrot_file = findstr(r'-rf\s+(\S+)', dec_opts)
        rot_tmp_file = findstr(r'-rvf\s+(\S+)', dec_opts)
@@ -951,8 +954,8 @@ def get_expected_md_files(ref_output_file, enc_opts, output_config):

    return md_files

def findstr(exp, s, one_element=False):
    result = re.findall(exp, s)
def findstr(exp, s, one_element=True):
    result = [SCRIPTS_DIR.joinpath(x) for x in re.findall(exp, s)]
    if len(result) == 0:
        return None
    if one_element: