Package com.banuba.sdk.internal.camera
Class CameraThread
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionCameraThread
(android.content.Context context, com.banuba.sdk.effect_player.EffectPlayer effectPlayer, CameraListener cameraListener, android.util.Size preferredPreviewSize, IFpsController fpsController) -
Method Summary
Modifier and TypeMethodDescriptionprotected CameraHandler
void
handleChangeZoom
(float zoomFactor) void
handleInitCameraMatrix
(int w, int h) void
handleOpenCamera
(Facing facing, Float zoomFactor, int screenOrientation, boolean requireMirroring, boolean enableFlashlight) void
void
void
protected void
protected void
void
setFaceOrient
(int angle) void
setFpsMode
(CameraFpsMode mode) void
setPushOn
(boolean on) void
setRequireMirroring
(boolean requireMirroring) void
setScreenOrientation
(int screenOrientation) Methods inherited from class com.banuba.sdk.internal.BaseWorkThread
getHandler, releaseHandler, run, shutdown, startAndGetHandler
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
CameraThread
public CameraThread(@NonNull android.content.Context context, @NonNull com.banuba.sdk.effect_player.EffectPlayer effectPlayer, @NonNull CameraListener cameraListener, @NonNull android.util.Size preferredPreviewSize, @Nullable IFpsController fpsController)
-
-
Method Details
-
constructHandler
- Specified by:
constructHandler
in classBaseWorkThread<CameraHandler>
-
preRunInit
protected void preRunInit()- Overrides:
preRunInit
in classBaseWorkThread<CameraHandler>
-
postRunClear
protected void postRunClear()- Overrides:
postRunClear
in classBaseWorkThread<CameraHandler>
-
handleReleaseCamera
public void handleReleaseCamera() -
handleInitCameraMatrix
public void handleInitCameraMatrix(int w, int h) -
handleRequestHighResPhoto
public void handleRequestHighResPhoto() -
handleOpenCamera
-
handleChangeZoom
public void handleChangeZoom(float zoomFactor) -
setFaceOrient
public void setFaceOrient(int angle) -
setScreenOrientation
public void setScreenOrientation(int screenOrientation) -
setPushOn
public void setPushOn(boolean on) -
setFpsMode
-
setRequireMirroring
public void setRequireMirroring(boolean requireMirroring) -
handleRecordDebugVideo
-