未验证 提交 3e90daed 编写于 作者: O openharmony_ci 提交者: Gitee

!9261 增加Codec使用指南

Merge pull request !9261 from crescenthe/master
......@@ -45,6 +45,7 @@
- 外设驱动使用
- [Audio](driver-peripherals-audio-des.md)
- [Camera](driver-peripherals-camera-des.md)
- [Codec](driver-peripherals-codec-des.md)
- [Face_auth](driver-peripherals-face_auth-des.md)
- [Fingerprint_auth](driver-peripherals-fingerprint_auth-des.md)
- [LCD](driver-peripherals-lcd-des.md)
......
......@@ -180,18 +180,18 @@ vendor/hihope/rk3568/hdf_config/uhdf/
在device_info.hcs的codec_host中增加codec_omx_service配置,具体配置如下:
```c
codec :: host {
hostName = "codec_host";
priority = 50;
gid = ["codec_host", "uhdf_driver", "vendor_mpp_driver"];
codec_omx_device :: device {
device0 :: deviceNode {
policy = 2; // 自动加载,非延迟加载
priority = 100; // 优先级
moduleName = "libcodec_hdi_omx_server.z.so"; // 驱动的动态库
serviceName = "codec_hdi_omx_service"; // 配置驱动的服务名
deviceMatchAttr = "codec_component_capabilities";// 属性配置
}
hostName = "codec_host";
priority = 50;
gid = ["codec_host", "uhdf_driver", "vendor_mpp_driver"];
codec_omx_device :: device {
device0 :: deviceNode {
policy = 2; // 自动加载,非延迟加载
priority = 100; // 优先级
moduleName = "libcodec_hdi_omx_server.z.so"; // 驱动的动态库
serviceName = "codec_hdi_omx_service"; // 配置驱动的服务名
deviceMatchAttr = "codec_component_capabilities"; // 属性配置
}
}
}
```
......
......@@ -492,6 +492,7 @@
- 外设驱动使用
- [Audio](driver/driver-peripherals-audio-des.md)
- [Camera](driver/driver-peripherals-camera-des.md)
- [Codec](driver/driver-peripherals-codec-des.md)
- [Face_auth](driver/driver-peripherals-face_auth-des.md)
- [Fingerprint_auth](driver/driver-peripherals-fingerprint_auth-des.md)
- [LCD](driver/driver-peripherals-lcd-des.md)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册