README_zh.md
1# Hi3516dv300介绍<a name="ZH-CN_TOPIC_0000001142448981"></a>
2
3- [简介](#section11660541593)
4- [目录](#section161941989596)
5- [约束](#section119744591305)
6- [编译构建](#section137768191623)
7- [协议说明](#section1312121216216)
8 - [许可说明](#section129654513264)
9
10- [相关仓](#section1371113476307)
11
12## 简介<a name="section11660541593"></a>
13
14本目录为hi3516dv300芯片的底层处理驱动,为“媒体/图形子系统”提供基础的多媒体处理功能。主要功能有:音视频采集、音视频编解码、音视频输出、视频前处理、封装、解封装、文件管理、存储管理、日志系统等。如图1所示。
15
16**图 1** 多媒体子系统架构图<a name="fig4460722185514"></a>
17
18
19
20
21## 目录<a name="section161941989596"></a>
22
23```
24/device/soc/hisilicon/hi3516dv300
25├── sdk_linux
26│ ├── drv
27│ │ ├── interdrv # 外设模块
28│ │ │ ├── common
29│ │ │ │ ├── cipher # 加解密模块
30│ │ │ │ ├── hi_adc # adc总线控制器
31│ │ │ │ ├── hi_ir # 红外控制器
32│ │ │ │ ├── hi_irq # 用户态驱动中断注册管理模块
33│ │ │ │ ├── hi_proc # 调试信息管理模块
34│ │ │ │ └── wtdg # 看门狗
35│ │ │ └── hi3516cv500
36│ │ │ ├── mipi_rx # mipi协议rx方向
37│ │ │ ├── mipi_tx # mipi协议tx方向
38│ │ │ └── sysconfig # 系统管脚配置相关配置
39│ │ ├── mpp
40│ │ │ ├── cbb
41│ │ │ │ ├── based # 日志相关功能
42│ │ │ │ ├── sysd # 系统基础模块,提供内存、模块绑定等功能
43│ │ │ │ └── vo # video output
44│ │ │ └── component
45│ │ │ ├── hdmi # HDMI接口输出
46│ │ │ ├── hifb # frame buffer管理
47│ │ │ └── tde # Two Dimensional Engine
48│ │ └── osal # 驱动适配层,用于屏蔽系统差异,提供统一接口
49│ ├── out
50│ │ ├── ko # Hi3516DV300芯片的内核模块加载脚本
51│ │ └── lib # Hi3516DV300芯片的媒体图形库文件、LICENSE文件
52│ └── usr
53│ └── sensor # sensor驱动(用户态)
54├── sdk_liteos
55│ ├── hdf_config # Hi3516DV300设备hdf驱动配置信息
56│ └── mpp
57│ ├── lib # Hi3516DV300芯片的媒体库文件、LICENSE文件
58│ └── module_init # Hi3516DV300芯片媒体各模块驱动对应的库、LICENSE文件
59└── uboot # uboot二进制
60
61```
62
63## 约束<a name="section119744591305"></a>
64
65当前支持Hi3516DV300芯片。
66
67## 编译构建<a name="section137768191623"></a>
68
69standard linux:
70./build.sh --product-name hispark_taurus_standard
71
72small/mini:
73hb set
74. (当前路径)
75ipcamera_hispark_taurus_linux/ipcamera_hispark_taurus
76hb build -f
77
78## hi3516dv300协议说明<a name="section1312121216216"></a>
79
80- hi3516dv300\\sdk\_linux\\out\\lib里面为上海海思的自研库,遵循上海海思的LICENSE,这个目录下有LICENSE文件,LICENSE文件中可以看到版权信息:
81
82 ```
83 / *End User License Agreement ... Copyright (C) 2021 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved. * /
84 ```
85
86- hi3516dv300\\sdk\_linux\\drv目录下为上海海思自研代码,使用基于GPL许可的Hisilicon \(Shanghai\) 版权声明,在该目录下有License目录,许可信息和版权信息通常可以在文件开头看到:
87
88 ```
89 / *Copyright (c) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED.
90 *
91 * This program is free software; you can redistribute it and/or modify it
92 * under the terms of the GNU General Public License as published by the
93 * Free Software Foundation; either version 2 of the License, or (at your
94 * option) any later version.
95 * ... * /
96 ```
97
98- hi3516dv300\\sdk\_liteos\\mpp\\module\_init\\lib和device\\soc\\hisilicon\\hi3516dv300\\sdk\_liteos\\mpp\\lib里面为上海海思的自研库,遵循上海海思的LICENSE,这两个目录下均有LICENSE文件,LICENSE文件结尾可以看到版权信息:
99
100 ```
101 Copyright (C) 2020 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved.
102 ```
103
104- hi3516dv300\\sdk\_liteos\\mpp\\module\_init\\src目录下为上海海思自研代码,使用基于Apache License Version 2.0许可的Hisilicon \(Shanghai\) 版权声明,在该目录下有Apache License Version 2.0的LICENSE文件,许可信息和版权信息通常可以在文件开头看到:
105
106 ```
107 / *Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. Licensed under the Apache License,* ... * /
108 ```
109
110### 许可说明<a name="section129654513264"></a>
111
112
113third\_party\\uboot\\u-boot-2020.01为U-Boot开源代码,遵循软件版本自带的开源许可声明,具体请参看third\_party\\uboot\\u-boot-2020.01\\Licenses目录下的README。
114
115## 相关仓<a name="section1371113476307"></a>
116
117[vendor_hisilicon](https://gitee.com/openharmony/vendor_hisilicon)
118
119[device_board_hisilicon](https://gitee.com/openharmony/device_board_hisilicon)
120
121