DeviceMemory(int size)
encode(inputImage, frameId)
函数功能
VideoEncoder的视频编码接口。
输入参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| inputImage | Image类 | 输入编码前的Image类。 |
| frameId | int | 输入视频帧索引。 |
返回参数说明
无。
抛异常接口
编码失败,抛出runtime异常。
父主题: VideoEncoder类
类说明
从Device侧申请内存,获取内存指针地址的值。
父主题: DeviceMemory类
DeviceMemory(int size)
函数功能
从Device侧申请内存。
输入参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| size | int | 申请内存的大小,单位Byte。 |
返回参数说明
DeviceMemory对象。
父主题: DeviceMemory类
get_data()
函数功能
获取对象中内存指针的值。
返回参数说明
| 返回值 | 类型 | 说明 |
|---|---|---|
| Output | int | 返回对象内存指针中的值。 |
父主题: DeviceMemory类
模块说明
dvpp模块预计于2024年退出,建议使用ImageProcessor类。
父主题: dvpp模块
read_image(inputPath, deviceId, decodeFormat)
函数功能
解码读取图片。
输入输出格式及对齐方式请参见decode(inputPath, decodeFormat)。
输入参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| inputPath | string | 图片路径。 |
| deviceId | int | Device设备的ID号。 |
| decodeFormat | image_format枚举类 | 输入图片的解码格式。 |
返回参数说明
Image对象。
抛异常接口
创建ImageProcessor失败、图片解码失败,抛出runtime异常。
父主题: dvpp模块
在线提单