acl.himpi.venc_send_jpege_frame
C Prototype |
hi_s32 hi_mpi_venc_send_jpege_frame(hi_venc_chn chn, const hi_video_frame_info *frame, const hi_img_stream *jpege_stream, hi_s32 milli_sec) |
|---|---|
Python Function |
ret = acl.himpi.venc_send_jpege_frame(chn, frame, jpege_stream, milli_sec) |
Function Usage |
Sends source images for encoding and configures the output buffer address of the encoding result. 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, encoding channel ID.
frame: dict, original image information dictionary. For details, see hi_video_frame_info. jpege_stream: dict, which specifies the output memory address and length of the encoding result. For details, see hi_img_stream. The start address of the output buffer must be 16-byte aligned. You can call acl.himpi.venc_get_jpege_predicted_size to obtain the buffer size, and then call acl.himpi.dvpp_malloc to allocate the output buffer. milli_sec: int, timeout interval (ms).
|
Return Value |
ret: int, error code.
|
Restrictions |
|