Package com.banuba.sdk.internal.camera
Class CameraThread
- java.lang.Object
-
- java.lang.Thread
-
- com.banuba.sdk.internal.BaseWorkThread<CameraHandler>
-
- com.banuba.sdk.internal.camera.CameraThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class CameraThread extends BaseWorkThread<CameraHandler>
-
-
Constructor Summary
Constructors Constructor Description CameraThread(android.content.Context context, com.banuba.sdk.effect_player.EffectPlayer effectPlayer, CameraListener cameraListener, android.util.Size preferredPreviewSize, IFpsController fpsController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CameraHandler
constructHandler()
void
handleChangeZoom(float zoomFactor)
void
handleInitCameraMatrix(int w, int h)
void
handleOpenCamera(Facing facing, java.lang.Float zoomFactor, int screenOrientation, boolean requireMirroring, boolean enableFlashlight)
void
handleRecordDebugVideo(DebugVideoCallbackListener listener)
void
handleReleaseCamera()
void
handleRequestHighResPhoto()
protected void
postRunClear()
protected void
preRunInit()
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 Detail
-
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 Detail
-
constructHandler
@NonNull protected CameraHandler 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
public void handleOpenCamera(Facing facing, java.lang.Float zoomFactor, int screenOrientation, boolean requireMirroring, boolean enableFlashlight)
-
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
public void setFpsMode(@NonNull CameraFpsMode mode)
-
setRequireMirroring
public void setRequireMirroring(boolean requireMirroring)
-
handleRecordDebugVideo
public void handleRecordDebugVideo(@Nullable DebugVideoCallbackListener listener)
-
-