Class CameraThread

All Implemented Interfaces:
Runnable

public class CameraThread extends BaseWorkThread<CameraHandler>
  • 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

      @NonNull protected CameraHandler constructHandler()
      Specified by:
      constructHandler in class BaseWorkThread<CameraHandler>
    • preRunInit

      protected void preRunInit()
      Overrides:
      preRunInit in class BaseWorkThread<CameraHandler>
    • postRunClear

      protected void postRunClear()
      Overrides:
      postRunClear in class BaseWorkThread<CameraHandler>
    • handleReleaseCamera

      public void handleReleaseCamera()
    • handleInitCameraMatrix

      public void handleInitCameraMatrix(int w, int h)
    • handleRequestHighResPhoto

      public void handleRequestHighResPhoto()
    • handleOpenCamera

      public void handleOpenCamera(Facing facing, 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)