hi_mpi_vdec_release_frame
Applicability
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
☓ |
Description
Releases resources after decoding is complete.
Prototype
hi_s32 hi_mpi_vdec_release_frame (hi_vdec_chn chn, const hi_video_frame_info *frame_info)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
chn |
Input |
Decoding channel ID. |
|
frame_info |
Input |
Pointer to the information about the decoded image. You can obtain the information by calling hi_mpi_vdec_get_frame. |
Returns
- 0: success
- Other values: failure. For details, see VDEC/JPEGD Return Codes.
Restrictions
- Use this API in pair with hi_mpi_vdec_get_frame. Destroy the obtained data in a timely manner; otherwise, the decoding process will be blocked to wait for resources.
- The data to destroy must be that obtained by the hi_mpi_vdec_get_frame call without any change.