-
public interface IRendererHolderHold shared texture that receive camera frame and draw them to registered surface if needs
-
-
Method Summary
Modifier and Type Method Description abstract booleanisRunning()abstract voidrelease()abstract SurfacegetPrimarySurface()Get Surface that receive camera frame. abstract SurfaceTexturegetPrimarySurfaceTexture()Get SurfaceTexture that receive camera frame. abstract voidcheckPrimarySurface()Check whether Primary Surface is valid, if invalid recreate Primary Surface abstract voidupdatePrimarySize(int width, int height)Change size of Primary Surface abstract voidaddSlaveSurface(int id, Object surface, boolean isRecordable)Add slave surface that is a mirror of primary surface abstract voidaddSlaveSurface(int id, Object surface, boolean isRecordable, int maxFps)Add slave surface that is a mirror of primary surface abstract voidremoveSlaveSurface(int id)Remove specific slave surface abstract voidremoveSlaveSurfaceAll()Remove all slave surface abstract voidclearSlaveSurface(int id, int color)Fill specific slave Surface with specific color abstract voidclearSlaveSurfaceAll(int color)Fill all slave Surface with specific color abstract booleanisSlaveSurfaceEnable(int id)Get state of slave surface abstract voidsetSlaveSurfaceEnable(int id, boolean enable)Set state of slave surface abstract voidrotateTo(int angle)abstract voidrotateBy(int angle)abstract voidsetMirrorMode(int mode)Set slave surface's Mirror Mode that flip image horizontally, or flip image vertically. abstract intgetMirrorMode()Get slave surface's Mirror Mode that flip image horizontally, or flip image vertically. abstract voidrequestFrame()Update all slave surface based on master surface immediately -
-
Method Detail
-
isRunning
abstract boolean isRunning()
-
release
abstract void release()
-
getPrimarySurface
abstract Surface getPrimarySurface()
Get Surface that receive camera frame.
-
getPrimarySurfaceTexture
abstract SurfaceTexture getPrimarySurfaceTexture()
Get SurfaceTexture that receive camera frame.
-
checkPrimarySurface
abstract void checkPrimarySurface()
Check whether Primary Surface is valid, if invalid recreate Primary Surface
-
updatePrimarySize
abstract void updatePrimarySize(int width, int height)
Change size of Primary Surface
-
addSlaveSurface
abstract void addSlaveSurface(int id, Object surface, boolean isRecordable)
Add slave surface that is a mirror of primary surface
- Parameters:
id- often use #hashCode.
-
addSlaveSurface
abstract void addSlaveSurface(int id, Object surface, boolean isRecordable, int maxFps)
Add slave surface that is a mirror of primary surface
- Parameters:
id- often use #hashCode.maxFps- no limit if it is less than zero
-
removeSlaveSurface
abstract void removeSlaveSurface(int id)
Remove specific slave surface
-
removeSlaveSurfaceAll
abstract void removeSlaveSurfaceAll()
Remove all slave surface
-
clearSlaveSurface
abstract void clearSlaveSurface(int id, int color)
Fill specific slave Surface with specific color
-
clearSlaveSurfaceAll
abstract void clearSlaveSurfaceAll(int color)
Fill all slave Surface with specific color
-
isSlaveSurfaceEnable
abstract boolean isSlaveSurfaceEnable(int id)
Get state of slave surface
-
setSlaveSurfaceEnable
abstract void setSlaveSurfaceEnable(int id, boolean enable)
Set state of slave surface
-
rotateTo
abstract void rotateTo(int angle)
-
rotateBy
abstract void rotateBy(int angle)
-
setMirrorMode
abstract void setMirrorMode(int mode)
Set slave surface's Mirror Mode that flip image horizontally, or flip image vertically.
- Parameters:
mode- 0:normal, 1:flip horizontally, 2:flip vertically, 3:flip horizontal direction and vertical direction
-
getMirrorMode
abstract int getMirrorMode()
Get slave surface's Mirror Mode that flip image horizontally, or flip image vertically.
-
requestFrame
abstract void requestFrame()
Update all slave surface based on master surface immediately
-
-
-
-