acl.himpi.venc_get_scene_mode

C Prototype

hi_s32 hi_mpi_venc_get_scene_mode(hi_venc_chn chn, hi_venc_scene_mode *scene_mode)

Python Function

scene_mode, ret = acl.himpi.venc_get_scene_mode(chn)

Function Usage

Obtains the scene mode.

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Input Description

chn: int, encoding channel ID.

Return Value

scene_mode: int, current scene mode. For details, see hi_venc_scene_mode.

ret: int, error code.

Restrictions

This API must be called after an encoding channel is created and before the channel is destroyed.