Package com.banuba.sdk.renderer
Class DebugRenderer.CppProxy
java.lang.Object
com.banuba.sdk.renderer.DebugRenderer.CppProxy
- All Implemented Interfaces:
DebugRenderer
- Enclosing interface:
- DebugRenderer
public static final class DebugRenderer.CppProxy extends java.lang.Object implements DebugRenderer
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.banuba.sdk.renderer.DebugRenderer
DebugRenderer.CppProxy
-
Method Summary
Modifier and Type Method Description void
_djinni_private_destroy()
static DebugRenderer
create()
This method may return `null` when debug renderer is unavailablevoid
draw(FrameData frameData)
protected void
finalize()
static FullImageData
morphMesh(FullImageData srcImage, java.util.ArrayList<java.lang.Float> originalVerts, java.util.ArrayList<java.lang.Float> morphedVerts, java.util.ArrayList<java.lang.Integer> indices, java.util.ArrayList<java.lang.Float> mvp)
return rgba image, srcImage can be rgb or rgbavoid
surfaceChanged(int width, int height, float pixelDensityW, float pixelDensityH)
this pixel density is relative to a real one!Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
surfaceChanged
public void surfaceChanged(int width, int height, float pixelDensityW, float pixelDensityH)Description copied from interface:DebugRenderer
this pixel density is relative to a real one!- Specified by:
surfaceChanged
in interfaceDebugRenderer
-
draw
- Specified by:
draw
in interfaceDebugRenderer
-
create
Description copied from interface:DebugRenderer
This method may return `null` when debug renderer is unavailable -
morphMesh
@NonNull public static FullImageData morphMesh(@NonNull FullImageData srcImage, @NonNull java.util.ArrayList<java.lang.Float> originalVerts, @NonNull java.util.ArrayList<java.lang.Float> morphedVerts, @NonNull java.util.ArrayList<java.lang.Integer> indices, @NonNull java.util.ArrayList<java.lang.Float> mvp)Description copied from interface:DebugRenderer
return rgba image, srcImage can be rgb or rgba
-