public interface IPUSDK
限定符和类型 | 方法和说明 |
---|---|
void |
closeRender()
关闭视频渲染
|
int |
configOSD(com.smarteye.adapter.BVPU_OSD_CONFIG config)
配置OSD
|
void |
deinit()
库注销
|
IRTSPCam |
getRTSPCam()
RTSP摄像头
|
IStorage |
getStorage()
存储功能API
|
IUVC |
getUVC()
USB摄像头API
|
boolean |
handleMsg(com.smarteye.bean.JNIMessage msg)
处理BVCU_EventCallback的OnNotifyMessage JNIMessage
|
void |
init()
初始化库
|
int |
initOSD(String ttfPath)
初始化OSD
|
int |
inputAudioData(byte[] data,
int size,
long stamp)
输入设备采集的音频数据
|
int |
inputGPSData(com.smarteye.adapter.BVCU_PUCFG_GPSData data)
输入设备采集的GPS数据
|
int |
inputVideoData(byte[] data,
int size,
long stamp,
int width,
int height)
输入设备采集的视频数据
|
void |
openRender(com.smarteye.adapter.BVPU_VideoControl_Render render)
打开视频渲染
|
boolean |
restoreVideoFile(String okFilePath,
String errFilePath)
修复损坏文件,目前仅支持MP4
|
int |
screenshot(ScreenshotCallback cb)
对输入的视频流,或打开的外置摄像头视频流截图
|
void init()
void deinit()
IStorage getStorage()
IUVC getUVC()
IRTSPCam getRTSPCam()
void openRender(com.smarteye.adapter.BVPU_VideoControl_Render render)
render
- 渲染参数void closeRender()
int initOSD(String ttfPath)
ttfPath
- 字体文件路径int configOSD(com.smarteye.adapter.BVPU_OSD_CONFIG config)
config
- OSD参数int screenshot(ScreenshotCallback cb)
cb
- 数据回调int inputVideoData(byte[] data, int size, long stamp, int width, int height)
data
- 视频数据,目前仅支持NV21size
- 数据大小stamp
- 时间戳,单位微妙uswidth
- 图像宽height
- 图像长int inputAudioData(byte[] data, int size, long stamp)
data
- 音频数据,目前仅支持PCM 8000采样率,16bit采样精度size
- 数据大小stamp
- 时间戳,单位微妙usint inputGPSData(com.smarteye.adapter.BVCU_PUCFG_GPSData data)
data
- GPS数据boolean handleMsg(com.smarteye.bean.JNIMessage msg)
msg
- 消息