Package com.banuba.sdk.internal.renderer
Class RenderThread
- 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
ConstructorDescriptionRenderThread
(com.banuba.sdk.effect_player.EffectPlayer effectPlayer, android.util.Size drawSize, RecordingListener recordingListener) -
Method Summary
Modifier and TypeMethodDescriptionprotected RenderHandler
void
handleProcessImage
(com.banuba.sdk.types.FullImageData image) void
handleProcessPhoto
(com.banuba.sdk.types.FullImageData image) void
handleStartEditingImage
(com.banuba.sdk.types.FullImageData image) protected void
initWatermarkIfNeeded
(WatermarkInfo watermarkInfo) protected void
protected void
protected void
void
setDrawSize
(int width, int height) void
shutdown()
Shuts everything down.protected void
updateWatermark
(Integer surfaceWidth, Integer surfaceHeight) Methods inherited from class com.banuba.sdk.internal.BaseWorkThread
getHandler, releaseHandler, run, 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
-
RenderThread
public RenderThread(com.banuba.sdk.effect_player.EffectPlayer effectPlayer, @NonNull android.util.Size drawSize, RecordingListener recordingListener)
-
-
Method Details
-
constructHandler
- Specified by:
constructHandler
in classBaseWorkThread<RenderHandler>
-
preRunInit
protected void preRunInit()- Overrides:
preRunInit
in classBaseWorkThread<RenderHandler>
-
postRunClear
protected void postRunClear()- Overrides:
postRunClear
in classBaseWorkThread<RenderHandler>
-
shutdown
public void shutdown()Shuts everything down.- Overrides:
shutdown
in classBaseWorkThread<RenderHandler>
-
handleProcessPhoto
public void handleProcessPhoto(com.banuba.sdk.types.FullImageData image) -
initWatermarkIfNeeded
-
updateWatermark
-
releaseWatermark
protected void releaseWatermark() -
handleProcessImage
public void handleProcessImage(com.banuba.sdk.types.FullImageData image) -
handleStartEditingImage
public void handleStartEditingImage(com.banuba.sdk.types.FullImageData image) -
setDrawSize
public void setDrawSize(int width, int height)
-