aclvencSetFrameConfig系列接口
aclvencGetChannelDescParam
函数功能
获取视频编码处理通道的描述信息。同步接口。
函数原型
aclError aclvencGetChannelDescParam(const aclvencChannelDesc *channelDesc, aclvencChannelDescParamType paramType, size_t length, size_t *paramRetSize, void *param)
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| channelDesc | 输入 | 视频编码处理通道描述信息的指针。 需提前调用aclvencCreateChannelDesc接口创建aclvencChannelDesc类型的数据,调用aclvencSetChannelDescParam接口设置视频编码处理通道描述信息的属性值。 |
| paramType | 输入 | 属性参数的类型。 |
| length | 输入 | 属性参数值的字节数。 - 属性参数的类型为*_UINT64时,此处配置为8; - 属性参数的类型为*_UINT32时,此处配置为4; - 属性参数的类型为*_PTR时,若操作系统是32位,则此处配置为4;若操作系统是64位,则配置为8。 |
| paramRetSize | 输出 | 实际返回的属性参数值字节数的指针。 |
| param | 输出 | 属性参数值的指针。 |
返回值说明
返回0表示成功,返回其它值表示失败。
父主题: aclvencChannelDesc
aclvencDestroyChannelDesc
函数功能
销毁通过aclvencCreateChannelDesc接口创建的aclvencChannelDesc类型的数据。同步接口。
函数原型
aclError aclvencDestroyChannelDesc(aclvencChannelDesc *channelDesc)
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| channelDesc | 输入 | 待销毁的aclvencChannelDesc类型的指针。 |
返回值说明
返回0表示成功,返回非0表示失败。
父主题: aclvencChannelDesc
aclvencCreateFrameConfig
函数功能
创建aclvencFrameConfig类型的数据,表示VENC编码时的单帧编码配置参数。同步接口。
如需销毁aclvencFrameConfig类型的数据,请参见aclvencDestroyFrameConfig。
函数原型
aclvencFrameConfig *aclvencCreateFrameConfig()
参数说明
无
返回值说明
- 返回aclvencFrameConfig类型的指针,表示成功。
- 返回nullptr,表示失败。
父主题: aclvencFrameConfig
aclvencSetFrameConfig系列接口
函数功能
设置单帧编码配置参数。同步接口。
函数原型
aclError aclvencSetFrameConfigForceIFrame(aclvencFrameConfig *config, uint8_t forceIFrame);
aclError aclvencSetFrameConfigEos(aclvencFrameConfig *config, uint8_t eos)
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| config | 输出 | 单帧编码配置数据的指针。 需提前调用aclvencCreateFrameConfig接口创建aclvencFrameConfig类型的数据。 |
| forceIFrame | 输入 | 是否强制重新开始I帧间隔: - 0:不强制 - 1:强制重新开始I帧 |
| eos | 输入 | 是否为结束帧: - 0:不是 - 1:是结束帧 |
返回值说明
返回0表示成功,返回非0表示失败。
父主题: aclvencFrameConfig
aclvencGetFrameConfig系列接口
函数功能
获取单帧编码配置参数。同步接口。
函数原型
uint8_t aclvencGetFrameConfigForceIFrame(const aclvencFrameConfig *config);
uint8_t aclvencGetFrameConfigEos(const aclvencFrameConfig *config)
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| config | 输入 | 单帧编码配置数据的指针。 需提前调用aclvencCreateFrameConfig接口创建aclvencFrameConfig类型的数据,调用aclvencSetFrameConfig系列接口设置单帧编码配置参数。 |
返回值说明
| 参数名 | 说明 |
|---|---|
| forceIFrame | 是否强制重新开始I帧间隔: - 0:不强制 - 1:强制重新开始I帧 |
| eos | 是否为结束帧: - 0:不是 - 1:是结束帧 |
父主题: aclvencFrameConfig
aclvencDestroyFrameConfig
函数功能
销毁通过aclvencCreateFrameConfig接口创建的aclvencFrameConfig类型的数据。同步接口。
函数原型
aclError aclvencDestroyFrameConfig(aclvencFrameConfig *config)
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| config | 输入 | 待销毁的aclvencFrameConfig类型的指针。 |
返回值说明
返回0表示成功,返回非0表示失败。
父主题: aclvencFrameConfig
acldvppCreateLutMap
函数功能
创建acldvppLutMap类型的数据,表示色彩重映射表。在acldvppLutMap类型中,色彩重映射表的维度数量默认为3。同步接口。
如需销毁acldvppLutMap类型的数据,请参见acldvppDestroyLutMap。
函数原型
acldvppLutMap *acldvppCreateLutMap()
参数说明
无
返回值说明
- 返回acldvppLutMap类型的指针,表示成功。
- 返回nullptr,表示失败。
父主题: acldvppLutMap
在线提单