hi_mpi_vi_release_chn_frame

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

Releases a frame of image obtained from a VI channel.

Prototype

hi_s32 hi_mpi_vi_release_chn_frame(hi_vi_pipe vi_pipe, hi_vi_chn vi_chn, const hi_video_frame_info *frame_info)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

Pipe ID.

Value range: [0, 12)

vi_chn

Input

VI channel ID.

Value range: [0, 1)

frame_info

Input

Structure of the VI frame information.

Returns

Restrictions

  • This interface must be used together with the hi_mpi_vi_get_chn_frame interface. The number of times that this interface is invoked must be the same as the number of times that this interface is invoked. Otherwise, an error is reported.
  • You need to call the hi_mpi_vi_get_chn_frame API to obtain frame_info, and then transfer the obtained frame_info to this API. Otherwise, the memory may fail to be released.

See Also

For details about the API call sequence, see Video Data Obtaining.