Package com.banuba.sdk.internal.camera
Class Camera2
java.lang.Object
com.banuba.sdk.internal.camera.Camera2
- All Implemented Interfaces:
ICamera2
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCamera2
(com.banuba.sdk.effect_player.EffectPlayer effectPlayer, CameraListenerSender cameraListenerSender, android.hardware.camera2.CameraManager cameraManager, android.util.Size preferredPreviewSize, IFpsController fpsController) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyZoom
(float zoomFactor) void
openCameraAndStartPreview
(Facing facing, float zoomFactor, int orientation, boolean requireMirroring, boolean enableFlash) void
release()
void
void
setFaceOrient
(int angle) void
setFlashEnabled
(boolean enable) void
setFpsMode
(CameraFpsMode mode) void
setPushOn
(boolean on) void
void
setRequireMirroring
(boolean requireMirroring) void
setScreenOrientation
(int screenOrient) void
-
Field Details
-
sPushedFrames
-
-
Constructor Details
-
Camera2
public Camera2(com.banuba.sdk.effect_player.EffectPlayer effectPlayer, CameraListenerSender cameraListenerSender, @NonNull android.hardware.camera2.CameraManager cameraManager, @NonNull android.util.Size preferredPreviewSize, @Nullable IFpsController fpsController)
-
-
Method Details
-
setPushOn
public void setPushOn(boolean on) -
requestHighResPhoto
public void requestHighResPhoto()- Specified by:
requestHighResPhoto
in interfaceICamera2
-
stopPreviewAndCloseCamera
public void stopPreviewAndCloseCamera()- Specified by:
stopPreviewAndCloseCamera
in interfaceICamera2
-
openCameraAndStartPreview
public void openCameraAndStartPreview(@NonNull Facing facing, float zoomFactor, int orientation, boolean requireMirroring, boolean enableFlash) - Specified by:
openCameraAndStartPreview
in interfaceICamera2
-
setFlashEnabled
public void setFlashEnabled(boolean enable) - Specified by:
setFlashEnabled
in interfaceICamera2
-
applyZoom
public void applyZoom(float zoomFactor) -
setFaceOrient
public void setFaceOrient(int angle) - Specified by:
setFaceOrient
in interfaceICamera2
-
setRequireMirroring
public void setRequireMirroring(boolean requireMirroring) - Specified by:
setRequireMirroring
in interfaceICamera2
-
setRecordDebugVideo
- Specified by:
setRecordDebugVideo
in interfaceICamera2
-
release
public void release() -
setFpsMode
- Specified by:
setFpsMode
in interfaceICamera2
-
setScreenOrientation
public void setScreenOrientation(int screenOrient) - Specified by:
setScreenOrientation
in interfaceICamera2
-