Queries the status of an encoding channel.
The Ascend 310 AI Processor does not support this API in the current version.
The Ascend 910 AI Processor does not support this API in the current version.
Before any attempt to reset an encoding channel, use this API call to ensure that the stream is completely encoded.
Before any attempt to reset an encoding channel, use this API call to ensure that the stream is completely encoded.
For stream fetching in packet mode, the current frame could be incomplete. For stream fetching in frame mode, cur_packs indicates the number of packets of a complete frame (the value 0 indicates that no frame is available). If you want to fetch the streams by frames, query the number of packets for a complete frame by calling the query function after the select function is called successfully. In this case, cur_packs represents the number of packets contained in a current complete frame.
hi_s32 hi_mpi_venc_query_status(hi_venc_chn chn, hi_venc_chn_status *status)
Parameter |
Input/Output |
Description |
|---|---|---|
chn |
Input |
Encoding channel ID. The value range of the encoding channel ID is [0, 256). The maximum number of channels is 256. |
status |
Output |
Pointer to the encoding channel status. |