vdec_release_frame
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
Description
Releases resources after decoding is complete.
Prototype
- C Prototype
1hi_s32 hi_mpi_vdec_release_frame(hi_vdec_chn chn, const hi_video_frame_info *frame_info)
- Python Function
1ret = acl.himpi.vdec_release_frame(chn, frame_info)
Parameters
|
Parameter |
Description |
|---|---|
|
chn |
Int, decoding channel ID. |
|
frame_info |
Dict, dictionary of decoded image information, which is obtained by the vdec_get_frame call. For details, see hi_video_frame_info. |
Return Value
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code.
|
Restrictions
- Use this API in pair with acl.himpi.vdec_get_frame. Free the obtained data in a timely manner; otherwise, the decoding process will be blocked to wait for resources.
- The data to be freed is that obtained by the acl.himpi.vdec_get_frame call without any change.
Parent topic: VDEC/JPEGD APIs