vdec_release_frame
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
Function Usage
Destroys allocations 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)
Parameter Description
|
Parameter |
Description |
|---|---|
|
chn |
Int, decoding channel ID.
|
|
frame_info |
Dict, dictionary of decoded image information, which is obtained by calling vdec_get_frame. For details, see hi_video_frame_info. |
Return Value Description
|
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