Package com.banuba.sdk.internal.camera
Class Camera2
- java.lang.Object
-
- com.banuba.sdk.internal.camera.Camera2
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.TreeMap<java.lang.Long,java.lang.Long>
sPushedFrames
-
Constructor Summary
Constructors Constructor Description Camera2(com.banuba.sdk.effect_player.EffectPlayer effectPlayer, CameraListenerSender cameraListenerSender, android.hardware.camera2.CameraManager cameraManager, android.util.Size preferredPreviewSize, IFpsController fpsController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyZoom(float zoomFactor)
void
openCameraAndStartPreview(Facing facing, float zoomFactor, int orientation, boolean requireMirroring, boolean enableFlash)
void
release()
void
requestHighResPhoto()
void
setFaceOrient(int angle)
void
setFlashEnabled(boolean enable)
void
setFpsMode(CameraFpsMode mode)
void
setPushOn(boolean on)
void
setRecordDebugVideo(DebugVideoCallbackListener listener)
void
setRequireMirroring(boolean requireMirroring)
void
setScreenOrientation(int screenOrient)
void
stopPreviewAndCloseCamera()
-
-
-
Constructor Detail
-
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 Detail
-
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
-
setFaceOrient
public void setFaceOrient(int angle)
- Specified by:
setFaceOrient
in interfaceICamera2
-
setRequireMirroring
public void setRequireMirroring(boolean requireMirroring)
- Specified by:
setRequireMirroring
in interfaceICamera2
-
setRecordDebugVideo
public void setRecordDebugVideo(@Nullable DebugVideoCallbackListener listener)
- Specified by:
setRecordDebugVideo
in interfaceICamera2
-
setFpsMode
public void setFpsMode(@NonNull CameraFpsMode mode)
- Specified by:
setFpsMode
in interfaceICamera2
-
setScreenOrientation
public void setScreenOrientation(int screenOrient)
- Specified by:
setScreenOrientation
in interfaceICamera2
-
-