public interface TuSdkEngine
限定符和类型 | 方法和说明 |
---|---|
boolean |
prepareInGlThread()
在GL线程准备引擎 (返回是否准备成功)
|
void |
processFrame(byte[] yuv,
int width,
int height,
long timeNs)
处理帧数据
|
void |
processFrame(int texId,
int width,
int height,
byte[] yuv,
long timeNs)
处理帧数据
|
void |
processFrame(int texId,
int width,
int height,
long timeNs)
处理帧数据
|
void |
release()
释放资源
|
void |
setEngineInputImage(TuSdkEngineInputImage inputImage)
设置图像输入引擎
|
void |
setEngineOrientation(TuSdkEngineOrientation orientation)
处理引擎方向接口
|
void |
setEngineOutputImage(TuSdkEngineOutputImage outputImage)
图像输出接口
|
void |
setEngineProcessor(TuSdkEngineProcessor processor)
引擎处理器接口
|
void |
setInputPreCropRect(android.graphics.RectF preCropRect)
对输入图像的前置裁剪区域(百分比) 修正非计算显示区域,如编解码多余的边界处理
|
void |
setInputTextureCoordinateBuilder(org.lasque.tusdk.core.seles.extend.SelesVerticeCoordinateCorpBuilder textureCoordinateBuilder)
输入材质裁切坐标计算接口
|
void release()
void setEngineOrientation(TuSdkEngineOrientation orientation)
void setEngineInputImage(TuSdkEngineInputImage inputImage)
void setEngineProcessor(TuSdkEngineProcessor processor)
void setEngineOutputImage(TuSdkEngineOutputImage outputImage)
void setInputTextureCoordinateBuilder(org.lasque.tusdk.core.seles.extend.SelesVerticeCoordinateCorpBuilder textureCoordinateBuilder)
void setInputPreCropRect(android.graphics.RectF preCropRect)
boolean prepareInGlThread()
void processFrame(byte[] yuv, int width, int height, long timeNs)
width
- 图像宽度height
- 图像高度yuv
- 图像YUV数据timeNs
- 输入时间戳(纳秒)void processFrame(int texId, int width, int height, long timeNs)
texId
- texture IDwidth
- 图像宽度height
- 图像高度timeNs
- 输入时间戳(纳秒)void processFrame(int texId, int width, int height, byte[] yuv, long timeNs)
texId
- texture ID (输入YUV时置忽略)width
- 图像宽度height
- 图像高度yuv
- 图像YUV数据 (输入texture时忽略)timeNs
- 输入时间戳(纳秒)