venc_set_scene_mode
产品支持情况
产品 |
是否支持 |
---|---|
x |
|
x |
|
x |
|
√ |
|
√ |
功能说明
设置场景模式。
函数原型
- C函数原型
1
hi_s32 hi_mpi_venc_set_scene_mode(hi_venc_chn chn, const hi_venc_scene_mode scene_mode);
- python函数
1
ret = acl.himpi.venc_set_scene_mode(chn, scene_mode)
参数说明
参数名 |
说明 |
---|---|
chn |
int,编码通道号。
|
scene_mode |
int,场景模式,具体请参见hi_venc_scene_mode。 |
返回值说明
返回值 |
说明 |
---|---|
ret |
int,错误码。
|
约束说明
- 不同的编码模式场景对图像质量有影响,默认场景模式为“HI_VENC_SCENE_0”。
- 本接口在编码通道创建之后、编码通道销毁之前调用。
父主题: VENC视频/JPEGE图像编码接口