Package com.banuba.sdk.input
Class CameraDeviceConfigurator
- java.lang.Object
-
- com.banuba.sdk.input.CameraDeviceConfigurator
-
public abstract class CameraDeviceConfigurator extends java.lang.Object
The class helps to reconfigure the camera.- See Also:
CameraDevice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CameraDeviceConfigurator.IFrameRotationProviderCallback
Allows to adjust the camera's input orientationstatic class
CameraDeviceConfigurator.LensSelector
Front or back camera selector
-
Field Summary
Fields Modifier and Type Field Description static android.util.Size
DEFAULT_IMAGE_CAPTURE_SIZE
static CameraDeviceConfigurator.LensSelector
DEFAULT_LENS
static android.util.Size
DEFAULT_VIDEO_CAPTURE_SIZE
Default settings.static android.util.Size
FHD_CAPTURE_SIZE
static android.util.Size
HD_CAPTURE_SIZE
protected CameraDeviceConfigurator.IFrameRotationProviderCallback
mFrameRotationProviderCallback
protected android.util.Size
mImageCaptureSize
protected CameraDeviceConfigurator.LensSelector
mLens
protected android.util.Size
mVideoCaptureSize
Current settingsstatic android.util.Size
QHD_CAPTURE_SIZE
static android.util.Size
SD_CAPTURE_SIZE
Available video and photo capture resolutions.
-
Constructor Summary
Constructors Constructor Description CameraDeviceConfigurator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
commit()
The method commits all changes and reconfigures the camera.CameraDeviceConfigurator
setFrameRotationProviderCallback(CameraDeviceConfigurator.IFrameRotationProviderCallback callback)
Set frame rotation provider callbackCameraDeviceConfigurator
setImageCaptureSize(android.util.Size imageCaptureSize)
Set the image capture resolutionCameraDeviceConfigurator
setLens(CameraDeviceConfigurator.LensSelector lens)
Select current camera (front/back)CameraDeviceConfigurator
setVideoCaptureSize(android.util.Size videoCaptureSize)
Set the video capture resolution
-
-
-
Field Detail
-
SD_CAPTURE_SIZE
public static final android.util.Size SD_CAPTURE_SIZE
Available video and photo capture resolutions. In addition to these video resolutions, you can use your own.
-
HD_CAPTURE_SIZE
public static final android.util.Size HD_CAPTURE_SIZE
-
FHD_CAPTURE_SIZE
public static final android.util.Size FHD_CAPTURE_SIZE
-
QHD_CAPTURE_SIZE
public static final android.util.Size QHD_CAPTURE_SIZE
-
DEFAULT_VIDEO_CAPTURE_SIZE
public static final android.util.Size DEFAULT_VIDEO_CAPTURE_SIZE
Default settings.
-
DEFAULT_IMAGE_CAPTURE_SIZE
public static final android.util.Size DEFAULT_IMAGE_CAPTURE_SIZE
-
DEFAULT_LENS
public static final CameraDeviceConfigurator.LensSelector DEFAULT_LENS
-
mVideoCaptureSize
protected android.util.Size mVideoCaptureSize
Current settings
-
mImageCaptureSize
protected android.util.Size mImageCaptureSize
-
mLens
protected CameraDeviceConfigurator.LensSelector mLens
-
mFrameRotationProviderCallback
protected CameraDeviceConfigurator.IFrameRotationProviderCallback mFrameRotationProviderCallback
-
-
Method Detail
-
setVideoCaptureSize
public CameraDeviceConfigurator setVideoCaptureSize(android.util.Size videoCaptureSize)
Set the video capture resolution- Parameters:
videoCaptureSize
- resolution
-
setImageCaptureSize
public CameraDeviceConfigurator setImageCaptureSize(android.util.Size imageCaptureSize)
Set the image capture resolution- Parameters:
imageCaptureSize
- resolution
-
setLens
public CameraDeviceConfigurator setLens(CameraDeviceConfigurator.LensSelector lens)
Select current camera (front/back)- Parameters:
lens
- front or back camera
-
setFrameRotationProviderCallback
public CameraDeviceConfigurator setFrameRotationProviderCallback(CameraDeviceConfigurator.IFrameRotationProviderCallback callback)
Set frame rotation provider callback- Parameters:
callback
- rotation provider
-
commit
public abstract void commit()
The method commits all changes and reconfigures the camera.
-
-