Commit 1a5757ea authored by bayers's avatar bayers
Browse files

try to fix BE for the external orientation, did not succeed, seems to be a...

try to fix BE for the external orientation, did not succeed, seems to be a deeper problem. Make self test summary more verbous
parent b61cb898
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1819,7 +1819,7 @@ static ivas_error decodeG192(
            }


            if ( ( error = IVAS_DEC_FeedExternalOrientationData( hIvasDec, Quaternion, enableHeadRotation, enableExternalOrientation, enableRotationInterpolation, numFramesToTargetOrientation ) ) != IVAS_ERR_OK )
            if ( ( error = IVAS_DEC_FeedExternalOrientationData( hIvasDec, Quaternion, enableHeadRotation, enableExternalOrientation, enableRotationInterpolation, numFramesToTargetOrientation * vec_pos_len ) ) != IVAS_ERR_OK )
            {
                fprintf( stderr, "\nIVAS_DEC_FeedExternalOrientationData failed: %s\n", IVAS_DEC_GetErrorMessage( error ) );
                goto cleanup;
+4 −0
Original line number Diff line number Diff line
@@ -795,7 +795,11 @@ ivas_error ivas_combined_orientation_open(
    /* Initialization */
    ( *hCombinedOrientationData )->interpolationCoefficient = 1.0f;
    ( *hCombinedOrientationData )->interpolationIncrement = 1.0f;
#ifdef API_5MS
    ( *hCombinedOrientationData )->maximumFramesToTargetOrientation = 2000;
#else
    ( *hCombinedOrientationData )->maximumFramesToTargetOrientation = 500;
#endif
    ( *hCombinedOrientationData )->lrSwitchedNext = 0;
    ( *hCombinedOrientationData )->lrSwitchedCurrent = 0;
    ( *hCombinedOrientationData )->lrSwitchInterpVal = 0.0f;
+23 −0
Original line number Diff line number Diff line
@@ -186,6 +186,13 @@ class SelfTest(IvasScriptsCommon.IvasScript):
            "--dectest",
            help="Test decoder binary (default:{})".format(default_dec_test),
        )
        self.parser.add_argument(
            "--list_conditions",
            "-l",
            help="List all comditions in the parameter file",
            action="store_true",
            default=False,
        )
        if shutil.which("valgrind"):
            self.valgrind = [
                "valgrind",
@@ -858,6 +865,7 @@ class SelfTest(IvasScriptsCommon.IvasScript):

            # add the detailed results for this condition
            self.fail_results["detailedResults"].append(result_str)
            self.fail_results["failed_modes"].append(mode)
        self.logger.progress(
            "Comparing conditions: {}/{} ({} running), {} failed ".format(
                self.stat["num_tests_done"],
@@ -1140,6 +1148,11 @@ class SelfTest(IvasScriptsCommon.IvasScript):

        self.parse_args()

        if self.args["list_conditions"] is True:
            run_dict = self.parse_self_test_prm(self.args["test_prm"])
            for mode in run_dict.keys():
                self.logger.console(f"- {run_dict[mode]['cmd']['table_name']}")
            return
        # create/update test vectors (export from SVN server if not existing)
        svn_action = None
        if not os.path.exists(TESTV_DIR):
@@ -1540,6 +1553,7 @@ class SelfTest(IvasScriptsCommon.IvasScript):
                "corrupt_test_conditions": {"cnt": 0, "conditions": []},
                "diff_nsamples_conditions": {"cnt": 0, "conditions": []},
                "detailedResults": [],
                "failed_modes":[],
            }
            self.run_pesq = self.args["pesq"]
            failed_ref_conditions = {}
@@ -1948,6 +1962,15 @@ class SelfTest(IvasScriptsCommon.IvasScript):
                    for l in r:
                        self.logger.info(l)

                self.logger.info("\n\n")
                self.logger.info("Summary of  all tests")
                self.logger.info("---------------------\n")
                for mode in run_dict.keys():
                    if mode in self.fail_results["failed_modes"]:
                        self.logger.info(f"[FAIL] {run_dict[mode]['cmd']['table_name']}")
                    else:
                        self.logger.info(f"[OK] {run_dict[mode]['cmd']['table_name']}")


if __name__ == "__main__":
    if sys.version_info[0] < 3 or sys.version_info[1] < 7: