hi_mpi_venc_get_scene_mode
函数功能
获取场景模式。
约束说明
本接口在编码通道创建之后、编码通道销毁之前调用。
函数原型
hi_s32 hi_mpi_venc_get_scene_mode(hi_venc_chn chn, hi_venc_scene_mode *scene_mode)
参数说明
参数名  | 
输入/输出  | 
说明  | 
|---|---|---|
chn  | 
输入  | 
编码通道号。 Atlas 200/500 A2推理产品,编码通道号的取值范围:[0, 128),JPEGE功能和VENC功能共用通道,且通道总数最多128。  | 
scene_mode  | 
输出  | 
场景模式指针。  | 
返回值说明
- 0:成功
 - 非0:失败,参见VENC视频编码/JPEGE图片编码返回码