acl.himpi.vdec_get_frame
C Prototype |
hi_s32 hi_mpi_vdec_get_frame(hi_vdec_chn chn, hi_video_frame_info *frame_info, hi_vdec_supplement_info *supplement, hi_vdec_stream *stream, hi_s32 milli_sec); |
|---|---|
Python Function |
frame_info, supplement, stream, ret = acl.himpi.vdec_get_frame(chn, milli_sec) |
Function Usage |
Fetches the decoded image and input stream of a decoding channel. During JPEGD image decoding, if hardware decoding fails when this API is called, software decoding is triggered within this API. The Atlas 200/300/500 Inference Product does not support this API in the current version. The Atlas Training Series Product does not support this API in the current version. |
Input Description |
chn: int, decoding channel ID.
milli_sec: int, timeout interval (ms).
NOTE:
In the JPEGD image decoding scenario, the timeout interval configured here refers only to the wait time for obtaining the hardware decoding result, excluding the software decoding time. |
Return Value |
ret: int, error code.
stream: dict, pointer to information dictionary of decoded input streams. For details, see hi_vdec_stream. frame_info: dict, pointer to information about decoded images. The decoded data is stored in the device memory. For details, see hi_video_frame_info. supplement: dict, supplementary information about the decoded images. This parameter is reserved. |
Restrictions |
|