public class TuSdkEngineInputSurfaceImpl extends java.lang.Object implements TuSdkEngineInputImage
构造器和说明 |
---|
TuSdkEngineInputSurfaceImpl()
Surface OES input
|
限定符和类型 | 方法和说明 |
---|---|
void |
bindEngineProcessor(TuSdkEngineProcessor processor)
引擎处理器接口
|
protected void |
finalize() |
org.lasque.tusdk.core.seles.sources.SelesOutput |
getOutput()
获取输出对象
|
void |
processFrame(int texId,
int width,
int height,
byte[] yuv,
long timeNs)
处理帧数据
|
void |
release()
释放资源
|
void |
setEngineRotation(TuSdkEngineOrientation rotation)
设置方向引擎
|
void |
setPreCropRect(android.graphics.RectF preCropRect)
对输入图像的前置裁剪区域(百分比) 修正非计算显示区域,如编解码多余的边界处理
|
void |
setTextureCoordinateBuilder(org.lasque.tusdk.core.seles.extend.SelesVerticeCoordinateCorpBuilder textureCoordinateBuilder)
材质裁切坐标计算接口
|
public void setEngineRotation(TuSdkEngineOrientation rotation)
setEngineRotation
在接口中 TuSdkEngineInputImage
public void bindEngineProcessor(TuSdkEngineProcessor processor)
bindEngineProcessor
在接口中 TuSdkEngineInputImage
public void setTextureCoordinateBuilder(org.lasque.tusdk.core.seles.extend.SelesVerticeCoordinateCorpBuilder textureCoordinateBuilder)
public void setPreCropRect(android.graphics.RectF preCropRect)
setPreCropRect
在接口中 TuSdkEngineInputImage
public org.lasque.tusdk.core.seles.sources.SelesOutput getOutput()
getOutput
在接口中 TuSdkEngineInputImage
public void release()
TuSdkEngineInputImage
release
在接口中 TuSdkEngineInputImage
protected void finalize() throws java.lang.Throwable
finalize
在类中 java.lang.Object
java.lang.Throwable
public void processFrame(int texId, int width, int height, byte[] yuv, long timeNs)
processFrame
在接口中 TuSdkEngineInputImage
texId
- texture ID (输入YUV时置忽略)width
- 图像宽度height
- 图像高度yuv
- 图像YUV数据 (输入texture时忽略)timeNs
- 输入时间戳(纳秒)