-
public class CameraConfigAllows applications to access and change camera configuration parameters of the Hydra platform.
-
-
Constructor Summary
Constructors Constructor Description CameraConfig(Context context)Allows applications to access and change camera configuration parameters of the Hydra platform.
-
Method Summary
Modifier and Type Method Description voidsetEarlyCameraConfig(int cameraFov, float zoomFactor, boolean horizontalMirror)Sets the early camera zoom factor and horizontal mirroring for a specified field of view voidoverrideCameraOrientation(int cameraFov, float roll, float pitch, float yaw)Overrides the camera orientation parameters for a specified field of view.The orientation is normally set via DST2 parameters but some machines does not set this. -
-
Constructor Detail
-
CameraConfig
CameraConfig(Context context)
Allows applications to access and change camera configuration parameters of the Hydra platform.- Parameters:
context- The application context
-
-
Method Detail
-
setEarlyCameraConfig
void setEarlyCameraConfig(int cameraFov, float zoomFactor, boolean horizontalMirror)
Sets the early camera zoom factor and horizontal mirroring for a specified field of view
- Parameters:
cameraFov- Int describing the camera field of view, e.g rear, front.Note that this is referred to as SERVICE_TYPE_ in CarEvsManager.zoomFactor- Float describing zoom factor where 1.horizontalMirror- Boolean describing whether the image should be mirrored or not
-
overrideCameraOrientation
void overrideCameraOrientation(int cameraFov, float roll, float pitch, float yaw)
Overrides the camera orientation parameters for a specified field of view.The orientation is normally set via DST2 parameters but some machines does not set this.
- Parameters:
cameraFov- Int describing the camera field of view, e.g rear, front.Note that this is referred to as SERVICE_TYPE_ in CarEvsManager.roll- Float describing the roll angle of the camerapitch- Float describing the pitch angle of the camerayaw- Float describing the yaw angle of the camera
-
-
-
-