Package com.banuba.sdk.internal.renderer
Class RenderThread
- java.lang.Object
-
- java.lang.Thread
-
- com.banuba.sdk.internal.BaseWorkThread<RenderHandler>
-
- com.banuba.sdk.internal.renderer.RenderThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class RenderThread extends BaseWorkThread<RenderHandler>
-
-
Constructor Summary
Constructors Constructor Description RenderThread(com.banuba.sdk.effect_player.EffectPlayer effectPlayer, android.util.Size drawSize, RecordingListener recordingListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RenderHandler
constructHandler()
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
postRunClear()
protected void
preRunInit()
protected void
releaseWatermark()
void
setDrawSize(int width, int height)
void
shutdown()
Shuts everything down.protected void
updateWatermark(java.lang.Integer surfaceWidth, java.lang.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 Detail
-
RenderThread
public RenderThread(com.banuba.sdk.effect_player.EffectPlayer effectPlayer, @NonNull android.util.Size drawSize, RecordingListener recordingListener)
-
-
Method Detail
-
constructHandler
@NonNull protected RenderHandler 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
protected void initWatermarkIfNeeded(WatermarkInfo watermarkInfo)
-
updateWatermark
protected void updateWatermark(java.lang.Integer surfaceWidth, java.lang.Integer surfaceHeight)
-
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)
-
-