vdec_release_frame
产品支持情况
|
产品 |
是否支持 |
|---|---|
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
功能说明
解码之后,释放资源。
函数原型
- C函数原型
1hi_s32 hi_mpi_vdec_release_frame(hi_vdec_chn chn, const hi_video_frame_info *frame_info);
- python函数
1ret = acl.himpi.vdec_release_frame(chn, frame_info)
参数说明
|
参数名 |
说明 |
|---|---|
|
chn |
int,解码通道号。
|
|
frame_info |
dict,解码后的图像信息字典,调用vdec_get_frame接口获取,具体请参见hi_video_frame_info。 |
返回值说明
|
返回值 |
说明 |
|---|---|
|
ret |
int,错误码。
|
约束说明
- 此接口需与acl.himpi.vdec_get_frame配对使用,获取的数据应当在使用完之后立即释放,如果不及时释放,会导致解码过程阻塞等待资源。
- 释放的数据必须是调用acl.himpi.vdec_get_frame接口从该通道获取的数据,不得对数据信息字典进行任何修改。
父主题: VDEC视频解码/JPEGD图像解码接口