Loading lib_util/rotation_file_reader.c +8 −8 Original line number Diff line number Diff line Loading @@ -174,6 +174,14 @@ ivas_error ExternalOrientationFileReading( } ( externalOrientationReader->frameCounter )++; #ifdef FIX_1370_EXTERNAL_ORIENTATION_CHECK /* Only Quaternion orientations are supported, raise an error if Euler angles are detected in the input */ if ( w == -3.0f ) { return IVAS_ERR_EXTERNAL_ORIENTATION_INVALID_FORMAT; } #endif pQuaternion->w = w; pQuaternion->x = x; Loading @@ -183,14 +191,6 @@ ivas_error ExternalOrientationFileReading( *enableExternalOrientation = (int8_t) extOrientationFlag; *enableRotationInterpolation = (int8_t) rotInterpolationFlag; *numFramesToTargetOrientation = (int16_t) nFramesToTarget; #ifdef FIX_1370_EXTERNAL_ORIENTATION_CHECK /* Only Quaternion orientations are supported, raise an error if Euler angles are detected in the input */ if ( pQuaternion->w == -3.0f ) { return IVAS_ERR_EXTERNAL_ORIENTATION_INVALID_FORMAT; } #endif return IVAS_ERR_OK; } Loading Loading
lib_util/rotation_file_reader.c +8 −8 Original line number Diff line number Diff line Loading @@ -174,6 +174,14 @@ ivas_error ExternalOrientationFileReading( } ( externalOrientationReader->frameCounter )++; #ifdef FIX_1370_EXTERNAL_ORIENTATION_CHECK /* Only Quaternion orientations are supported, raise an error if Euler angles are detected in the input */ if ( w == -3.0f ) { return IVAS_ERR_EXTERNAL_ORIENTATION_INVALID_FORMAT; } #endif pQuaternion->w = w; pQuaternion->x = x; Loading @@ -183,14 +191,6 @@ ivas_error ExternalOrientationFileReading( *enableExternalOrientation = (int8_t) extOrientationFlag; *enableRotationInterpolation = (int8_t) rotInterpolationFlag; *numFramesToTargetOrientation = (int16_t) nFramesToTarget; #ifdef FIX_1370_EXTERNAL_ORIENTATION_CHECK /* Only Quaternion orientations are supported, raise an error if Euler angles are detected in the input */ if ( pQuaternion->w == -3.0f ) { return IVAS_ERR_EXTERNAL_ORIENTATION_INVALID_FORMAT; } #endif return IVAS_ERR_OK; } Loading