├── Makefile.param ├── component └── isp │ ├── 3a │ ├── Makefile │ ├── include │ │ ├── hi_ae_comm.h │ │ ├── hi_af_comm.h │ │ ├── hi_awb_comm.h │ │ ├── mpi_ae.h │ │ ├── mpi_af.h │ │ └── mpi_awb.h │ ├── sample_ae │ │ ├── Makefile │ │ ├── sample_ae_adp.c │ │ ├── sample_ae_adp.h │ │ ├── sample_ae_ext_config.h │ │ ├── sample_ae_mpi.c │ │ └── sample_ae_mpi.h │ └── sample_awb │ │ ├── Makefile │ │ ├── sample_awb_adp.c │ │ ├── sample_awb_adp.h │ │ ├── sample_awb_ext_config.h │ │ └── sample_awb_mpi.c │ ├── Makefile │ ├── defog │ └── isp_dehaze.h │ ├── firmware │ ├── Makefile │ ├── drv │ │ ├── .tmp_versions │ │ │ └── hi3518e_isp.mod │ │ ├── Makefile │ │ ├── Module.symvers │ │ ├── acm_ext.h │ │ ├── dev_ext.h │ │ ├── isp.c │ │ ├── isp.h │ │ ├── isp_acm_lut.c │ │ ├── isp_ext.h │ │ ├── isp_st.c │ │ ├── mkp_acm.c │ │ ├── mkp_ioctl.h │ │ ├── mkp_isp.h │ │ ├── mkp_sys.h │ │ ├── mkp_vi.h │ │ ├── mm_ext.h │ │ ├── mod_ext.h │ │ ├── piris_ext.h │ │ ├── proc_ext.h │ │ └── sys_ext.h │ ├── src │ │ ├── Makefile │ │ ├── algorithms │ │ │ ├── isp_acm.c │ │ │ ├── isp_ae.c │ │ │ ├── isp_af.c │ │ │ ├── isp_alg.h │ │ │ ├── isp_awb.c │ │ │ ├── isp_black_offset.c │ │ │ ├── isp_cac.c │ │ │ ├── isp_common.c │ │ │ ├── isp_compander.c │ │ │ ├── isp_csc.c │ │ │ ├── isp_defect_pixel.c │ │ │ ├── isp_demosaic.c │ │ │ ├── isp_drc.c │ │ │ ├── isp_fpn.c │ │ │ ├── isp_frame_switch_wdr.c │ │ │ ├── isp_gamma.c │ │ │ ├── isp_green_equalization.c │ │ │ ├── isp_lsc.c │ │ │ ├── isp_noise_reduction.c │ │ │ ├── isp_pregamma.c │ │ │ ├── isp_rgbir.c │ │ │ ├── isp_sharpen.c │ │ │ ├── isp_uvnr.c │ │ │ └── lsc_calib_info.h │ │ ├── arch │ │ │ └── hi3518e │ │ │ │ ├── isp_dcfinfo.c │ │ │ │ ├── isp_dcfinfo.h │ │ │ │ ├── isp_regcfg.c │ │ │ │ ├── isp_regcfg.h │ │ │ │ ├── isp_sensor.c │ │ │ │ ├── isp_sensor.h │ │ │ │ ├── isp_statistics.c │ │ │ │ └── isp_statistics.h │ │ └── main │ │ │ ├── isp_debug.c │ │ │ ├── isp_debug.h │ │ │ ├── isp_defaults.c │ │ │ ├── isp_defaults.h │ │ │ ├── isp_main.c │ │ │ ├── isp_main.h │ │ │ ├── isp_math_utils.c │ │ │ ├── isp_math_utils.h │ │ │ ├── isp_proc.c │ │ │ ├── isp_proc.h │ │ │ ├── mpi_isp.c │ │ │ └── mpi_isp_entry.c │ └── vreg │ │ ├── arch │ │ └── hi3518e │ │ │ ├── isp_acm_config.h │ │ │ ├── isp_axi_config.h │ │ │ ├── isp_config.h │ │ │ ├── isp_config_ex.h │ │ │ ├── isp_ext_config.h │ │ │ ├── isp_gamma_fe0_mem_config.h │ │ │ ├── isp_gamma_fe1_mem_config.h │ │ │ ├── isp_gamma_rgb_mem_config.h │ │ │ ├── isp_histogram_mem_config.h │ │ │ ├── isp_metering_mem_config.h │ │ │ ├── isp_shading_mem_config.h │ │ │ └── isp_sharpen_mem_config.h │ │ ├── hi_drv_vreg.c │ │ ├── hi_drv_vreg.h │ │ ├── hi_vreg.c │ │ └── mm_ext.h │ ├── include │ ├── hi_comm_3a.h │ ├── hi_comm_isp.h │ ├── hi_comm_sns.h │ ├── hi_isp_debug.h │ ├── hi_sns_ctrl.h │ ├── hi_vreg.h │ └── mpi_isp.h │ ├── iniparser │ ├── Makefile │ ├── dictionary.c │ ├── dictionary.h │ ├── iniparser.c │ ├── iniparser.h │ ├── strlib.c │ └── strlib.h │ └── sensor │ ├── Makefile │ ├── aptina_9m034 │ ├── Makefile │ ├── m034_cmos.c │ ├── m034_sensor_config.h │ └── m034_sensor_ctl.c │ ├── aptina_ar0230 │ ├── Makefile │ ├── ar0230_cfg.ini │ ├── ar0230_cmos.c │ └── ar0230_sensor_ctl.c │ ├── ar0130 │ ├── Makefile │ ├── ar0130_cmos.c │ └── ar0130_sensor_ctl.c │ ├── hi_cmoscfg │ ├── Makefile │ └── hi_cmos_cfg.c │ ├── omnivision_ov2718 │ ├── Makefile │ ├── ov2718_cmos.c │ └── ov2718_sensor_ctl.c │ ├── omnivision_ov9712 │ ├── Makefile │ ├── build.sh │ ├── ov9712_cmos.c │ └── ov9712_sensor_ctl.c │ ├── omnivision_ov9732 │ ├── Makefile │ ├── ov9732_cmos.c │ └── ov9732_sensor_ctl.c │ ├── omnivision_ov9750 │ ├── Makefile │ ├── ov9750_cmos.c │ └── ov9750_sensor_ctl.c │ ├── omnivision_ov9752 │ ├── Makefile │ ├── ov9752_cmos.c │ └── ov9752_sensor_ctl.c │ ├── panasonic_mn34222 │ ├── Makefile │ ├── mn34222_cmos.c │ └── mn34222_sensor_ctl.c │ ├── readme_cn.txt │ ├── readme_en.txt │ └── sony_imx222 │ ├── Makefile │ ├── imx222_cmos.c │ └── imx222_sensor_ctl.c ├── extdrv ├── Makefile ├── adv7179 │ ├── Makefile │ ├── README.txt │ ├── adv7179.c │ ├── adv7179.h │ ├── config.h │ ├── gpio_i2c.h │ └── video_def.h ├── piris │ ├── Makefile │ ├── piris.c │ ├── piris.h │ ├── piris_ext.h │ ├── piris_test.c │ ├── strfunc.c │ └── strfunc.h ├── pwm │ ├── Makefile │ ├── pwm.c │ ├── pwm.h │ ├── pwm_test.c │ ├── pwm_write.c │ ├── strfunc.c │ └── strfunc.h ├── sample_ist │ ├── Makefile │ ├── isp_ext.h │ ├── ist_test.c │ ├── sample_ist.c │ ├── sample_ist.h │ ├── strfunc.c │ └── strfunc.h ├── sensor_i2c │ ├── Makefile │ ├── isp_ext.h │ └── sensor_i2c.c ├── sensor_spi │ ├── Makefile │ ├── isp_ext.h │ ├── sensor_spi.c │ └── sensor_spi.h ├── ssp-ili9341v-6bit │ ├── Makefile │ ├── hi_ssp.h │ ├── ssp_ili9341v_6bit.c │ ├── strfunc.c │ └── strfunc.h ├── ssp-ili9342h-6bit │ ├── Makefile │ ├── hi_ssp.h │ ├── ssp_ili9342h_6bit.c │ ├── strfunc.c │ └── strfunc.h ├── ssp-ota5182 │ ├── Makefile │ ├── hi_ssp.h │ ├── ssp_ota5182.c │ ├── strfunc.c │ └── strfunc.h └── tlv320aic31 │ ├── Makefile │ ├── tlv320aic31.c │ ├── tlv320aic31.h │ └── tlv320aic31_def.h ├── include ├── acodec.h ├── dictionary.h ├── hi_ae_comm.h ├── hi_af_comm.h ├── hi_awb_comm.h ├── hi_comm_3a.h ├── hi_comm_adec.h ├── hi_comm_aenc.h ├── hi_comm_ai.h ├── hi_comm_aio.h ├── hi_comm_ao.h ├── hi_comm_fisheye.h ├── hi_comm_isp.h ├── hi_comm_ive.h ├── hi_comm_pciv.h ├── hi_comm_rc.h ├── hi_comm_region.h ├── hi_comm_sns.h ├── hi_comm_sys.h ├── hi_comm_vb.h ├── hi_comm_vda.h ├── hi_comm_vdec.h ├── hi_comm_venc.h ├── hi_comm_vgs.h ├── hi_comm_vi.h ├── hi_comm_video.h ├── hi_comm_vo.h ├── hi_comm_vpss.h ├── hi_common.h ├── hi_debug.h ├── hi_defines.h ├── hi_errno.h ├── hi_i2c.h ├── hi_io.h ├── hi_isp_debug.h ├── hi_ive.h ├── hi_math.h ├── hi_md.h ├── hi_mipi.h ├── hi_sns_ctrl.h ├── hi_spi.h ├── hi_tde_api.h ├── hi_tde_errcode.h ├── hi_tde_type.h ├── hi_type.h ├── hi_vreg.h ├── hifb.h ├── himedia.h ├── iniparser.h ├── isp_dehaze.h ├── ivs_md.h ├── list.h ├── mpi_adec.h ├── mpi_ae.h ├── mpi_aenc.h ├── mpi_af.h ├── mpi_ai.h ├── mpi_ao.h ├── mpi_awb.h ├── mpi_fisheye.h ├── mpi_isp.h ├── mpi_ive.h ├── mpi_pciv.h ├── mpi_region.h ├── mpi_sys.h ├── mpi_vb.h ├── mpi_vda.h ├── mpi_vdec.h ├── mpi_venc.h ├── mpi_vgs.h ├── mpi_vi.h ├── mpi_vo.h ├── mpi_vpss.h ├── rtsp_cmd.h ├── rtspserver.h └── strlib.h ├── ko ├── acodec.ko ├── clkcfg_hi3518e.sh ├── demo_config.sh ├── extdrv │ ├── adv_7179.ko │ ├── piris.ko │ ├── pwm.ko │ ├── sample_ist.ko │ ├── sensor_i2c.ko │ ├── sensor_spi.ko │ ├── ssp_ili9341v_6bit.ko │ ├── ssp_ili9342h_6bit.ko │ ├── ssp_ota5182.ko │ └── tlv_320aic31.ko ├── hi3518e_adec.ko ├── hi3518e_aenc.ko ├── hi3518e_ai.ko ├── hi3518e_aio.ko ├── hi3518e_ao.ko ├── hi3518e_base.ko ├── hi3518e_chnl.ko ├── hi3518e_h264e.ko ├── hi3518e_isp.ko ├── hi3518e_ive.ko ├── hi3518e_jpege.ko ├── hi3518e_rc.ko ├── hi3518e_region.ko ├── hi3518e_sys.ko ├── hi3518e_tde.ko ├── hi3518e_venc.ko ├── hi3518e_vgs.ko ├── hi3518e_viu.ko ├── hi3518e_vou.ko ├── hi3518e_vpss.ko ├── hi_cipher.ko ├── hi_media.ko ├── hi_mipi.ko ├── hi_rtc.ko ├── hifb.ko ├── hiuser.ko ├── hn_config.sh ├── load3518e ├── load3518ev201 ├── lowpower.sh ├── mmz.ko ├── pinmux_hi3518e.sh └── sysctl_hi3518e.sh ├── lib ├── libVoiceEngine.a ├── libVoiceEngine.so ├── lib_cmoscfg.a ├── lib_cmoscfg.so ├── lib_hiae.a ├── lib_hiae.so ├── lib_hiaf.a ├── lib_hiaf.so ├── lib_hiawb.a ├── lib_hiawb.so ├── lib_hidefog.a ├── lib_hidefog.so ├── lib_iniparser.a ├── lib_iniparser.so ├── libdnvqe.a ├── libdnvqe.so ├── libhive_AEC.so ├── libhive_AGC.so ├── libhive_ANR.so ├── libhive_AVC.so ├── libhive_EQ.so ├── libhive_GAIN.so ├── libhive_HDR.so ├── libhive_HPF.so ├── libhive_MBC.so ├── libhive_PEQ.so ├── libhive_RES.so ├── libhive_RNR.so ├── libhive_common.so ├── libisp.a ├── libisp.so ├── libive.a ├── libive.so ├── libmd.a ├── libmd.so ├── libmpi.a ├── libmpi.so ├── libslice_trans.so ├── libsns_9m034.a ├── libsns_9m034.so ├── libsns_ar0130.a ├── libsns_ar0130.so ├── libsns_ar0230.a ├── libsns_ar0230.so ├── libsns_imx222.a ├── libsns_imx222.so ├── libsns_mn34222.a ├── libsns_mn34222.so ├── libsns_ov2718.a ├── libsns_ov2718.so ├── libsns_ov9712.a ├── libsns_ov9712.so ├── libsns_ov9732.a ├── libsns_ov9732.so ├── libsns_ov9750.a ├── libsns_ov9750.so ├── libsns_ov9752.a ├── libsns_ov9752.so ├── libtde.a ├── libtde.so ├── libupvqe.a └── libupvqe.so ├── sample ├── Makefile ├── Makefile.param ├── common │ ├── loadbmp.c │ ├── loadbmp.h │ ├── loadbmp.o │ ├── sample_comm.h │ ├── sample_comm_audio.c │ ├── sample_comm_audio.o │ ├── sample_comm_isp.c │ ├── sample_comm_isp.o │ ├── sample_comm_ive.c │ ├── sample_comm_ive.h │ ├── sample_comm_ive.o │ ├── sample_comm_sys.c │ ├── sample_comm_sys.o │ ├── sample_comm_venc.c │ ├── sample_comm_venc.o │ ├── sample_comm_vi.c │ ├── sample_comm_vi.o │ ├── sample_comm_vo.c │ ├── sample_comm_vo.o │ ├── sample_comm_vpss.c │ └── sample_comm_vpss.o ├── maketest │ ├── Makefile │ ├── test1.c │ └── test2.c ├── readme └── venc │ ├── Makefile │ ├── main │ ├── main.c │ ├── main.o │ ├── ringfifo.c │ ├── rtputils.c │ ├── rtsp_cmd.c │ ├── rtsp_cmd.o │ ├── rtspserver.c │ ├── rtspserver.o │ ├── rtsputils.c │ ├── sample_venc.c │ └── sample_venc.o └── tools ├── Makefile ├── aenc_dump.c ├── ai_dump.c ├── ao_dump.c ├── isp_debug.c ├── rc_attr.c ├── readme.txt ├── vi_bayerdump.c ├── vi_dump.c ├── vo_video_csc_config.c ├── vou_chn_dump.c ├── vou_screen_dump.c ├── vpss_attr.c ├── vpss_chn_dump.c └── vpss_src_dump.c /component/isp/3a/Makefile: -------------------------------------------------------------------------------- 1 | 2 | .PHONY:clean all rel 3 | all: 4 | @echo -e "\e[0;32;1m--Compiling 'sensor'... Configs as follow:\e[0;36;1m" 5 | @echo ---- CROSS=$(CROSS) 6 | @echo ---- HIARCH=$(HIARCH), HICHIP=$(HICHIP), CVER=$(CVER), HIDBG=$(HIDBG) 7 | @echo ---- SDK_PATH=$(SDK_PATH) , PARAM_FILE=$(PARAM_FILE) 8 | @echo ---- LINUX_ROOT=$(LINUX_ROOT) 9 | @echo -e "\e[0m" 10 | @for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; \ 11 | do cd `dirname $$x`; if [ $$? ]; then make || exit 1; cd ../; fi; done 12 | 13 | clean: 14 | @for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; \ 15 | do cd `dirname $$x`; if [ $$? ]; then make clean; cd ../; fi; done 16 | 17 | -------------------------------------------------------------------------------- /component/isp/3a/include/hi_af_comm.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : hi_af_comm.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2012/12/20 10 | Description : 11 | History : 12 | 1.Date : 2012/12/20 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __HI_AF_COMM_H__ 18 | #define __HI_AF_COMM_H__ 19 | 20 | #include "hi_type.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | #define HI_AF_LIB_NAME "hisi_af_lib" 29 | 30 | #ifdef __cplusplus 31 | #if __cplusplus 32 | } 33 | #endif 34 | #endif /* End of #ifdef __cplusplus */ 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /component/isp/3a/include/mpi_ae.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : mpi_ae.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2014/04/01 10 | Description : 11 | History : 12 | 1.Date : 2014/04/01 13 | Author : h00191408 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __MPI_AE_H__ 18 | #define __MPI_AE_H__ 19 | 20 | #include "hi_comm_isp.h" 21 | #include "hi_comm_3a.h" 22 | #include "hi_ae_comm.h" 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C"{ 27 | #endif 28 | #endif /* End of #ifdef __cplusplus */ 29 | 30 | 31 | /* The interface of ae lib register to isp. */ 32 | HI_S32 HI_MPI_AE_Register(ISP_DEV IspDev, ALG_LIB_S *pstAeLib); 33 | HI_S32 HI_MPI_AE_UnRegister(ISP_DEV IspDev, ALG_LIB_S *pstAeLib); 34 | 35 | /* The callback function of sensor register to ae lib. */ 36 | HI_S32 HI_MPI_AE_SensorRegCallBack(ISP_DEV IspDev, ALG_LIB_S *pstAeLib, SENSOR_ID SensorId, 37 | AE_SENSOR_REGISTER_S *pstRegister); 38 | HI_S32 HI_MPI_AE_SensorUnRegCallBack(ISP_DEV IspDev, ALG_LIB_S *pstAeLib, SENSOR_ID SensorId); 39 | 40 | HI_S32 HI_MPI_ISP_SetExposureAttr(ISP_DEV IspDev, const ISP_EXPOSURE_ATTR_S *pstExpAttr); 41 | HI_S32 HI_MPI_ISP_GetExposureAttr(ISP_DEV IspDev, ISP_EXPOSURE_ATTR_S *pstExpAttr); 42 | 43 | HI_S32 HI_MPI_ISP_SetAERouteAttr(ISP_DEV IspDev, const ISP_AE_ROUTE_S *pstAERouteAttr); 44 | HI_S32 HI_MPI_ISP_GetAERouteAttr(ISP_DEV IspDev, ISP_AE_ROUTE_S *pstAERouteAttr); 45 | 46 | HI_S32 HI_MPI_ISP_QueryExposureInfo(ISP_DEV IspDev, ISP_EXP_INFO_S *pstExpInfo); 47 | 48 | HI_S32 HI_MPI_ISP_SetIrisAttr(ISP_DEV IspDev, const ISP_IRIS_ATTR_S *pstIrisAttr); 49 | HI_S32 HI_MPI_ISP_GetIrisAttr(ISP_DEV IspDev, ISP_IRIS_ATTR_S *pstIrisAttr); 50 | 51 | HI_S32 HI_MPI_ISP_SetDcirisAttr(ISP_DEV IspDev, const ISP_DCIRIS_ATTR_S *pstDcirisAttr); 52 | HI_S32 HI_MPI_ISP_GetDcirisAttr(ISP_DEV IspDev, ISP_DCIRIS_ATTR_S *pstDcirisAttr); 53 | 54 | HI_S32 HI_MPI_ISP_SetPirisAttr(ISP_DEV IspDev, const ISP_PIRIS_ATTR_S *pstPirisAttr); 55 | HI_S32 HI_MPI_ISP_GetPirisAttr(ISP_DEV IspDev, ISP_PIRIS_ATTR_S *pstPirisAttr); 56 | 57 | HI_S32 HI_MPI_ISP_SetAERouteAttrEx(ISP_DEV IspDev, const ISP_AE_ROUTE_EX_S *pstAERouteAttrEx); 58 | HI_S32 HI_MPI_ISP_GetAERouteAttrEx(ISP_DEV IspDev, ISP_AE_ROUTE_EX_S *pstAERouteAttrEx); 59 | 60 | 61 | 62 | 63 | #ifdef __cplusplus 64 | #if __cplusplus 65 | } 66 | #endif 67 | #endif /* End of #ifdef __cplusplus */ 68 | 69 | #endif 70 | 71 | 72 | -------------------------------------------------------------------------------- /component/isp/3a/include/mpi_af.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : mpi_af.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2012/12/19 10 | Description : 11 | History : 12 | 1.Date : 2012/12/19 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __MPI_AF_H__ 18 | #define __MPI_AF_H__ 19 | 20 | #include "hi_comm_isp.h" 21 | #include "hi_comm_3a.h" 22 | #include "hi_af_comm.h" 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C"{ 27 | #endif 28 | #endif /* End of #ifdef __cplusplus */ 29 | 30 | /* The interface of af lib register to isp. */ 31 | HI_S32 HI_MPI_AF_Register(ISP_DEV IspDev, ALG_LIB_S *pstAfLib); 32 | HI_S32 HI_MPI_AF_UnRegister(ISP_DEV IspDev, ALG_LIB_S *pstAfLib); 33 | 34 | #if 0 35 | /* The callback function of sensor register to af lib. */ 36 | HI_S32 hi_af_sensor_register_cb(ALG_LIB_S *pstAfLib, SENSOR_ID SensorId, 37 | CMOS_ISP_AF_DEFAULT_S *pstSnsDft, SENSOR_AF_EXP_FUNC_S *pstSnsExp); 38 | #endif 39 | 40 | /* The new awb lib is compatible with the old mpi interface. */ 41 | HI_S32 HI_MPI_ISP_SetFocusType(ISP_DEV IspDev, ISP_OP_TYPE_E enFocusType); //not support yet 42 | HI_S32 HI_MPI_ISP_GetFocusType(ISP_DEV IspDev, ISP_OP_TYPE_E *penFocusType); //not support yet 43 | 44 | HI_S32 HI_MPI_ISP_SetAFAttr(ISP_DEV IspDev, const ISP_AF_ATTR_S *pstAFAttr); //not support yet 45 | HI_S32 HI_MPI_ISP_GetAFAttr(ISP_DEV IspDev, ISP_AF_ATTR_S *pstAFAttr); //not support yet 46 | 47 | HI_S32 HI_MPI_ISP_SetMFAttr(ISP_DEV IspDev, const ISP_MF_ATTR_S *pstMFAttr); //not support yet 48 | HI_S32 HI_MPI_ISP_GetMFAttr(ISP_DEV IspDev, ISP_MF_ATTR_S *pstMFAttr); //not support yet 49 | 50 | HI_S32 HI_MPI_ISP_ManualFocusMove(ISP_DEV IspDev, HI_S32 s32MoveSteps); //not support yet 51 | 52 | 53 | #ifdef __cplusplus 54 | #if __cplusplus 55 | } 56 | #endif 57 | #endif /* End of #ifdef __cplusplus */ 58 | 59 | #endif 60 | 61 | -------------------------------------------------------------------------------- /component/isp/3a/include/mpi_awb.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : mpi_awb.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2012/12/19 10 | Description : 11 | History : 12 | 1.Date : 2012/12/19 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __MPI_AWB_H__ 18 | #define __MPI_AWB_H__ 19 | 20 | #include "hi_comm_isp.h" 21 | #include "hi_comm_3a.h" 22 | #include "hi_awb_comm.h" 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C"{ 27 | #endif 28 | #endif /* End of #ifdef __cplusplus */ 29 | 30 | /* The interface of awb lib register to isp. */ 31 | HI_S32 HI_MPI_AWB_Register(ISP_DEV IspDev, ALG_LIB_S *pstAwbLib); 32 | HI_S32 HI_MPI_AWB_UnRegister(ISP_DEV IspDev, ALG_LIB_S *pstAwbLib); 33 | 34 | /* The callback function of sensor register to awb lib. */ 35 | HI_S32 HI_MPI_AWB_SensorRegCallBack(ISP_DEV IspDev, ALG_LIB_S *pstAwbLib, SENSOR_ID SensorId, 36 | AWB_SENSOR_REGISTER_S *pstRegister); 37 | HI_S32 HI_MPI_AWB_SensorUnRegCallBack(ISP_DEV IspDev, ALG_LIB_S *pstAwbLib, SENSOR_ID SensorId); 38 | 39 | HI_S32 HI_MPI_ISP_SetWBAttr(ISP_DEV IspDev, const ISP_WB_ATTR_S *pstWBAttr); 40 | HI_S32 HI_MPI_ISP_GetWBAttr(ISP_DEV IspDev, ISP_WB_ATTR_S *pstWBAttr); 41 | 42 | HI_S32 HI_MPI_ISP_SetAWBAttrEx(ISP_DEV IspDev, ISP_AWB_ATTR_EX_S *pstAWBAttrEx); 43 | HI_S32 HI_MPI_ISP_GetAWBAttrEx(ISP_DEV IspDev, ISP_AWB_ATTR_EX_S *pstAWBAttrEx); 44 | 45 | HI_S32 HI_MPI_ISP_SetCCMAttr(ISP_DEV IspDev, const ISP_COLORMATRIX_ATTR_S *pstCCMAttr); 46 | HI_S32 HI_MPI_ISP_GetCCMAttr(ISP_DEV IspDev, ISP_COLORMATRIX_ATTR_S *pstCCMAttr); 47 | 48 | HI_S32 HI_MPI_ISP_SetSaturationAttr(ISP_DEV IspDev, const ISP_SATURATION_ATTR_S *pstSatAttr); 49 | HI_S32 HI_MPI_ISP_GetSaturationAttr(ISP_DEV IspDev, ISP_SATURATION_ATTR_S *pstSatAttr); 50 | 51 | HI_S32 HI_MPI_ISP_SetColorToneAttr(ISP_DEV IspDev, const ISP_COLOR_TONE_ATTR_S *pstCTAttr); 52 | HI_S32 HI_MPI_ISP_GetColorToneAttr(ISP_DEV IspDev, ISP_COLOR_TONE_ATTR_S *pstCTAttr); 53 | 54 | HI_S32 HI_MPI_ISP_QueryWBInfo(ISP_DEV IspDev, ISP_WB_INFO_S *pstWBInfo); 55 | HI_S32 HI_MPI_ISP_CalGainByTemp(const ISP_WB_ATTR_S *pstWBAttr, HI_U16 u16ColorTemp, HI_S16 s16Shift, HI_U16 *pu16AWBGain); 56 | 57 | #ifdef __cplusplus 58 | #if __cplusplus 59 | } 60 | #endif 61 | #endif /* End of #ifdef __cplusplus */ 62 | 63 | #endif 64 | 65 | -------------------------------------------------------------------------------- /component/isp/3a/sample_ae/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # isp firmware Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | LIBPATH = ./lib 12 | OBJPATH = ./obj 13 | 14 | 3A_INC := $(ISP_PATH)/3a/include 15 | VREG_INC := $(ISP_PATH)/firmware/vreg 16 | 17 | #tmp, delete in the future 18 | SRC_INC := $(ISP_PATH)/firmware/src/main 19 | DRV_INC := $(ISP_PATH)/firmware/drv 20 | ISP_INC := $(ISP_PATH)/include 21 | 22 | ifeq ($(MPP_BUILD), y) 23 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 24 | else 25 | EXT_PATH := $(SDK_PATH)/mpp/extdrv 26 | endif 27 | 28 | BUS_DIR := $(EXT_PATH)/pwm 29 | 30 | ARFLAGS = rcv 31 | CFLAGS = -Wall -fPIC 32 | 33 | ifeq ($(HIGDB),HI_GDB) 34 | CFLAGS += -g 35 | endif 36 | ifeq ($(CONFIG_JPEGEDCF), y) 37 | CFLAGS += -D ENABLE_JPEGEDCF 38 | endif 39 | CFLAGS += -O2 40 | CFLAGS += $(LIBS_CFLAGS) 41 | DFLAGS := -DEXT_REG 42 | 43 | INC := -I$(REL_INC) -I$(ISP_INC) -I$(BUS_DIR) -I$(3A_INC) -I$(SRC_INC) -I$(VREG_INC) -I$(VREG_INC)/arch/$(HIARCH) -I$(DRV_INC) 44 | 45 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 46 | 47 | $(OBJPATH)/%.o: ./%.c 48 | @(echo "compiling $< ...") 49 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 50 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 51 | @($(COMPILE) -o $@ -c $< $(INC)) 52 | 53 | SRCS = $(wildcard ./*.c) 54 | OBJS = $(SRCS:%.c=%.o) 55 | OBJS := $(OBJS:./%=obj/%) 56 | 57 | LIB_A := $(LIBPATH)/lib_hiae_v2.a 58 | LIB_S := $(LIBPATH)/lib_hiae_v2.so 59 | 60 | all:$(OBJS) 61 | @($(AR) $(ARFLAGS) $(LIB_A) $(OBJS)) 62 | @($(CC) $(LIBS_LD_CFLAGS) -shared -fPIC -o $(LIB_S) $(OBJS)) 63 | 64 | clean: 65 | @$(RM) -rf $(LIB_A) $(LIB_S) $(OBJS) 66 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 67 | 68 | -------------------------------------------------------------------------------- /component/isp/3a/sample_ae/sample_ae_ext_config.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : hi_ae_ext_config.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2014/04/03 10 | Description : 11 | History : 12 | 1.Date : 2014/04/03 13 | Author : h00191408 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __HI_AE_EXT_CONFIG_H__ 18 | #define __HI_AE_EXT_CONFIG_H__ 19 | 20 | #include "hi_vreg.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | 29 | 30 | /* 31 | *------------------------------------------------------------------------------ 32 | * these two entity illustrate how to use a ext register 33 | * 34 | * 1. Ae Mode 35 | * 2. Analog Gain 36 | * 37 | *------------------------------------------------------------------------------ 38 | */ 39 | 40 | 41 | // -----------------------------------------------------------------------s------- // 42 | // Register: AE_MODE 43 | // ------------------------------------------------------------------------------ // 44 | 45 | #define HI_EXT_SYSTEM_AE_MODE_DEFAULT (0x0) 46 | #define HI_EXT_SYSTEM_AE_MODE_DATASIZE (1) 47 | 48 | // args: data (1-bit) 49 | static __inline HI_VOID hi_ext_system_ae_mode_write(HI_U8 id, HI_U8 data) { 50 | IOWR_8DIRECT((AE_LIB_VREG_BASE(id)+0x0), data & 0x01); 51 | } 52 | static __inline HI_U8 hi_ext_system_ae_mode_read(HI_U8 id) { 53 | return (IORD_8DIRECT(AE_LIB_VREG_BASE(id)+0x0) & 0x01); 54 | } 55 | 56 | 57 | // ------------------------------------------------------------------------------ // 58 | // Register: AGAIN 59 | // ------------------------------------------------------------------------------ // 60 | 61 | #define HI_EXT_SYSTEM_QUERY_EXPOSURE_ISO_DEFAULT (0x00) 62 | #define HI_EXT_SYSTEM_QUERY_EXPOSURE_ISO_DATASIZE (32) 63 | 64 | // args: data (32-bit) 65 | static __inline HI_VOID hi_ext_system_query_exposure_again_write(HI_U8 id, HI_U32 data){ 66 | IOWR_32DIRECT((AE_LIB_VREG_BASE(id)+0x1), data); 67 | } 68 | static __inline HI_U32 hi_ext_system_query_exposure_again_read(HI_U8 id){ 69 | return IORD_32DIRECT(AE_LIB_VREG_BASE(id)+0x1); 70 | } 71 | 72 | 73 | #ifdef __cplusplus 74 | #if __cplusplus 75 | } 76 | #endif 77 | #endif /* End of #ifdef __cplusplus */ 78 | 79 | #endif 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /component/isp/3a/sample_ae/sample_ae_mpi.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : mpi_isp_ae.c 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2014/04/01 10 | Description : 11 | History : 12 | 1.Date : 2014/04/01 13 | Author : h00191408 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #include 18 | #include 19 | 20 | #include "hi_comm_isp.h" 21 | #include "hi_comm_3a.h" 22 | #include "hi_ae_comm.h" 23 | 24 | 25 | #ifdef __cplusplus 26 | #if __cplusplus 27 | extern "C"{ 28 | #endif 29 | #endif /* End of #ifdef __cplusplus */ 30 | 31 | HI_S32 SAMPLE_HI_MPI_AE_Register(ISP_DEV IspDev, ALG_LIB_S *pstAeLib); 32 | HI_S32 SAMPLE_HI_MPI_AE_UnRegister(ISP_DEV IspDev, ALG_LIB_S *pstAeLib); 33 | 34 | /* The callback function of sensor register to ae lib. */ 35 | HI_S32 SAMPLE_HI_MPI_AE_SensorRegCallBack(ISP_DEV IspDev, ALG_LIB_S *pstAeLib, SENSOR_ID SensorId, 36 | AE_SENSOR_REGISTER_S *pstRegister); 37 | HI_S32 SAMPLE_HI_MPI_AE_SensorUnRegCallBack(ISP_DEV IspDev, ALG_LIB_S *pstAeLib, SENSOR_ID SensorId); 38 | 39 | HI_S32 HI_MPI_ISP_SetExposureAttr(ISP_DEV IspDev, const ISP_EXPOSURE_ATTR_S *pstExpAttr); 40 | HI_S32 HI_MPI_ISP_GetExposureAttr(ISP_DEV IspDev, ISP_EXPOSURE_ATTR_S *pstExpAttr); 41 | 42 | HI_S32 HI_MPI_ISP_SetAERouteAttr(ISP_DEV IspDev, const ISP_AE_ROUTE_S *pstAERouteAttr); 43 | HI_S32 HI_MPI_ISP_GetAERouteAttr(ISP_DEV IspDev, ISP_AE_ROUTE_S *pstAERouteAttr); 44 | 45 | HI_S32 HI_MPI_ISP_QueryExposureInfo(ISP_DEV IspDev, ISP_EXP_INFO_S *pstExpInfo); 46 | 47 | HI_S32 HI_MPI_ISP_SetIrisAttr(ISP_DEV IspDev, const ISP_IRIS_ATTR_S *pstIrisAttr); 48 | HI_S32 HI_MPI_ISP_GetIrisAttr(ISP_DEV IspDev, ISP_IRIS_ATTR_S *pstIrisAttr); 49 | 50 | 51 | 52 | #ifdef __cplusplus 53 | #if __cplusplus 54 | } 55 | #endif 56 | #endif /* End of #ifdef __cplusplus */ 57 | 58 | 59 | -------------------------------------------------------------------------------- /component/isp/3a/sample_awb/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # isp firmware Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | LIBPATH = ./lib 12 | OBJPATH = ./obj 13 | 14 | 3A_INC := $(ISP_PATH)/3a/include 15 | VREG_INC := $(ISP_PATH)/firmware/vreg 16 | 17 | #tmp, delete in the future 18 | SRC_INC := $(ISP_PATH)/firmware/src/main 19 | DRV_INC := $(ISP_PATH)/firmware/drv 20 | ISP_INC := $(ISP_PATH)/include 21 | 22 | ifeq ($(MPP_BUILD), y) 23 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 24 | else 25 | EXT_PATH := $(SDK_PATH)/mpp/extdrv 26 | endif 27 | 28 | BUS_DIR := $(EXT_PATH)/pwm 29 | 30 | ARFLAGS = rcv 31 | CFLAGS = -Wall -fPIC 32 | 33 | ifeq ($(HIGDB),HI_GDB) 34 | CFLAGS += -g 35 | endif 36 | ifeq ($(CONFIG_JPEGEDCF), y) 37 | CFLAGS += -D ENABLE_JPEGEDCF 38 | endif 39 | CFLAGS += -O2 40 | CFLAGS += $(LIBS_CFLAGS) 41 | DFLAGS := -DEXT_REG 42 | 43 | INC := -I$(REL_INC) -I$(ISP_INC) -I$(BUS_DIR) -I$(3A_INC) -I$(SRC_INC) -I$(VREG_INC) -I$(VREG_INC)/arch/$(HIARCH) -I$(DRV_INC) 44 | 45 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 46 | 47 | $(OBJPATH)/%.o: ./%.c 48 | @(echo "compiling $< ...") 49 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 50 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 51 | @($(COMPILE) -o $@ -c $< $(INC)) 52 | 53 | SRCS = $(wildcard ./*.c) 54 | OBJS = $(SRCS:%.c=%.o) 55 | OBJS := $(OBJS:./%=obj/%) 56 | 57 | LIB_A := $(LIBPATH)/lib_hiawb.a 58 | LIB_S := $(LIBPATH)/lib_hiawb.so 59 | 60 | all:$(OBJS) 61 | @($(AR) $(ARFLAGS) $(LIB_A) $(OBJS)) 62 | @($(CC) $(LIBS_LD_CFLAGS) -shared -fPIC -o $(LIB_S) $(OBJS)) 63 | 64 | clean: 65 | @$(RM) -rf $(LIB_A) $(LIB_S) $(OBJS) 66 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 67 | -------------------------------------------------------------------------------- /component/isp/Makefile: -------------------------------------------------------------------------------- 1 | # $(ROOT)/mpp/Mafile 2 | 3 | ifeq ($(PARAM_FILE), ) 4 | PARAM_FILE:=../../Makefile.param 5 | include $(PARAM_FILE) 6 | endif 7 | 8 | ISP_KO := ./ko 9 | ISP_LIB := ./lib 10 | ISP_INC := ./include 11 | 3A_INC := ./3a/include 12 | DEFOG_INC := ./defog 13 | 14 | #HIARCH = hi3516A 15 | 16 | .PHONY:clean all rel 17 | all: 18 | @echo -e "\e[0;32;1m--Compiling 'isp'... Configs as follow:\e[0;36;1m" 19 | @echo ---- CROSS=$(CROSS) 20 | @echo ---- HIARCH=$(HIARCH), HICHIP=$(HICHIP), CVER=$(CVER), HIDBG=$(HIDBG) 21 | @echo ---- SDK_PATH=$(SDK_PATH) , PARAM_FILE=$(PARAM_FILE) 22 | @echo ---- LINUX_ROOT=$(LINUX_ROOT) 23 | @echo -e "\e[0m" 24 | @mkdir -p $(REL_INC); cp $(ISP_INC)/*.h $(3A_INC)/*.h $(DEFOG_INC)/isp_dehaze.h $(REL_INC) -rf ; 25 | @for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; \ 26 | do cd `dirname $$x`; if [ $$? ]; then make || exit 1; cd ../; fi; done 27 | @mkdir -p $(REL_KO); cp $(ISP_KO)/*.ko $(REL_KO) -rf 28 | @mkdir -p $(REL_LIB); cp $(ISP_LIB)/*.a $(REL_LIB) -rf; cp $(ISP_LIB)/*.so $(REL_LIB) -rf 29 | 30 | clean: 31 | @for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; \ 32 | do cd `dirname $$x`; if [ $$? ]; then make clean; cd ../; fi; done 33 | @rm $(REL_LIB)/libisp.a $(REL_LIB)/libsns* -rf 34 | @rm $(REL_KO)/$(HIARCH)_isp.ko -rf 35 | -------------------------------------------------------------------------------- /component/isp/defog/isp_dehaze.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : hi_awb_comm.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2012/12/19 10 | Description : 11 | History : 12 | 1.Date : 2012/12/19 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __HI_ISP_DEHAZE_H__ 18 | #define __HI_ISP_DEHAZE_H__ 19 | 20 | #include "hi_type.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | #define FRAMECNT 12 29 | #define DEHAZE_CURVE_NUM 32 30 | #define DEHAZE_CURVE_MAX_NODE 256 31 | 32 | 33 | typedef enum hiDehze_CTRL_CMD_E 34 | { 35 | 36 | DEHAZE_DEBUG_ATTR_SET, 37 | DEHAZE_DEBUG_ATTR_GET, 38 | DEHAZE_DEBUG_WAIT_END, 39 | DEHAZE_CTRL_BUTT, 40 | 41 | }DEHAZE_CTRL_CMD_E; 42 | 43 | typedef struct hiDEHAZE_DBG_ATTR_S 44 | { 45 | HI_U32 hblk_num; 46 | HI_U32 vblk_num; 47 | HI_U32 u32ImageHeight; 48 | HI_U32 u32ImageWidth; 49 | } DEHAZE_DBG_ATTR_S; 50 | 51 | typedef struct hiDEHAZE_DBG_STATUS_S 52 | { 53 | HI_U16 AirPre[FRAMECNT][3]; 54 | HI_U16 maxdc; 55 | HI_U32 u32CurFrmNum; 56 | HI_U8 au8DehazeMinDout[DEFOG_ZONE_NUM]; 57 | HI_U8 Lut[DEHAZE_CURVE_MAX_NODE]; 58 | HI_U8 tmpr_min_flt[DEFOG_ZONE_NUM]; 59 | HI_U8 v_blur_flt_dout[DEFOG_ZONE_NUM]; 60 | HI_U8 pre_dc[DEFOG_ZONE_NUM]; 61 | HI_U8 au32DehazeMaxStatDout[DEFOG_ZONE_NUM]; 62 | HI_U16 flt_a[3]; 63 | HI_U16 dc_aver; 64 | HI_U16 defog_strength; 65 | HI_U16 curve_index; 66 | HI_U32 u32FrmNumBgn; 67 | HI_U32 u32FrmNumEnd; 68 | HI_U32 CurrA[3]; 69 | 70 | 71 | } DEHAZE_DBG_STATUS_S; 72 | 73 | 74 | typedef struct hiDEHAZE_DBG_CTRL_S 75 | { 76 | HI_BOOL bPreDebugEn; 77 | HI_U32 u32PrePhyAddr; 78 | HI_U32 u32PreDepth; 79 | HI_U32 u32PreSize; 80 | 81 | HI_BOOL bDebugEn; 82 | HI_BOOL bDebugOut; 83 | HI_BOOL bDbgCompleted; 84 | HI_U32 u32PhyAddr; 85 | HI_U32 u32Depth; 86 | HI_U32 u32Size; 87 | HI_U32 u32DbgFrmCnt; 88 | 89 | DEHAZE_DBG_ATTR_S *pstDbgAttr; 90 | DEHAZE_DBG_STATUS_S *pstDbgStatus; 91 | 92 | } DEHAZE_DBG_CTRL_S; 93 | 94 | 95 | 96 | #ifdef __cplusplus 97 | #if __cplusplus 98 | } 99 | #endif 100 | #endif /* End of #ifdef __cplusplus */ 101 | 102 | #endif 103 | 104 | 105 | 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /component/isp/firmware/Makefile: -------------------------------------------------------------------------------- 1 | 2 | .PHONY:clean all rel 3 | all: 4 | @echo -e "\e[0;32;1m--Compiling 'isp'... Configs as follow:\e[0;36;1m" 5 | @echo ---- CROSS=$(CROSS) 6 | @echo ---- HIARCH=$(HIARCH), HICHIP=$(HICHIP), CVER=$(CVER), HIDBG=$(HIDBG) 7 | @echo ---- SDK_PATH=$(SDK_PATH) , PARAM_FILE=$(PARAM_FILE) 8 | @echo ---- LINUX_ROOT=$(LINUX_ROOT) 9 | @echo -e "\e[0m" 10 | @for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; \ 11 | do cd `dirname $$x`; if [ $$? ]; then make; cd ../; fi; done 12 | 13 | clean: 14 | @for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; \ 15 | do cd `dirname $$x`; if [ $$? ]; then make clean; cd ../; fi; done 16 | 17 | -------------------------------------------------------------------------------- /component/isp/firmware/drv/.tmp_versions/hi3518e_isp.mod: -------------------------------------------------------------------------------- 1 | /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/hi3518e_isp.ko 2 | /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/isp.o /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/mkp_acm.o /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/isp_acm_lut.o /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/../vreg/hi_drv_vreg.o /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/../vreg/hi_vreg.o /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/isp_st.o 3 | -------------------------------------------------------------------------------- /component/isp/firmware/drv/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # isp ko Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ifeq ($(MPP_BUILD), y) 11 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 12 | else 13 | EXT_PATH := $(SDK_PATH)/mpp/extdrv 14 | endif 15 | 16 | CONFIG_JPEGEDCF=y 17 | 18 | ISP_KO := ../../ko 19 | EXTRA_CFLAGS += $(MPP_CFLAGS) 20 | EXTRA_CFLAGS += -I$(REL_INC) -I$(SDK_PATH)/mpp/code/mkp/include 21 | EXTRA_CFLAGS += -I$(REL_INC) -I$(SDK_PATH)/mpp/code/arch/$(HIARCH)/include 22 | EXTRA_CFLAGS += -I$(SDK_PATH)/mpp/code/mkp_inc 23 | EXTRA_CFLAGS += -I$(SDK_PATH)/mpp/component/isp/firmware/vreg 24 | EXTRA_CFLAGS += -I$(SDK_PATH)/mpp/component/isp/firmware/vreg/arch/$(HIARCH) 25 | EXTRA_CFLAGS += -I$(SDK_PATH)/mpp/component/isp/include 26 | EXTRA_CFLAGS += -I$(EXT_PATH)/i2c 27 | EXTRA_CFLAGS += -I$(EXT_PATH)/hi_i2c 28 | EXTRA_CFLAGS += -I$(EXT_PATH)/ssp-sony 29 | 30 | ifeq ($(CONFIG_GPIO_I2C), y) 31 | INC += -I$(EXT_PATH)/gpio-i2c-ex 32 | INC += -I$(EXT_PATH)/gpio-i2c 33 | else 34 | INC += -I$(EXT_PATH)/i2c 35 | INC += -I$(EXT_PATH)/hi_i2c 36 | endif 37 | 38 | EXTRA_CFLAGS += $(INC) 39 | ifeq ($(HIGDB),HI_GDB) 40 | EXTRA_CFLAGS += -g 41 | endif 42 | ifeq ($(CONFIG_JPEGEDCF), y) 43 | EXTRA_CFLAGS += -D ENABLE_JPEGEDCF 44 | endif 45 | ifeq ($(CONFIG_GPIO_I2C),y) 46 | HI_GPIO_I2C:=HI_GPIO_I2C 47 | else 48 | HI_GPIO_I2C:=HI_GPIO_XXX 49 | endif 50 | 51 | EXTRA_CFLAGS += -D$(HI_FPGA) -D$(HI_GPIO_I2C) -D$(HIDBG) 52 | 53 | ISP_SRC := isp.c mkp_acm.c isp_acm_lut.c ../vreg/hi_drv_vreg.c ../vreg/hi_vreg.c 54 | ISP_SRC += isp_st.c 55 | $(HIARCH)_isp-objs = $(ISP_SRC:%.c=%.o) 56 | 57 | ifneq ($(KERNELRELEASE),) 58 | obj-m := $(HIARCH)_isp.o 59 | endif 60 | 61 | .PHONY: default clean 62 | default: 63 | @$(MAKE) -C $(LINUX_ROOT) M=$(PWD) modules 64 | @mkdir -p $(ISP_KO) && cp -rf *.ko $(ISP_KO) 65 | clean: 66 | @$(MAKE) -C $(LINUX_ROOT) M=$(PWD)/.. clean 67 | @if [ -e $(ISP_KO) ];then rm -rf "$(ISP_KO)"; fi 68 | -------------------------------------------------------------------------------- /component/isp/firmware/drv/Module.symvers: -------------------------------------------------------------------------------- 1 | 0x00000000 hi_isp_sync_task_register /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/hi3518e_isp EXPORT_SYMBOL 2 | 0x00000000 hi_isp_sync_task_unregister /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/hi3518e_isp EXPORT_SYMBOL 3 | 0x00000000 g_stIspExpFunc /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/hi3518e_isp EXPORT_SYMBOL 4 | 0x00000000 ISP_GetDCFInfo /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/hi3518e_isp EXPORT_SYMBOL 5 | 0x00000000 g_stIspPirisExpFunc /home/pub/tag/Hi3518EV200R001C01SPC030B030/mpp/component/isp/isp_hi3518e/firmware/drv/hi3518e_isp EXPORT_SYMBOL 6 | -------------------------------------------------------------------------------- /component/isp/firmware/drv/isp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/drv/isp.c -------------------------------------------------------------------------------- /component/isp/firmware/drv/isp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/drv/isp.h -------------------------------------------------------------------------------- /component/isp/firmware/drv/isp_ext.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_ext.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/07/17 10 | Description : 11 | History : 12 | 1.Date : 2013/07/17 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __ISP_EXT_H__ 18 | #define __ISP_EXT_H__ 19 | 20 | #include "hi_type.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | typedef enum hiISP_BUS_TYPE_E 29 | { 30 | ISP_BUS_TYPE_I2C = 0, 31 | ISP_BUS_TYPE_SSP, 32 | 33 | ISP_BUS_TYPE_BUTT, 34 | } ISP_BUS_TYPE_E; 35 | 36 | typedef struct hiISP_BUS_CALLBACK_S 37 | { 38 | HI_S32 (*pfnISPWriteI2CData) (HI_U8 u8DevAddr, HI_U32 u32RegAddr, 39 | HI_U32 u32RegAddrByteNum, HI_U32 u32Data, HI_U32 u32DataByteNum); 40 | HI_S32 (*pfnISPWriteSSPData) (HI_U32 u32DevAddr, HI_U32 u32DevAddrByteNum, 41 | HI_U32 u32RegAddr, HI_U32 u32RegAddrByteNum, HI_U32 u32Data, HI_U32 u32DataByteNum); 42 | } ISP_BUS_CALLBACK_S; 43 | 44 | typedef struct hiISP_EXPORT_FUNC_S 45 | { 46 | HI_S32 (*pfnISPRegisterBusCallBack) (HI_S32 IspDev, ISP_BUS_TYPE_E enType, ISP_BUS_CALLBACK_S *pstBusCb); 47 | } ISP_EXPORT_FUNC_S; 48 | 49 | extern ISP_EXPORT_FUNC_S g_stIspExpFunc; 50 | 51 | #define CKFN_ISP_RegisterBusCallBack()\ 52 | (NULL != g_stIspExpFunc.pfnISPRegisterBusCallBack) 53 | #define CALL_ISP_RegisterBusCallBack(IspDev,enType,pstBusCb)\ 54 | g_stIspExpFunc.pfnISPRegisterBusCallBack(IspDev,enType,pstBusCb) 55 | //---------------------------------------------------------------------------------------- 56 | // isp sync task 57 | typedef enum hiISP_SYNC_TSK_METHOD_E 58 | { 59 | ISP_SYNC_TSK_METHOD_HW_IRQ = 0, 60 | ISP_SYNC_TSK_METHOD_TSKLET, 61 | ISP_SYNC_TSK_METHOD_WORKQUE, 62 | 63 | ISP_SYNC_TSK_METHOD_BUTT 64 | 65 | } ISP_SYNC_TSK_METHOD_E; 66 | 67 | typedef struct hiISP_SYNC_TASK_NODE_S 68 | { 69 | ISP_SYNC_TSK_METHOD_E enMethod; 70 | HI_S32 ( *pfnIspSyncTskCallBack ) (HI_U64 u64Data); 71 | HI_U64 u64Data; 72 | const char *pszId; 73 | struct list_head list; 74 | 75 | } ISP_SYNC_TASK_NODE_S; 76 | 77 | extern HI_S32 hi_isp_sync_task_register(ISP_DEV dev, ISP_SYNC_TASK_NODE_S * pstNewNode); 78 | extern HI_S32 hi_isp_sync_task_unregister(ISP_DEV dev, ISP_SYNC_TASK_NODE_S *pstDelNode); 79 | 80 | #ifdef __cplusplus 81 | #if __cplusplus 82 | } 83 | #endif 84 | #endif /* End of #ifdef __cplusplus */ 85 | 86 | #endif 87 | -------------------------------------------------------------------------------- /component/isp/firmware/drv/mkp_ioctl.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : mkp_ioctl.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2006/12/11 10 | Description : 11 | History : 12 | 1.Date : 2006/12/11 13 | Author : c42025 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | 18 | #ifndef __MKP_IOCTL_H__ 19 | #define __MKP_IOCTL_H__ 20 | 21 | #define IOC_TYPE_VIU 'I' 22 | #define IOC_TYPE_VOU 'O' 23 | #define IOC_TYPE_OSD 'V' 24 | 25 | #define IOC_TYPE_VDA 'M' 26 | #define IOC_TYPE_VENC 'E' 27 | #define IOC_TYPE_VDEC 'D' 28 | 29 | #define IOC_TYPE_AENC 'A' 30 | #define IOC_TYPE_ADEC 'H' 31 | 32 | #define IOC_TYPE_AI 'Z' 33 | #define IOC_TYPE_AO 'X' 34 | #define IOC_TYPE_AIO 'S' 35 | 36 | #define IOC_TYPE_SYS 'Y' 37 | #define IOC_TYPE_VB 'B' 38 | #define IOC_TYPE_LOG 'L' 39 | 40 | #define IOC_TYPE_VPSS 'P' 41 | 42 | #define IOC_TYPE_RGN 'R' 43 | 44 | #define IOC_TYPE_GRP 'G' 45 | 46 | #define IOC_TYPE_PCIV 'C' 47 | 48 | #define IOC_TYPE_IVE 'F' 49 | 50 | #define IOC_TYPE_VGS 'J' 51 | #define IOC_TYPE_FISHEYE 'N' 52 | 53 | #define IOC_TYPE_FD 'K' 54 | 55 | #endif /* __MKP_IOCTL_H__ */ 56 | 57 | -------------------------------------------------------------------------------- /component/isp/firmware/drv/piris_ext.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : piris_ext.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2015/01/28 10 | Description : 11 | History : 12 | 1.Date : 2015/01/28 13 | Author : h00191408 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __PIRIS_EXT_H__ 18 | #define __PIRIS_EXT_H__ 19 | 20 | #include "hi_type.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | typedef struct hiISP_PIRIS_CALLBACK_S 29 | { 30 | HI_S32 (*pfn_piris_gpio_update)(HI_S32 *s32Pos); 31 | } ISP_PIRIS_CALLBACK_S; 32 | 33 | typedef struct hiISP_PIRIS_EXPORT_FUNC_S 34 | { 35 | HI_S32 (*pfnISPRegisterPirisCallBack) (HI_S32 IspDev, ISP_PIRIS_CALLBACK_S *pstPirisCb); 36 | } ISP_PIRIS_EXPORT_FUNC_S; 37 | 38 | extern ISP_PIRIS_EXPORT_FUNC_S g_stIspPirisExpFunc; 39 | 40 | #define CKFN_ISP_RegisterPirisCallBack()\ 41 | (NULL != g_stIspPirisExpFunc.pfnISPRegisterPirisCallBack) 42 | #define CALL_ISP_RegisterPirisCallBack(IspDev,pstPirisCb)\ 43 | g_stIspPirisExpFunc.pfnISPRegisterPirisCallBack(IspDev,pstPirisCb) 44 | 45 | #ifdef __cplusplus 46 | #if __cplusplus 47 | } 48 | #endif 49 | #endif /* End of #ifdef __cplusplus */ 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /component/isp/firmware/src/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # isp firmware Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | LIB_PATH = $(ISP_PATH)/lib/ 12 | OBJ_PATH = $(ISP_PATH)/firmware/src/obj 13 | 14 | ifeq ($(MPP_BUILD), y) 15 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 16 | else 17 | EXT_PATH := $(SDK_PATH)/mpp/extdrv 18 | endif 19 | 20 | BUS_DIR := $(EXT_PATH)/pwm 21 | 22 | ISP_INC := -I$(ISP_PATH)/include\ 23 | -I$(ISP_PATH)/3a/include\ 24 | -I$(ISP_PATH)/firmware/drv\ 25 | -I$(ISP_PATH)/firmware/vreg\ 26 | -I$(ISP_PATH)/firmware/vreg/arch/$(HIARCH)\ 27 | -I$(ISP_PATH)/firmware/src/algorithms\ 28 | -I$(ISP_PATH)/firmware/src/arch/$(HIARCH)\ 29 | -I$(ISP_PATH)/firmware/src/main\ 30 | -I$(REL_INC) \ 31 | -I$(EXT_PATH)\ 32 | -I$(SDK_PATH)/mpp/code/arch/$(HIARCH)/include \ 33 | -I$(SDK_PATH)/mpp/code/mkp/include \ 34 | -I$(SDK_PATH)/mpp/code/mkp_inc \ 35 | 36 | SRC_DIR := $(ISP_PATH)/firmware/src/algorithms\ 37 | $(ISP_PATH)/firmware/src/arch/$(HIARCH)\ 38 | $(ISP_PATH)/firmware/src/main\ 39 | $(ISP_PATH)/firmware/vreg 40 | 41 | LIB_A := $(LIB_PATH)/libisp.a 42 | LIB_S := $(LIB_PATH)/libisp.so 43 | 44 | CFLAGS = -Wall -fPIC 45 | 46 | ifeq ($(HIGDB),HI_GDB) 47 | CFLAGS += -g 48 | endif 49 | 50 | CFLAGS += -O2 51 | CFLAGS += $(LIBS_CFLAGS) 52 | DFLAGS := -DEXT_REG -D$(HI_FPGA) 53 | 54 | DEPEND_FILE := $(foreach file,$(subst -I, ,$(ISP_INC)), $(wildcard $(file)/*.h)) 55 | SRCS := $(foreach file,$(subst -S, ,$(SRC_DIR)), $(notdir $(wildcard $(file)/*.c))) 56 | 57 | ifeq ($(CONFIG_JPEGEDCF), y) 58 | CFLAGS += -D ENABLE_JPEGEDCF 59 | else 60 | DEL_SRC_C := isp_dcfinfo.c 61 | SRCS := $(filter-out $(DEL_SRC_C), $(SRCS)) 62 | endif 63 | 64 | OBJS := $(SRCS:%.c=$(OBJ_PATH)/%.o) 65 | VPATH = $(subst -S, ,$(SRC_DIR)) 66 | 67 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) $(ISP_INC) -lm 68 | 69 | $(OBJ_PATH)/%.o : %.c $(DEPEND_FILE) 70 | @(echo "compiling $< ...") 71 | @[ -e $(LIB_PATH) ] || mkdir $(LIB_PATH) 72 | @[ -e $(OBJ_PATH) ] || mkdir $(OBJ_PATH) 73 | @($(COMPILE) -o $@ -c $<) 74 | 75 | all:$(OBJS) 76 | @($(AR) -rcv $(LIB_A) $(OBJS)) 77 | @($(CC) $(LIBS_LD_CFLAGS) -shared -fPIC -o $(LIB_S) $(OBJS)) 78 | 79 | clean: 80 | @$(RM) -rf $(LIB_A) $(LIB_S) $(OBJS) 81 | @$(RM) -rf $(LIB_PATH) $(OBJ_PATH) 82 | -------------------------------------------------------------------------------- /component/isp/firmware/src/algorithms/isp_cac.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/src/algorithms/isp_cac.c -------------------------------------------------------------------------------- /component/isp/firmware/src/algorithms/isp_csc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/src/algorithms/isp_csc.c -------------------------------------------------------------------------------- /component/isp/firmware/src/algorithms/isp_fpn.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/src/algorithms/isp_fpn.c -------------------------------------------------------------------------------- /component/isp/firmware/src/algorithms/isp_uvnr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/src/algorithms/isp_uvnr.c -------------------------------------------------------------------------------- /component/isp/firmware/src/arch/hi3518e/isp_dcfinfo.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2014-2019, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_dcfinfo.c 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2014/06/17 10 | Description : 11 | History : 12 | 1.Date : 2014/06/17 13 | Author : z00183560 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #include 18 | #include 19 | #include "mkp_isp.h" 20 | #include "mpi_sys.h" 21 | #ifdef ENABLE_JPEGEDCF 22 | #include "isp_dcfinfo.h" 23 | #endif 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C"{ 27 | #endif 28 | #endif /* End of #ifdef __cplusplus */ 29 | 30 | extern HI_S32 g_as32IspFd[ISP_MAX_DEV_NUM]; 31 | HI_S32 ISP_DCFInfoInit(ISP_DEV IspDev,ISP_DCFINFO_CTRL_S* pstDcfInfoCtrl) 32 | { 33 | HI_S32 s32Ret; 34 | 35 | s32Ret = ioctl(g_as32IspFd[IspDev], ISP_DCFINFO_BUF_INIT, &pstDcfInfoCtrl->u32DCFInfoPhyaddr); 36 | if (HI_SUCCESS != s32Ret) 37 | { 38 | pstDcfInfoCtrl->bSupportDCF = HI_FALSE; 39 | 40 | if (HI_ERR_ISP_NOT_SUPPORT == s32Ret) 41 | { 42 | s32Ret = HI_SUCCESS; 43 | } 44 | else 45 | { 46 | printf("init dcf bufs failed %x!\n", s32Ret); 47 | } 48 | return s32Ret; 49 | } 50 | 51 | pstDcfInfoCtrl->pstIspDCF = HI_MPI_SYS_Mmap(pstDcfInfoCtrl->u32DCFInfoPhyaddr, 52 | sizeof(ISP_DCF_INFO_S)); 53 | if (HI_NULL == pstDcfInfoCtrl->pstIspDCF) 54 | { 55 | printf("mmap dcf info buf failed!\n"); 56 | ioctl(g_as32IspFd[IspDev], ISP_DCFINFO_BUF_EXIT); 57 | return HI_ERR_ISP_NOMEM; 58 | } 59 | pstDcfInfoCtrl->bSupportDCF = HI_TRUE; 60 | 61 | return HI_SUCCESS; 62 | } 63 | 64 | HI_S32 ISP_DCFInfoExit(ISP_DEV IspDev,ISP_DCFINFO_CTRL_S* pstDcfInfoCtrl) 65 | { 66 | HI_S32 s32Ret; 67 | 68 | if (HI_FALSE == pstDcfInfoCtrl->bSupportDCF) 69 | { 70 | return HI_SUCCESS; 71 | } 72 | 73 | if (HI_NULL != pstDcfInfoCtrl->pstIspDCF) 74 | { 75 | HI_MPI_SYS_Munmap(pstDcfInfoCtrl->pstIspDCF, 76 | sizeof(ISP_DCF_INFO_S)); 77 | pstDcfInfoCtrl->pstIspDCF = HI_NULL; 78 | } 79 | 80 | s32Ret = ioctl(g_as32IspFd[IspDev], ISP_DCFINFO_BUF_EXIT); 81 | if (HI_SUCCESS != s32Ret) 82 | { 83 | printf("exit dcf info buf failed %x!\n", s32Ret); 84 | return s32Ret; 85 | } 86 | 87 | return HI_SUCCESS; 88 | } 89 | 90 | #ifdef __cplusplus 91 | #if __cplusplus 92 | } 93 | #endif 94 | #endif /* End of #ifdef __cplusplus */ 95 | 96 | -------------------------------------------------------------------------------- /component/isp/firmware/src/arch/hi3518e/isp_dcfinfo.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2014-2019, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_dcfinfo.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2014/06/17 10 | Description : 11 | History : 12 | 1.Date : 2014/06/17 13 | Author : z00183560 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __ISP_DCFINFO_H__ 18 | #define __ISP_DCFINFO_H__ 19 | 20 | #include "hi_comm_isp.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | typedef struct hiISP_DCFINFO_CTRL_S 29 | { 30 | HI_BOOL bSupportDCF; 31 | HI_U32 u32DCFInfoPhyaddr; 32 | ISP_DCF_INFO_S* pstIspDCF; 33 | } ISP_DCFINFO_CTRL_S; 34 | 35 | HI_S32 ISP_DCFInfoInit(ISP_DEV IspDev,ISP_DCFINFO_CTRL_S* pstDcfInfoCtrl); 36 | 37 | HI_S32 ISP_DCFInfoExit(ISP_DEV IspDev,ISP_DCFINFO_CTRL_S* pstDcfInfoCtrl); 38 | 39 | 40 | #ifdef __cplusplus 41 | #if __cplusplus 42 | } 43 | #endif 44 | #endif /* End of #ifdef __cplusplus */ 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /component/isp/firmware/src/arch/hi3518e/isp_regcfg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/src/arch/hi3518e/isp_regcfg.c -------------------------------------------------------------------------------- /component/isp/firmware/src/arch/hi3518e/isp_regcfg.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_regcfg.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/05/07 10 | Description : 11 | History : 12 | 1.Date : 2013/05/07 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __ISP_REGCFG_H__ 18 | #define __ISP_REGCFG_H__ 19 | 20 | #include "hi_comm_isp.h" 21 | #include "mpi_isp.h" 22 | #include "isp_sensor.h" 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C"{ 27 | #endif 28 | #endif /* End of #ifdef __cplusplus */ 29 | 30 | HI_S32 ISP_RegCfgInit(ISP_DEV IspDev, HI_VOID **ppCfg); 31 | HI_S32 ISP_RegCfgSet(ISP_DEV IspDev); 32 | HI_S32 ISP_SyncCfgSet(ISP_DEV IspDev); 33 | 34 | #ifdef __cplusplus 35 | #if __cplusplus 36 | } 37 | #endif 38 | #endif /* End of #ifdef __cplusplus */ 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /component/isp/firmware/src/arch/hi3518e/isp_sensor.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_sensor.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/05/06 10 | Description : 11 | History : 12 | 1.Date : 2013/05/06 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __ISP_SENSOR_H__ 18 | #define __ISP_SENSOR_H__ 19 | 20 | #include "hi_comm_sns.h" 21 | #include "hi_comm_isp.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C"{ 26 | #endif 27 | #endif /* End of #ifdef __cplusplus */ 28 | 29 | HI_S32 ISP_SensorRegCallBack(ISP_DEV IspDev, SENSOR_ID SensorId, 30 | ISP_SENSOR_REGISTER_S *pstRegister); 31 | 32 | HI_S32 ISP_SensorUpdateAll(ISP_DEV IspDev); 33 | 34 | HI_S32 ISP_SensorGetId(ISP_DEV IspDev, SENSOR_ID *pSensorId); 35 | HI_S32 ISP_SensorGetBlc(ISP_DEV IspDev, ISP_CMOS_BLACK_LEVEL_S **ppstSnsBlackLevel); 36 | HI_S32 ISP_SensorGetDefault(ISP_DEV IspDev, ISP_CMOS_DEFAULT_S **ppstSnsDft); 37 | HI_S32 ISP_SensorGetSnsReg(ISP_DEV IspDev, ISP_SNS_REGS_INFO_S **ppstSnsRegInfo); 38 | HI_S32 ISP_SensorGetMaxResolution(ISP_DEV IspDev, ISP_CMOS_SENSOR_MAX_RESOLUTION_S ** ppstSnsMaxResolution); 39 | 40 | HI_S32 ISP_SensorInit(ISP_DEV IspDev); 41 | HI_S32 ISP_SensorExit(ISP_DEV IspDev); 42 | HI_S32 ISP_SensorUpdateBlc(ISP_DEV IspDev); 43 | HI_S32 ISP_SensorUpdateDefault(ISP_DEV IspDev); 44 | HI_S32 ISP_SensorSetWDRMode(ISP_DEV IspDev, HI_U8 u8Mode); 45 | HI_S32 ISP_SensorSetResolutionMode(ISP_DEV IspDev, HI_U32 u32Mode); 46 | HI_S32 ISP_SensorSetPixelDetect(ISP_DEV IspDev, HI_BOOL bEnable); 47 | HI_S32 ISP_SensorUpdateSnsReg(ISP_DEV IspDev); 48 | HI_S32 ISP_SensorSetImageMode(ISP_DEV IspDev, ISP_CMOS_SENSOR_IMAGE_MODE_S *pstSnsImageMode); 49 | 50 | #ifdef __cplusplus 51 | #if __cplusplus 52 | } 53 | #endif 54 | #endif /* End of #ifdef __cplusplus */ 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /component/isp/firmware/src/arch/hi3518e/isp_statistics.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_statistics.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/05/07 10 | Description : 11 | History : 12 | 1.Date : 2013/05/07 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __ISP_STATISTICS_H__ 18 | #define __ISP_STATISTICS_H__ 19 | 20 | #include "hi_comm_isp.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | /* init the statistics buf */ 29 | HI_S32 ISP_StatisticsInit(ISP_DEV IspDev); 30 | /* exit the statistics buf */ 31 | HI_S32 ISP_StatisticsExit(ISP_DEV IspDev); 32 | /* get a statistics buf from kernel */ 33 | HI_S32 ISP_StatisticsGetBuf(ISP_DEV IspDev, HI_VOID **ppStat); 34 | /* release a statistics buf to kernel */ 35 | HI_S32 ISP_StatisticsPutBuf(ISP_DEV IspDev); 36 | 37 | 38 | #ifdef __cplusplus 39 | #if __cplusplus 40 | } 41 | #endif 42 | #endif /* End of #ifdef __cplusplus */ 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /component/isp/firmware/src/main/isp_debug.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_debug.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/01/16 10 | Description : 11 | History : 12 | 1.Date : 2013/01/16 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | 18 | #ifndef __ISP_DEBUG_H__ 19 | #define __ISP_DEBUG_H__ 20 | 21 | #include 22 | #include "hi_type.h" 23 | #include "hi_errno.h" 24 | #include "hi_comm_isp.h" 25 | 26 | #ifdef __cplusplus 27 | #if __cplusplus 28 | extern "C"{ 29 | #endif 30 | #endif /* End of #ifdef __cplusplus */ 31 | 32 | typedef struct hiISP_DBG_CTRL_S 33 | { 34 | HI_BOOL bDebugEn; 35 | HI_U32 u32PhyAddr; 36 | HI_U32 u32Depth; 37 | 38 | HI_U32 u32Size; 39 | ISP_DBG_ATTR_S *pstDbgAttr; 40 | ISP_DBG_STATUS_S *pstDbgStatus; 41 | } ISP_DBG_CTRL_S; 42 | 43 | HI_S32 ISP_DbgSet(const ISP_DEBUG_INFO_S *pstDbgInfo); 44 | HI_S32 ISP_DbgGet(ISP_DEBUG_INFO_S *pstDbgInfo); 45 | HI_S32 ISP_DbgRunBgn(ISP_DBG_CTRL_S *pstDbg, HI_U32 u32FrmCnt); 46 | HI_S32 ISP_DbgRunEnd(ISP_DBG_CTRL_S *pstDbg, HI_U32 u32FrmCnt); 47 | 48 | #ifdef __cplusplus 49 | #if __cplusplus 50 | } 51 | #endif 52 | #endif /* End of #ifdef __cplusplus */ 53 | 54 | #endif /* End of #ifndef __HISI_ISP_DEBUG_H__ */ 55 | 56 | 57 | -------------------------------------------------------------------------------- /component/isp/firmware/src/main/isp_defaults.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_defaults.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/01/16 10 | Description : 11 | History : 12 | 1.Date : 2013/01/16 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | 18 | #ifndef __ISP_DEFAULTS_H_ 19 | #define __ISP_DEFAULTS_H_ 20 | 21 | #include "isp_main.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C"{ 26 | #endif 27 | #endif /* End of #ifdef __cplusplus */ 28 | 29 | 30 | /* ext register default value */ 31 | HI_VOID ISP_ExtRegsDefault(HI_VOID); 32 | 33 | /* initialize ext register */ 34 | HI_VOID ISP_ExtRegsInitialize(ISP_DEV IspDev); 35 | 36 | /* isp register default value */ 37 | HI_VOID ISP_RegsDefault(HI_VOID); 38 | 39 | /* initialize isp register */ 40 | HI_VOID ISP_RegsInitialize(ISP_DEV IspDev); 41 | 42 | /* This function initialises an instance of ISP_CTX_S */ 43 | HI_VOID ISP_GlobalInitialize(ISP_DEV IspDev); 44 | 45 | 46 | #ifdef __cplusplus 47 | #if __cplusplus 48 | } 49 | #endif 50 | #endif /* End of #ifdef __cplusplus */ 51 | 52 | #endif /* __ISP_DEFAULTS_H_ */ 53 | 54 | -------------------------------------------------------------------------------- /component/isp/firmware/src/main/isp_main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/src/main/isp_main.c -------------------------------------------------------------------------------- /component/isp/firmware/src/main/isp_math_utils.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_math_utils.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/01/16 10 | Description : 11 | History : 12 | 1.Date : 2013/01/16 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | 18 | #ifndef __ISP_MATH_UTILS_H__ 19 | #define __ISP_MATH_UTILS_H__ 20 | 21 | #include "hi_type.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C"{ 26 | #endif 27 | #endif /* End of #ifdef __cplusplus */ 28 | 29 | HI_U8 sqrt16(HI_U32 arg); 30 | HI_U8 log16(HI_U32 arg); 31 | HI_U16 Sqrt32(HI_U32 u32Arg); 32 | HI_U32 math_log2(const HI_U32 val, const HI_U8 out_precision, const HI_U8 shift_out); 33 | HI_U32 log2_int_to_fixed(const HI_U32 val, const HI_U8 out_precision, const HI_U8 shift_out); 34 | HI_U32 math_exp2(HI_U32 val, const unsigned char shift_in, const unsigned char shift_out); 35 | HI_S32 solving_lin_equation_a(HI_S32 y1, HI_S32 y2, HI_S32 x1, HI_S32 x2, HI_S16 a_fraction_size); 36 | HI_S32 solving_lin_equation_b(HI_S32 y1, HI_S32 a, HI_S32 x1, HI_S16 a_fraction_size); 37 | HI_U32 div_fixed(HI_U32 a, HI_U32 b, const HI_U16 fraction_size); 38 | HI_S32 solving_nth_root_045(HI_S32 x, const HI_U16 fraction_size); 39 | HI_U32 transition(HI_U32 *lut_in, HI_U32 *lut_out, HI_U32 lut_size, HI_U32 value, HI_U32 value_fraction_size); 40 | 41 | #ifdef __cplusplus 42 | #if __cplusplus 43 | } 44 | #endif 45 | #endif /* End of #ifdef __cplusplus */ 46 | 47 | #endif // __ISP_MATH_UTILS_H__ 48 | 49 | -------------------------------------------------------------------------------- /component/isp/firmware/src/main/isp_proc.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_proc.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/08/06 10 | Description : 11 | History : 12 | 1.Date : 2013/08/06 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __ISP_PROC_H__ 18 | #define __ISP_PROC_H__ 19 | 20 | #include "hi_common.h" 21 | #include "isp_main.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C"{ 26 | #endif 27 | #endif /* End of #ifdef __cplusplus */ 28 | 29 | HI_S32 ISP_ProcInit(ISP_DEV IspDev); 30 | HI_S32 ISP_ProcWrite(const ISP_ALG_NODE_S *astAlgs, ISP_DEV IspDev); 31 | HI_S32 ISP_ProcExit(ISP_DEV IspDev); 32 | 33 | #define ISP_PROC_PRINTF(proc, len, fmt...) \ 34 | do{ \ 35 | snprintf((proc)->pcProcBuff, (proc)->u32BuffLen, ##fmt); \ 36 | (proc)->u32WriteLen = strlen((proc)->pcProcBuff); \ 37 | (proc)->pcProcBuff = &((proc)->pcProcBuff[(proc)->u32WriteLen]);\ 38 | (proc)->u32BuffLen -= (proc)->u32WriteLen; \ 39 | len += (proc)->u32WriteLen; \ 40 | }while(0) 41 | 42 | #ifdef __cplusplus 43 | #if __cplusplus 44 | } 45 | #endif 46 | #endif /* End of #ifdef __cplusplus */ 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /component/isp/firmware/src/main/mpi_isp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/src/main/mpi_isp.c -------------------------------------------------------------------------------- /component/isp/firmware/vreg/arch/hi3518e/isp_config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/vreg/arch/hi3518e/isp_config.h -------------------------------------------------------------------------------- /component/isp/firmware/vreg/arch/hi3518e/isp_config_ex.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/vreg/arch/hi3518e/isp_config_ex.h -------------------------------------------------------------------------------- /component/isp/firmware/vreg/arch/hi3518e/isp_ext_config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/firmware/vreg/arch/hi3518e/isp_ext_config.h -------------------------------------------------------------------------------- /component/isp/firmware/vreg/arch/hi3518e/isp_gamma_fe0_mem_config.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_gamma_fe0_mem_config.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/01/16 10 | Description : 11 | History : 12 | 1.Date : 2013/01/16 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | 18 | #ifndef __ISP_GAMMA_FE0_MEM_CONFIG_H__ 19 | #define __ISP_GAMMA_FE0_MEM_CONFIG_H__ 20 | 21 | #include "hi_vreg.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C"{ 26 | #endif 27 | #endif /* End of #ifdef __cplusplus */ 28 | 29 | // ------------------------------------------------------------------------------ // 30 | // Instance 'gamma_fe0_mem' of module 'gamma_fe0_mem' 31 | // ------------------------------------------------------------------------------ // 32 | 33 | #define HI_GAMMA_FE0_MEM_BASE_ADDR (0x3800) 34 | #define HI_GAMMA_FE0_MEM_SIZE (0x100) 35 | 36 | // ------------------------------------------------------------------------------ // 37 | // Group: Array 38 | // ------------------------------------------------------------------------------ // 39 | 40 | // ------------------------------------------------------------------------------ // 41 | // Register: hi_gamma_fe0_mem_array_data 42 | // ------------------------------------------------------------------------------ // 43 | // Please see other documentation for a description of the contents of this array. 44 | // ------------------------------------------------------------------------------ // 45 | 46 | #define HI_GAMMA_FE0_MEM_ARRAY_DATA_DEFAULT (0x0) 47 | #define HI_GAMMA_FE0_MEM_ARRAY_DATA_DATASIZE (32) 48 | 49 | // args: index (0-33), data (32-bit) 50 | static __inline void hi_gamma_fe0_mem_array_data_write(HI_U32 index, HI_U32 data) { 51 | HI_U32 addr = HI_GAMMA_FE0_MEM_BASE_ADDR + (index << 2); 52 | IOWR_32DIRECT(addr, data & 0xFFFFFFFF); 53 | } 54 | static __inline HI_U32 hi_gamma_fe0_mem_array_data_read(HI_U32 index) { 55 | HI_U32 addr = HI_GAMMA_FE0_MEM_BASE_ADDR + (index << 2); 56 | return (HI_U32) IORD_32DIRECT(addr); 57 | } 58 | 59 | // ------------------------------------------------------------------------------ // 60 | 61 | #ifdef __cplusplus 62 | #if __cplusplus 63 | } 64 | #endif 65 | #endif /* End of #ifdef __cplusplus */ 66 | 67 | #endif /* __ISP_GAMMA_FE_MEM_CONFIG_H__ */ 68 | 69 | -------------------------------------------------------------------------------- /component/isp/firmware/vreg/arch/hi3518e/isp_gamma_fe1_mem_config.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_gamma_fe1_mem_config.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/01/16 10 | Description : 11 | History : 12 | 1.Date : 2013/01/16 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | 18 | #ifndef __ISP_GAMMA_FE1_MEM_CONFIG_H__ 19 | #define __ISP_GAMMA_FE1_MEM_CONFIG_H__ 20 | 21 | #include "hi_vreg.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C"{ 26 | #endif 27 | #endif /* End of #ifdef __cplusplus */ 28 | 29 | // ------------------------------------------------------------------------------ // 30 | // Instance 'gamma_fe1_mem' of module 'gamma_fe1_mem' 31 | // ------------------------------------------------------------------------------ // 32 | 33 | #define HI_GAMMA_FE1_MEM_BASE_ADDR (0x2000) 34 | #define HI_GAMMA_FE1_MEM_SIZE (0x400) 35 | 36 | // ------------------------------------------------------------------------------ // 37 | // Group: Array 38 | // ------------------------------------------------------------------------------ // 39 | 40 | // ------------------------------------------------------------------------------ // 41 | // Register: hi_gamma_fe1_mem_array_data 42 | // ------------------------------------------------------------------------------ // 43 | // Please see other documentation for a description of the contents of this array. 44 | // ------------------------------------------------------------------------------ // 45 | 46 | #define HI_GAMMA_FE1_MEM_ARRAY_DATA_DEFAULT (0x0) 47 | #define HI_GAMMA_FE1_MEM_ARRAY_DATA_DATASIZE (32) 48 | 49 | // args: index (0-255), data (32-bit) 50 | static __inline void hi_gamma_fe1_mem_array_data_write(HI_U32 index, HI_U32 data) { 51 | HI_U32 addr = HI_GAMMA_FE1_MEM_BASE_ADDR + (index << 2); 52 | IOWR_32DIRECT(addr, data & 0xFFFFFFFF); 53 | } 54 | static __inline HI_U32 hi_gamma_fe1_mem_array_data_read(HI_U32 index) { 55 | HI_U32 addr = HI_GAMMA_FE1_MEM_BASE_ADDR + (index << 2); 56 | return (HI_U32) IORD_32DIRECT(addr); 57 | } 58 | 59 | // ------------------------------------------------------------------------------ // 60 | 61 | #ifdef __cplusplus 62 | #if __cplusplus 63 | } 64 | #endif 65 | #endif /* End of #ifdef __cplusplus */ 66 | 67 | #endif /* __ISP_GAMMA_FE_MEM_CONFIG_H__ */ 68 | 69 | -------------------------------------------------------------------------------- /component/isp/firmware/vreg/arch/hi3518e/isp_gamma_rgb_mem_config.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_gamma_rgb_mem_config.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/01/16 10 | Description : 11 | History : 12 | 1.Date : 2013/01/16 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | 18 | #ifndef __ISP_GAMMA_RGB_MEM_CONFIG_H__ 19 | #define __ISP_GAMMA_RGB_MEM_CONFIG_H__ 20 | 21 | #include "hi_vreg.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C"{ 26 | #endif 27 | #endif /* End of #ifdef __cplusplus */ 28 | 29 | // ------------------------------------------------------------------------------ // 30 | // Instance 'gamma_rgb_mem' of module 'gamma_rgb_mem' 31 | // ------------------------------------------------------------------------------ // 32 | 33 | #define HI_GAMMA_RGB_MEM_BASE_ADDR (0x2800) 34 | #define HI_GAMMA_RGB_MEM_SIZE (0x400) 35 | 36 | // ------------------------------------------------------------------------------ // 37 | // Group: Array 38 | // ------------------------------------------------------------------------------ // 39 | 40 | // ------------------------------------------------------------------------------ // 41 | // Register: hi_gamma_rgb_mem_array_data 42 | // ------------------------------------------------------------------------------ // 43 | // Please see other documentation for a description of the contents of this array. 44 | // ------------------------------------------------------------------------------ // 45 | 46 | #define HI_GAMMA_RGB_MEM_ARRAY_DATA_DEFAULT (0x0) 47 | #define HI_GAMMA_RGB_MEM_ARRAY_DATA_DATASIZE (32) 48 | 49 | // args: index (0-256), data (32-bit) 50 | static __inline void hi_gamma_rgb_mem_array_data_write(HI_U32 index, HI_U32 data) { 51 | HI_U32 addr = HI_GAMMA_RGB_MEM_BASE_ADDR + (index << 2); 52 | IOWR_32DIRECT(addr, data & 0xffffffff); 53 | } 54 | 55 | static __inline HI_U32 hi_gamma_rgb_mem_array_data_read(HI_U32 index) { 56 | HI_U32 addr = HI_GAMMA_RGB_MEM_BASE_ADDR + (index << 2); 57 | return (HI_U32) IORD_32DIRECT(addr); 58 | } 59 | 60 | // ------------------------------------------------------------------------------ // 61 | 62 | #ifdef __cplusplus 63 | #if __cplusplus 64 | } 65 | #endif 66 | #endif /* End of #ifdef __cplusplus */ 67 | 68 | #endif /* __ISP_GAMMA_RGB_MEM_CONFIG_H__ */ 69 | 70 | -------------------------------------------------------------------------------- /component/isp/firmware/vreg/arch/hi3518e/isp_histogram_mem_config.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_histogram_mem_config.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/01/16 10 | Description : 11 | History : 12 | 1.Date : 2013/01/16 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | 18 | #ifndef __ISP_HISTOGRAM_MEM_CONFIG_H__ 19 | #define __ISP_HISTOGRAM_MEM_CONFIG_H__ 20 | 21 | #include "hi_vreg.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C"{ 26 | #endif 27 | #endif /* End of #ifdef __cplusplus */ 28 | 29 | // ------------------------------------------------------------------------------ // 30 | // Instance 'histogram_mem' of module 'histogram_mem' 31 | // ------------------------------------------------------------------------------ // 32 | 33 | #define HI_HISTOGRAM_MEM_BASE_ADDR (0x3C00) 34 | #define HI_HISTOGRAM_MEM_SIZE (0x400) 35 | 36 | // ------------------------------------------------------------------------------ // 37 | // Group: Array 38 | // ------------------------------------------------------------------------------ // 39 | 40 | // ------------------------------------------------------------------------------ // 41 | // Register: hi_histogram_mem_array_data 42 | // ------------------------------------------------------------------------------ // 43 | // Please see other documentation for a description of the contents of this array. 44 | // ------------------------------------------------------------------------------ // 45 | 46 | #define HI_HISTOGRAM_MEM_ARRAY_DATA_DEFAULT (0x0) 47 | #define HI_HISTOGRAM_MEM_ARRAY_DATA_DATASIZE (32) 48 | 49 | // args: index (0-255), data (32-bit) 50 | static __inline void hi_histogram_mem_array_data_write(HI_U32 index, HI_U32 data) { 51 | HI_U32 addr = HI_HISTOGRAM_MEM_BASE_ADDR + (index << 2); 52 | IOWR_32DIRECT(addr, data & 0xffffffff); 53 | } 54 | 55 | static __inline HI_U32 hi_histogram_mem_array_data_read(HI_U16 index) { 56 | HI_U32 addr = HI_HISTOGRAM_MEM_BASE_ADDR + (index << 2); 57 | return IORD_32DIRECT(addr); 58 | } 59 | 60 | 61 | // ------------------------------------------------------------------------------ // 62 | 63 | #ifdef __cplusplus 64 | #if __cplusplus 65 | } 66 | #endif 67 | #endif /* End of #ifdef __cplusplus */ 68 | 69 | #endif /* __ISP_HISTOGRAM_MEM_CONFIG_H__ */ 70 | 71 | -------------------------------------------------------------------------------- /component/isp/firmware/vreg/arch/hi3518e/isp_sharpen_mem_config.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_sharpen_mem_config.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/01/16 10 | Description : 11 | History : 12 | 1.Date : 2013/01/16 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | 18 | #ifndef __ISP_SHARPEN_MEM_CONFIG_H__ 19 | #define __ISP_SHARPEN_MEM_CONFIG_H__ 20 | 21 | #include "hi_vreg.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C"{ 26 | #endif 27 | #endif /* End of #ifdef __cplusplus */ 28 | 29 | // ------------------------------------------------------------------------------ // 30 | // Instance 'sharpen_mem' of module 'sharpen_mem' 31 | // ------------------------------------------------------------------------------ // 32 | 33 | #define HI_SHARPEN_MEM_BASE_ADDR (0x3000) 34 | #define HI_SHARPEN_MEM_SIZE (0x800) 35 | 36 | // ------------------------------------------------------------------------------ // 37 | // Group: Array 38 | // ------------------------------------------------------------------------------ // 39 | 40 | // ------------------------------------------------------------------------------ // 41 | // Register: hi_sharpen_mem_array_data 42 | // ------------------------------------------------------------------------------ // 43 | // Please see other documentation for a description of the contents of this array. 44 | // ------------------------------------------------------------------------------ // 45 | 46 | #define HI_SHARPEN_MEM_ARRAY_DATA_DEFAULT (0x0) 47 | #define HI_SHARPEN_MEM_ARRAY_DATA_DATASIZE (32) 48 | 49 | #define SHARP_LUT_SIZE 256 50 | 51 | 52 | // args: index (0-511), data (32-bit) 53 | static __inline void hi_sharpen_mem_array_data_write(HI_U32 index, HI_U32 data) { 54 | HI_U32 addr = HI_SHARPEN_MEM_BASE_ADDR + (index << 2); 55 | IOWR_32DIRECT(addr, data & 0xFFFFFFFF); 56 | } 57 | static __inline HI_U16 hi_sharpen_mem_array_data_read(HI_U32 index) { 58 | HI_U32 addr = HI_SHARPEN_MEM_BASE_ADDR + (index << 2); 59 | return (HI_U16) IORD_32DIRECT(addr); 60 | } 61 | 62 | // ------------------------------------------------------------------------------ // 63 | #ifdef __cplusplus 64 | #if __cplusplus 65 | } 66 | #endif 67 | #endif /* End of #ifdef __cplusplus */ 68 | 69 | #endif /* __ISP_SHARPEN_MEM_CONFIG_H__ */ 70 | 71 | -------------------------------------------------------------------------------- /component/isp/firmware/vreg/hi_drv_vreg.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : hi_drv_vreg.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/01/09 10 | Description : 11 | History : 12 | 1.Date : 2013/01/09 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __HI_DRV_VREG_H__ 18 | #define __HI_DRV_VREG_H__ 19 | 20 | #include "hi_comm_3a.h" 21 | #ifdef __KERNEL__ 22 | #include 23 | #endif 24 | 25 | #ifdef __cplusplus 26 | #if __cplusplus 27 | extern "C"{ 28 | #endif 29 | #endif /* End of #ifdef __cplusplus */ 30 | 31 | #define IOC_TYPE_ISP 'I' 32 | 33 | typedef enum hiIOC_NR_VREG_E 34 | { 35 | IOC_NR_VREG_INIT = 20, 36 | IOC_NR_VREG_EXIT, 37 | IOC_NR_VREG_GETADDR, 38 | 39 | IOC_NR_VREG_BUTT, 40 | } IOC_NR_VREG_E; 41 | 42 | typedef struct hiVREG_ARGS_S 43 | { 44 | HI_U32 u32Size; 45 | HI_U32 u32BaseAddr; 46 | HI_U32 u32PhyAddr; 47 | } VREG_ARGS_S; 48 | 49 | #define VREG_DRV_INIT _IOW(IOC_TYPE_ISP, IOC_NR_VREG_INIT, VREG_ARGS_S) 50 | #define VREG_DRV_EXIT _IOW(IOC_TYPE_ISP, IOC_NR_VREG_EXIT, VREG_ARGS_S) 51 | #define VREG_DRV_GETADDR _IOWR(IOC_TYPE_ISP, IOC_NR_VREG_GETADDR, VREG_ARGS_S) 52 | #ifdef __KERNEL__ 53 | long VREG_DRV_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 54 | HI_VOID VREG_DRV_ReleaseAll(HI_VOID); 55 | #endif 56 | 57 | #ifdef __cplusplus 58 | #if __cplusplus 59 | } 60 | #endif 61 | #endif /* End of #ifdef __cplusplus */ 62 | 63 | #endif /* End of #ifndef __ISP_VREG_H__ */ 64 | 65 | -------------------------------------------------------------------------------- /component/isp/include/hi_comm_isp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/include/hi_comm_isp.h -------------------------------------------------------------------------------- /component/isp/include/hi_isp_debug.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : hi_isp_debug.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2010/08/30 10 | Description : 11 | History : 12 | 1.Date : 2010/08/30 13 | Author : x00100808 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | 18 | #ifndef __HI_ISP_DEBUG_H__ 19 | #define __HI_ISP_DEBUG_H__ 20 | 21 | #include "hi_debug.h" 22 | 23 | #if 0 24 | #define PRINT_DEBUG_INFO 25 | #endif 26 | 27 | #if 0 28 | #define PRINT_INFO_2FILE 29 | #endif 30 | 31 | #define ISP_TRACE(level, fmt...)\ 32 | do{ \ 33 | HI_TRACE(level,HI_ID_ISP,"[Func]:%s [Line]:%d [Info]:",__FUNCTION__, __LINE__);\ 34 | HI_TRACE(level,HI_ID_ISP,##fmt);\ 35 | }while(0) 36 | 37 | /* To avoid divide-0 exception in code. */ 38 | #define DIV_0_TO_1(a) ( (0 == (a)) ? 1 : (a) ) 39 | 40 | #endif /* __HI_ISP_DEBUG_H__ */ 41 | 42 | -------------------------------------------------------------------------------- /component/isp/include/hi_sns_ctrl.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : hi_sns_ctrl.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2011/01/10 10 | Description : 11 | History : 12 | 1.Date : 2011/01/10 13 | Author : x00100808 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | 18 | #ifndef __HI_SNS_CTRL_H__ 19 | #define __HI_SNS_CTRL_H__ 20 | 21 | #include "hi_type.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C"{ 26 | #endif 27 | #endif /* End of #ifdef __cplusplus */ 28 | 29 | void sensor_init(); 30 | void sensor_exit(); 31 | 32 | void sensor_prog(int *rom); 33 | int sensor_write_register(int addr, int data); 34 | int sensor_read_register(int addr); 35 | int sensor_write_register_bit(int addr, int data, int mask); 36 | int sensor_register_callback(void); 37 | int sensor_unregister_callback(void); 38 | int sensor_set_inifile_path(const HI_CHAR *pcPath); 39 | 40 | #ifdef __cplusplus 41 | #if __cplusplus 42 | } 43 | #endif 44 | #endif /* End of #ifdef __cplusplus */ 45 | 46 | #endif /* __HI_SNS_CTRL_H__ */ 47 | 48 | -------------------------------------------------------------------------------- /component/isp/iniparser/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # isp firmware Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | LIBPATH = $(ISP_PATH)/lib 12 | OBJPATH = ./obj 13 | 14 | INI_INC := $(ISP_PATH)/iniparser 15 | 3A_PATH := $(ISP_PATH)/include 16 | 17 | #******* List all the release file *********** 18 | REL_FILE := $(shell find $(ISP_PATH)/iniparser -name "*.h") 19 | 20 | ifeq ($(MPP_BUILD), y) 21 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 22 | else 23 | EXT_PATH := $(SDK_PATH)/mpp/extdrv 24 | endif 25 | 26 | BUS_DIR := $(EXT_PATH)/pwm 27 | 28 | ARFLAGS = rcv 29 | CFLAGS = -Wall -fPIC 30 | 31 | ifeq ($(HIGDB),HI_GDB) 32 | CFLAGS += -g 33 | endif 34 | 35 | ifeq ($(CONFIG_JPEGEDCF), y) 36 | CFLAGS += -D ENABLE_JPEGEDCF 37 | endif 38 | 39 | CFLAGS += -O2 40 | CFLAGS += $(LIBS_CFLAGS) 41 | DFLAGS := -DEXT_REG 42 | 43 | ISP_INC := $(ISP_PATH)/include 44 | 3A_INC := $(3A_PATH)/include 45 | 46 | INC := -I$(REL_INC) -I$(ISP_INC) -I$(BUS_DIR) -I$(INI_INC) -I$(3A_INC) 47 | #-I$(SRC_INC) -I$(VREG_INC) -I$(VREG_INC)/arch/$(HIARCH) 48 | 49 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 50 | 51 | $(OBJPATH)/%.o: ./%.c 52 | @(echo "compiling $< ...") 53 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 54 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 55 | @($(COMPILE) -o $@ -c $< $(INC)) 56 | 57 | SRCS = $(wildcard ./*.c) 58 | OBJS = $(SRCS:%.c=%.o) 59 | OBJS := $(OBJS:./%=obj/%) 60 | 61 | LIB_A := $(LIBPATH)/lib_iniparser.a 62 | LIB_S := $(LIBPATH)/lib_iniparser.so 63 | 64 | define maco_cp 65 | $(foreach file,$(1), $(shell mkdir -p "$(2)";cp -f $(file) "$(2)/$(notdir $(file))")) 66 | endef 67 | 68 | all:$(OBJS) 69 | @($(AR) $(ARFLAGS) $(LIB_A) $(OBJS)) 70 | @($(CC) $(LIBS_LD_CFLAGS) -shared -fPIC -o $(LIB_S) $(OBJS)) 71 | @echo "---- Copy the head file to the release include directory" 72 | @$(call maco_cp,$(REL_FILE),$(REL_INC)) 73 | 74 | clean: 75 | @$(RM) -rf $(LIB_A) $(LIB_S) $(OBJS) 76 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 77 | 78 | show: 79 | @echo "$(REL_FILE)" 80 | -------------------------------------------------------------------------------- /component/isp/iniparser/iniparser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/iniparser/iniparser.c -------------------------------------------------------------------------------- /component/isp/iniparser/iniparser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/iniparser/iniparser.h -------------------------------------------------------------------------------- /component/isp/sensor/Makefile: -------------------------------------------------------------------------------- 1 | 2 | .PHONY:clean all rel 3 | all: 4 | @echo -e "\e[0;32;1m--Compiling 'sensor'... Configs as follow:\e[0;36;1m" 5 | @echo ---- CROSS=$(CROSS) 6 | @echo ---- HIARCH=$(HIARCH), HICHIP=$(HICHIP), CVER=$(CVER), HIDBG=$(HIDBG) 7 | @echo ---- SDK_PATH=$(SDK_PATH) , PARAM_FILE=$(PARAM_FILE) 8 | @echo ---- LINUX_ROOT=$(LINUX_ROOT) 9 | @echo -e "\e[0m" 10 | @for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; \ 11 | do cd `dirname $$x`; if [ $$? ]; then make || exit 1; cd ../; fi; done 12 | 13 | clean: 14 | @for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; \ 15 | do cd `dirname $$x`; if [ $$? ]; then make clean; cd ../; fi; done 16 | 17 | -------------------------------------------------------------------------------- /component/isp/sensor/aptina_9m034/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # sensor lib Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 12 | 3A_PATH := $(ISP_PATH)/3a 13 | LIBPATH = $(ISP_PATH)/lib 14 | OBJPATH = ./obj 15 | 16 | ifeq ($(CONFIG_GPIO_I2C),y) 17 | HI_GPIO_I2C:=HI_GPIO_I2C 18 | else 19 | HI_GPIO_I2C:=HI_GPIO_XXX 20 | endif 21 | 22 | ARFLAGS = rcv 23 | ARFLAGS_SO = $(LIBS_LD_CFLAGS) 24 | ARFLAGS_SO += -shared -fPIC -o 25 | CFLAGS = -Wall -fPIC -D$(HI_FPGA) -D$(HI_GPIO_I2C) 26 | CFLAGS += -O2 27 | CFLAGS += $(LIBS_CFLAGS) 28 | 29 | ifeq ($(ISP_INI_CONFIG), y) 30 | CFLAGS += -D INIFILE_CONFIG_MODE 31 | endif 32 | 33 | ifeq ($(HIGDB),HI_GDB) 34 | CFLAGS += -g 35 | endif 36 | 37 | ifeq ($(CONFIG_JPEGEDCF), y) 38 | CFLAGS += -D ENABLE_JPEGEDCF 39 | endif 40 | BUS_DIR := $(EXT_PATH)/ssp-sony/ 41 | 42 | ISP_INC := $(ISP_PATH)/include 43 | 3A_INC := $(3A_PATH)/include 44 | INC := -I$(BUS_DIR) -I$(REL_INC) -I$(ISP_INC) -I$(3A_INC) 45 | 46 | ifeq ($(CONFIG_GPIO_I2C), y) 47 | INC += -I$(EXT_PATH)/gpio-i2c-ex 48 | INC += -I$(EXT_PATH)/gpio-i2c 49 | else 50 | INC += -I$(EXT_PATH)/i2c 51 | INC += -I$(EXT_PATH)/hi_i2c 52 | endif 53 | 54 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 55 | 56 | $(OBJPATH)/%.o: ./%.c 57 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 58 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 59 | @$(COMPILE) -o $@ -c $< $(INC) 60 | 61 | SRCS = $(wildcard ./*.c) 62 | OBJS = $(SRCS:%.c=%.o) 63 | OBJS := $(OBJS:./%=obj/%) 64 | 65 | TARGETLIB := $(LIBPATH)/libsns_9m034.a 66 | TARGETLIB_SO := $(LIBPATH)/libsns_9m034.so 67 | 68 | all:$(TARGETLIB) 69 | $(TARGETLIB):$(OBJS) 70 | @($(AR) $(ARFLAGS) $(TARGETLIB) $(OBJS)) 71 | @($(CC) $(ARFLAGS_SO) $(TARGETLIB_SO) $(OBJS)) 72 | 73 | clean: 74 | @$(RM) -rf $(TARGETLIB) $(OBJS) 75 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 76 | -------------------------------------------------------------------------------- /component/isp/sensor/aptina_ar0230/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # sensor lib Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 12 | 3A_PATH := $(ISP_PATH)/3a 13 | LIBPATH = $(ISP_PATH)/lib 14 | OBJPATH = ./obj 15 | 16 | ifeq ($(CONFIG_GPIO_I2C),y) 17 | HI_GPIO_I2C:=HI_GPIO_I2C 18 | else 19 | HI_GPIO_I2C:=HI_GPIO_XXX 20 | endif 21 | 22 | ARFLAGS = rcv 23 | ARFLAGS_SO = $(LIBS_LD_CFLAGS) 24 | ARFLAGS_SO += -shared -fPIC -o 25 | CFLAGS = -Wall -fPIC -D$(HI_FPGA) -D$(HI_GPIO_I2C) 26 | CFLAGS += -O2 27 | CFLAGS += $(LIBS_CFLAGS) 28 | 29 | ifeq ($(ISP_INI_CONFIG), y) 30 | CFLAGS += -D INIFILE_CONFIG_MODE 31 | endif 32 | 33 | ifeq ($(HIGDB),HI_GDB) 34 | CFLAGS += -g 35 | endif 36 | 37 | ifeq ($(CONFIG_JPEGEDCF), y) 38 | CFLAGS += -D ENABLE_JPEGEDCF 39 | endif 40 | BUS_DIR := $(EXT_PATH)/ssp-sony/ 41 | 42 | ISP_INC := $(ISP_PATH)/include 43 | 3A_INC := $(3A_PATH)/include 44 | INC := -I$(BUS_DIR) -I$(REL_INC) -I$(ISP_INC) -I$(3A_INC) 45 | 46 | ifeq ($(CONFIG_GPIO_I2C), y) 47 | INC += -I$(EXT_PATH)/gpio-i2c-ex 48 | INC += -I$(EXT_PATH)/gpio-i2c 49 | else 50 | INC += -I$(EXT_PATH)/i2c 51 | INC += -I$(EXT_PATH)/hi_i2c 52 | endif 53 | 54 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 55 | 56 | $(OBJPATH)/%.o: ./%.c 57 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 58 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 59 | @$(COMPILE) -o $@ -c $< $(INC) 60 | 61 | SRCS = $(wildcard ./*.c) 62 | OBJS = $(SRCS:%.c=%.o) 63 | OBJS := $(OBJS:./%=obj/%) 64 | 65 | TARGETLIB := $(LIBPATH)/libsns_ar0230.a 66 | TARGETLIB_SO := $(LIBPATH)/libsns_ar0230.so 67 | 68 | all:$(TARGETLIB) 69 | $(TARGETLIB):$(OBJS) 70 | @($(AR) $(ARFLAGS) $(TARGETLIB) $(OBJS)) 71 | @($(CC) $(ARFLAGS_SO) $(TARGETLIB_SO) $(OBJS)) 72 | 73 | clean: 74 | @$(RM) -rf $(TARGETLIB) $(OBJS) 75 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 76 | -------------------------------------------------------------------------------- /component/isp/sensor/ar0130/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # sensor lib Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 12 | 3A_PATH := $(ISP_PATH)/3a 13 | LIBPATH = $(ISP_PATH)/lib 14 | OBJPATH = ./obj 15 | 16 | ifeq ($(CONFIG_GPIO_I2C),y) 17 | HI_GPIO_I2C:=HI_GPIO_I2C 18 | else 19 | HI_GPIO_I2C:=HI_GPIO_XXX 20 | endif 21 | 22 | ARFLAGS = rcv 23 | ARFLAGS_SO = $(LIBS_LD_CFLAGS) 24 | ARFLAGS_SO += -shared -fPIC -o 25 | CFLAGS = -Wall -fPIC -D$(HI_FPGA) -D$(HI_GPIO_I2C) 26 | CFLAGS += -O2 27 | CFLAGS += $(LIBS_CFLAGS) 28 | 29 | ifeq ($(ISP_INI_CONFIG), y) 30 | CFLAGS += -D INIFILE_CONFIG_MODE 31 | endif 32 | 33 | ifeq ($(HIGDB),HI_GDB) 34 | CFLAGS += -g 35 | endif 36 | 37 | ifeq ($(CONFIG_JPEGEDCF), y) 38 | CFLAGS += -D ENABLE_JPEGEDCF 39 | endif 40 | BUS_DIR := $(EXT_PATH)/ssp-sony/ 41 | 42 | ISP_INC := $(ISP_PATH)/include 43 | 3A_INC := $(3A_PATH)/include 44 | INC := -I$(BUS_DIR) -I$(REL_INC) -I$(ISP_INC) -I$(3A_INC) 45 | 46 | ifeq ($(CONFIG_GPIO_I2C), y) 47 | INC += -I$(EXT_PATH)/gpio-i2c-ex 48 | INC += -I$(EXT_PATH)/gpio-i2c 49 | else 50 | INC += -I$(EXT_PATH)/i2c 51 | INC += -I$(EXT_PATH)/hi_i2c 52 | endif 53 | 54 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 55 | 56 | $(OBJPATH)/%.o: ./%.c 57 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 58 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 59 | @$(COMPILE) -o $@ -c $< $(INC) 60 | 61 | SRCS = $(wildcard ./*.c) 62 | OBJS = $(SRCS:%.c=%.o) 63 | OBJS := $(OBJS:./%=obj/%) 64 | 65 | TARGETLIB := $(LIBPATH)/libsns_ar0130.a 66 | TARGETLIB_SO := $(LIBPATH)/libsns_ar0130.so 67 | 68 | all:$(TARGETLIB) 69 | $(TARGETLIB):$(OBJS) 70 | @($(AR) $(ARFLAGS) $(TARGETLIB) $(OBJS)) 71 | @($(CC) $(ARFLAGS_SO) $(TARGETLIB_SO) $(OBJS)) 72 | 73 | clean: 74 | @$(RM) -rf $(TARGETLIB) $(OBJS) 75 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 76 | -------------------------------------------------------------------------------- /component/isp/sensor/hi_cmoscfg/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # hi_iniparser lib Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | LIBPATH = $(ISP_PATH)/lib 12 | OBJPATH = ./obj 13 | 14 | INI_INC := $(ISP_PATH)/iniparser 15 | 3A_PATH := $(ISP_PATH)/include 16 | 17 | ifeq ($(MPP_BUILD), y) 18 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 19 | else 20 | EXT_PATH := $(SDK_PATH)/mpp/extdrv 21 | endif 22 | 23 | BUS_DIR := $(EXT_PATH)/pwm 24 | 25 | ARFLAGS = rcv 26 | CFLAGS = -Wall -fPIC 27 | 28 | ifeq ($(ISP_INI_CONFIG), y) 29 | CFLAGS += -D INIFILE_CONFIG_MODE 30 | endif 31 | 32 | ifeq ($(HIGDB),HI_GDB) 33 | CFLAGS += -g 34 | endif 35 | 36 | ifeq ($(CONFIG_JPEGEDCF), y) 37 | CFLAGS += -D ENABLE_JPEGEDCF 38 | endif 39 | 40 | CFLAGS += -O2 41 | CFLAGS += $(LIBS_CFLAGS) 42 | DFLAGS := -DEXT_REG 43 | 44 | ISP_INC := $(ISP_PATH)/include 45 | 3A_INC := $(3A_PATH)/include 46 | 47 | INC := -I$(REL_INC) -I$(ISP_INC) -I$(BUS_DIR) -I$(INI_INC) -I$(3A_INC) 48 | #-I$(SRC_INC) -I$(VREG_INC) -I$(VREG_INC)/arch/$(HIARCH) 49 | 50 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 51 | 52 | $(OBJPATH)/%.o: ./%.c 53 | @(echo "compiling $< ...") 54 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 55 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 56 | @($(COMPILE) -o $@ -c $< $(INC)) 57 | 58 | SRCS = $(wildcard ./*.c) 59 | OBJS = $(SRCS:%.c=%.o) 60 | OBJS := $(OBJS:./%=obj/%) 61 | 62 | LIB_A := $(LIBPATH)/lib_cmoscfg.a 63 | LIB_S := $(LIBPATH)/lib_cmoscfg.so 64 | 65 | all:$(OBJS) 66 | @($(AR) $(ARFLAGS) $(LIB_A) $(OBJS)) 67 | @($(CC) $(LIBS_LD_CFLAGS) -shared -fPIC -o $(LIB_S) $(OBJS)) 68 | 69 | clean: 70 | @$(RM) -rf $(LIB_A) $(LIB_S) $(OBJS) 71 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 72 | 73 | show: 74 | @echo "$(QUICK_CONFIG)" -------------------------------------------------------------------------------- /component/isp/sensor/omnivision_ov2718/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # sensor lib Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 12 | 3A_PATH := $(ISP_PATH)/3a 13 | LIBPATH = $(ISP_PATH)/lib 14 | OBJPATH = ./obj 15 | 16 | ifeq ($(CONFIG_GPIO_I2C),y) 17 | HI_GPIO_I2C:=HI_GPIO_I2C 18 | else 19 | HI_GPIO_I2C:=HI_GPIO_XXX 20 | endif 21 | 22 | ARFLAGS = rcv 23 | ARFLAGS_SO = $(LIBS_LD_CFLAGS) 24 | ARFLAGS_SO += -shared -fPIC -o 25 | CFLAGS = -Wall -fPIC -D$(HI_FPGA) -D$(HI_GPIO_I2C) 26 | CFLAGS += -O2 27 | CFLAGS += $(LIBS_CFLAGS) 28 | 29 | ifeq ($(ISP_INI_CONFIG), y) 30 | CFLAGS += -D INIFILE_CONFIG_MODE 31 | endif 32 | 33 | ifeq ($(HIGDB),HI_GDB) 34 | CFLAGS += -g 35 | endif 36 | 37 | ifeq ($(CONFIG_JPEGEDCF), y) 38 | CFLAGS += -D ENABLE_JPEGEDCF 39 | endif 40 | BUS_DIR := $(EXT_PATH)/ssp-sony/ 41 | 42 | ISP_INC := $(ISP_PATH)/include 43 | 3A_INC := $(3A_PATH)/include 44 | INC := -I$(BUS_DIR) -I$(REL_INC) -I$(ISP_INC) -I$(3A_INC) -I$(ISP_PATH)/iniparser 45 | 46 | ifeq ($(CONFIG_GPIO_I2C), y) 47 | INC += -I$(EXT_PATH)/gpio-i2c-ex 48 | INC += -I$(EXT_PATH)/gpio-i2c 49 | else 50 | INC += -I$(EXT_PATH)/i2c 51 | INC += -I$(EXT_PATH)/hi_i2c 52 | endif 53 | 54 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 55 | 56 | $(OBJPATH)/%.o: ./%.c 57 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 58 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 59 | @$(COMPILE) -o $@ -c $< $(INC) 60 | 61 | SRCS = $(wildcard ./*.c) 62 | OBJS = $(SRCS:%.c=%.o) 63 | OBJS := $(OBJS:./%=obj/%) 64 | 65 | TARGETLIB := $(LIBPATH)/libsns_ov2718.a 66 | TARGETLIB_SO := $(LIBPATH)/libsns_ov2718.so 67 | 68 | all:$(TARGETLIB) 69 | $(TARGETLIB):$(OBJS) 70 | @($(AR) $(ARFLAGS) $(TARGETLIB) $(OBJS)) 71 | @($(CC) $(ARFLAGS_SO) $(TARGETLIB_SO) $(OBJS)) 72 | 73 | clean: 74 | @$(RM) -rf $(TARGETLIB) $(OBJS) 75 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 76 | -------------------------------------------------------------------------------- /component/isp/sensor/omnivision_ov9712/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # sensor lib Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 12 | 3A_PATH := $(ISP_PATH)/3a 13 | LIBPATH = $(ISP_PATH)/lib 14 | OBJPATH = ./obj 15 | 16 | ifeq ($(CONFIG_GPIO_I2C),y) 17 | HI_GPIO_I2C:=HI_GPIO_I2C 18 | else 19 | HI_GPIO_I2C:=HI_GPIO_XXX 20 | endif 21 | 22 | ARFLAGS = rcv 23 | ARFLAGS_SO = $(LIBS_LD_CFLAGS) 24 | ARFLAGS_SO += -shared -fPIC -o 25 | CFLAGS = -Wall -fPIC -D$(HI_FPGA) -D$(HI_GPIO_I2C) 26 | CFLAGS += -O2 27 | CFLAGS += $(LIBS_CFLAGS) 28 | 29 | ifeq ($(ISP_INI_CONFIG), y) 30 | CFLAGS += -D INIFILE_CONFIG_MODE 31 | endif 32 | 33 | ifeq ($(HIGDB),HI_GDB) 34 | CFLAGS += -g 35 | endif 36 | 37 | ifeq ($(CONFIG_JPEGEDCF), y) 38 | CFLAGS += -D ENABLE_JPEGEDCF 39 | endif 40 | BUS_DIR := $(EXT_PATH)/ssp-sony/ 41 | 42 | ISP_INC := $(ISP_PATH)/include 43 | 3A_INC := $(3A_PATH)/include 44 | INC := -I$(BUS_DIR) -I$(REL_INC) -I$(ISP_INC) -I$(3A_INC) -I$(ISP_PATH)/iniparser 45 | 46 | ifeq ($(CONFIG_GPIO_I2C), y) 47 | INC += -I$(EXT_PATH)/gpio-i2c-ex 48 | INC += -I$(EXT_PATH)/gpio-i2c 49 | else 50 | INC += -I$(EXT_PATH)/i2c 51 | INC += -I$(EXT_PATH)/hi_i2c 52 | endif 53 | 54 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 55 | 56 | $(OBJPATH)/%.o: ./%.c 57 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 58 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 59 | @$(COMPILE) -o $@ -c $< $(INC) 60 | 61 | SRCS = $(wildcard ./*.c) 62 | OBJS = $(SRCS:%.c=%.o) 63 | OBJS := $(OBJS:./%=obj/%) 64 | 65 | TARGETLIB := $(LIBPATH)/libsns_ov9712.a 66 | TARGETLIB_SO := $(LIBPATH)/libsns_ov9712.so 67 | 68 | all:$(TARGETLIB) 69 | $(TARGETLIB):$(OBJS) 70 | @($(AR) $(ARFLAGS) $(TARGETLIB) $(OBJS)) 71 | @($(CC) $(ARFLAGS_SO) $(TARGETLIB_SO) $(OBJS)) 72 | 73 | clean: 74 | @$(RM) -rf $(TARGETLIB) $(OBJS) 75 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 76 | -------------------------------------------------------------------------------- /component/isp/sensor/omnivision_ov9712/build.sh: -------------------------------------------------------------------------------- 1 | make clean;make 2 | cp ../../lib/libsns_ov9712.so /home/x00226337/hi3518e/release_3518E/libs; 3 | echo "cp down!!" 4 | -------------------------------------------------------------------------------- /component/isp/sensor/omnivision_ov9732/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # sensor lib Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 12 | 3A_PATH := $(ISP_PATH)/3a 13 | LIBPATH = $(ISP_PATH)/lib 14 | OBJPATH = ./obj 15 | 16 | ifeq ($(CONFIG_GPIO_I2C),y) 17 | HI_GPIO_I2C:=HI_GPIO_I2C 18 | else 19 | HI_GPIO_I2C:=HI_GPIO_XXX 20 | endif 21 | 22 | ARFLAGS = rcv 23 | ARFLAGS_SO = $(LIBS_LD_CFLAGS) 24 | ARFLAGS_SO += -shared -fPIC -o 25 | CFLAGS = -Wall -fPIC -D$(HI_FPGA) -D$(HI_GPIO_I2C) 26 | CFLAGS += -O2 27 | CFLAGS += $(LIBS_CFLAGS) 28 | 29 | ifeq ($(ISP_INI_CONFIG), y) 30 | CFLAGS += -D INIFILE_CONFIG_MODE 31 | endif 32 | 33 | ifeq ($(HIGDB),HI_GDB) 34 | CFLAGS += -g 35 | endif 36 | 37 | ifeq ($(CONFIG_JPEGEDCF), y) 38 | CFLAGS += -D ENABLE_JPEGEDCF 39 | endif 40 | BUS_DIR := $(EXT_PATH)/ssp-sony/ 41 | 42 | ISP_INC := $(ISP_PATH)/include 43 | 3A_INC := $(3A_PATH)/include 44 | INC := -I$(BUS_DIR) -I$(REL_INC) -I$(ISP_INC) -I$(3A_INC) -I$(ISP_PATH)/iniparser 45 | 46 | ifeq ($(CONFIG_GPIO_I2C), y) 47 | INC += -I$(EXT_PATH)/gpio-i2c-ex 48 | INC += -I$(EXT_PATH)/gpio-i2c 49 | else 50 | INC += -I$(EXT_PATH)/i2c 51 | INC += -I$(EXT_PATH)/hi_i2c 52 | endif 53 | 54 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 55 | 56 | $(OBJPATH)/%.o: ./%.c 57 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 58 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 59 | @$(COMPILE) -o $@ -c $< $(INC) 60 | 61 | SRCS = $(wildcard ./*.c) 62 | OBJS = $(SRCS:%.c=%.o) 63 | OBJS := $(OBJS:./%=obj/%) 64 | 65 | TARGETLIB := $(LIBPATH)/libsns_ov9732.a 66 | TARGETLIB_SO := $(LIBPATH)/libsns_ov9732.so 67 | 68 | all:$(TARGETLIB) 69 | $(TARGETLIB):$(OBJS) 70 | @($(AR) $(ARFLAGS) $(TARGETLIB) $(OBJS)) 71 | @($(CC) $(ARFLAGS_SO) $(TARGETLIB_SO) $(OBJS)) 72 | 73 | clean: 74 | @$(RM) -rf $(TARGETLIB) $(OBJS) 75 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 76 | -------------------------------------------------------------------------------- /component/isp/sensor/omnivision_ov9750/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # sensor lib Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 12 | 3A_PATH := $(ISP_PATH)/3a 13 | LIBPATH = $(ISP_PATH)/lib 14 | OBJPATH = ./obj 15 | 16 | ifeq ($(CONFIG_GPIO_I2C),y) 17 | HI_GPIO_I2C:=HI_GPIO_I2C 18 | else 19 | HI_GPIO_I2C:=HI_GPIO_XXX 20 | endif 21 | 22 | ARFLAGS = rcv 23 | ARFLAGS_SO = $(LIBS_LD_CFLAGS) 24 | ARFLAGS_SO += -shared -fPIC -o 25 | CFLAGS = -Wall -fPIC -D$(HI_FPGA) -D$(HI_GPIO_I2C) 26 | CFLAGS += -O2 27 | CFLAGS += $(LIBS_CFLAGS) 28 | 29 | ifeq ($(ISP_INI_CONFIG), y) 30 | CFLAGS += -D INIFILE_CONFIG_MODE 31 | endif 32 | 33 | ifeq ($(HIGDB),HI_GDB) 34 | CFLAGS += -g 35 | endif 36 | 37 | ifeq ($(CONFIG_JPEGEDCF), y) 38 | CFLAGS += -D ENABLE_JPEGEDCF 39 | endif 40 | BUS_DIR := $(EXT_PATH)/ssp-sony/ 41 | 42 | ISP_INC := $(ISP_PATH)/include 43 | 3A_INC := $(3A_PATH)/include 44 | INC := -I$(BUS_DIR) -I$(REL_INC) -I$(ISP_INC) -I$(3A_INC) -I$(ISP_PATH)/iniparser 45 | 46 | ifeq ($(CONFIG_GPIO_I2C), y) 47 | INC += -I$(EXT_PATH)/gpio-i2c-ex 48 | INC += -I$(EXT_PATH)/gpio-i2c 49 | else 50 | INC += -I$(EXT_PATH)/i2c 51 | INC += -I$(EXT_PATH)/hi_i2c 52 | endif 53 | 54 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 55 | 56 | $(OBJPATH)/%.o: ./%.c 57 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 58 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 59 | @$(COMPILE) -o $@ -c $< $(INC) 60 | 61 | SRCS = $(wildcard ./*.c) 62 | OBJS = $(SRCS:%.c=%.o) 63 | OBJS := $(OBJS:./%=obj/%) 64 | 65 | TARGETLIB := $(LIBPATH)/libsns_ov9750.a 66 | TARGETLIB_SO := $(LIBPATH)/libsns_ov9750.so 67 | 68 | all:$(TARGETLIB) 69 | $(TARGETLIB):$(OBJS) 70 | @($(AR) $(ARFLAGS) $(TARGETLIB) $(OBJS)) 71 | @($(CC) $(ARFLAGS_SO) $(TARGETLIB_SO) $(OBJS)) 72 | 73 | clean: 74 | @$(RM) -rf $(TARGETLIB) $(OBJS) 75 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 76 | -------------------------------------------------------------------------------- /component/isp/sensor/omnivision_ov9752/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # sensor lib Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 12 | 3A_PATH := $(ISP_PATH)/3a 13 | LIBPATH = $(ISP_PATH)/lib 14 | OBJPATH = ./obj 15 | 16 | ifeq ($(CONFIG_GPIO_I2C),y) 17 | HI_GPIO_I2C:=HI_GPIO_I2C 18 | else 19 | HI_GPIO_I2C:=HI_GPIO_XXX 20 | endif 21 | 22 | ARFLAGS = rcv 23 | ARFLAGS_SO = $(LIBS_LD_CFLAGS) 24 | ARFLAGS_SO += -shared -fPIC -o 25 | CFLAGS = -Wall -fPIC -D$(HI_FPGA) -D$(HI_GPIO_I2C) 26 | CFLAGS += -O2 27 | CFLAGS += $(LIBS_CFLAGS) 28 | 29 | ifeq ($(ISP_INI_CONFIG), y) 30 | CFLAGS += -D INIFILE_CONFIG_MODE 31 | endif 32 | 33 | ifeq ($(HIGDB),HI_GDB) 34 | CFLAGS += -g 35 | endif 36 | 37 | ifeq ($(CONFIG_JPEGEDCF), y) 38 | CFLAGS += -D ENABLE_JPEGEDCF 39 | endif 40 | BUS_DIR := $(EXT_PATH)/ssp-sony/ 41 | 42 | ISP_INC := $(ISP_PATH)/include 43 | 3A_INC := $(3A_PATH)/include 44 | INC := -I$(BUS_DIR) -I$(REL_INC) -I$(ISP_INC) -I$(3A_INC) -I$(ISP_PATH)/iniparser 45 | 46 | ifeq ($(CONFIG_GPIO_I2C), y) 47 | INC += -I$(EXT_PATH)/gpio-i2c-ex 48 | INC += -I$(EXT_PATH)/gpio-i2c 49 | else 50 | INC += -I$(EXT_PATH)/i2c 51 | INC += -I$(EXT_PATH)/hi_i2c 52 | endif 53 | 54 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 55 | 56 | $(OBJPATH)/%.o: ./%.c 57 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 58 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 59 | @$(COMPILE) -o $@ -c $< $(INC) 60 | 61 | SRCS = $(wildcard ./*.c) 62 | OBJS = $(SRCS:%.c=%.o) 63 | OBJS := $(OBJS:./%=obj/%) 64 | 65 | TARGETLIB := $(LIBPATH)/libsns_ov9752.a 66 | TARGETLIB_SO := $(LIBPATH)/libsns_ov9752.so 67 | 68 | all:$(TARGETLIB) 69 | $(TARGETLIB):$(OBJS) 70 | @($(AR) $(ARFLAGS) $(TARGETLIB) $(OBJS)) 71 | @($(CC) $(ARFLAGS_SO) $(TARGETLIB_SO) $(OBJS)) 72 | 73 | clean: 74 | @$(RM) -rf $(TARGETLIB) $(OBJS) 75 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 76 | -------------------------------------------------------------------------------- /component/isp/sensor/panasonic_mn34222/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # sensor lib Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 12 | 3A_PATH := $(ISP_PATH)/3a 13 | LIBPATH = $(ISP_PATH)/lib 14 | OBJPATH = ./obj 15 | 16 | ifeq ($(CONFIG_GPIO_I2C),y) 17 | HI_GPIO_I2C:=HI_GPIO_I2C 18 | else 19 | HI_GPIO_I2C:=HI_GPIO_XXX 20 | endif 21 | 22 | ARFLAGS = rcv 23 | ARFLAGS_SO = $(LIBS_LD_CFLAGS) 24 | ARFLAGS_SO += -shared -fPIC -o 25 | CFLAGS = -Wall -fPIC -D$(HI_FPGA) -D$(HI_GPIO_I2C) 26 | CFLAGS += -O2 27 | CFLAGS += $(LIBS_CFLAGS) 28 | 29 | ifeq ($(ISP_INI_CONFIG), y) 30 | CFLAGS += -D INIFILE_CONFIG_MODE 31 | endif 32 | 33 | ifeq ($(HIGDB),HI_GDB) 34 | CFLAGS += -g 35 | endif 36 | 37 | ifeq ($(CONFIG_JPEGEDCF), y) 38 | CFLAGS += -D ENABLE_JPEGEDCF 39 | endif 40 | BUS_DIR := $(EXT_PATH)/ssp-sony/ 41 | 42 | ISP_INC := $(ISP_PATH)/include 43 | 3A_INC := $(3A_PATH)/include 44 | INC := -I$(BUS_DIR) -I$(REL_INC) -I$(ISP_INC) -I$(3A_INC) -I$(ISP_PATH)/iniparser 45 | 46 | ifeq ($(CONFIG_GPIO_I2C), y) 47 | INC += -I$(EXT_PATH)/gpio-i2c-ex 48 | INC += -I$(EXT_PATH)/gpio-i2c 49 | else 50 | INC += -I$(EXT_PATH)/i2c 51 | INC += -I$(EXT_PATH)/hi_i2c 52 | endif 53 | 54 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 55 | 56 | $(OBJPATH)/%.o: ./%.c 57 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 58 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 59 | @$(COMPILE) -o $@ -c $< $(INC) 60 | 61 | SRCS = $(wildcard ./*.c) 62 | OBJS = $(SRCS:%.c=%.o) 63 | OBJS := $(OBJS:./%=obj/%) 64 | 65 | TARGETLIB := $(LIBPATH)/libsns_mn34222.a 66 | TARGETLIB_SO := $(LIBPATH)/libsns_mn34222.so 67 | 68 | all:$(TARGETLIB) 69 | $(TARGETLIB):$(OBJS) 70 | @($(AR) $(ARFLAGS) $(TARGETLIB) $(OBJS)) 71 | @($(CC) $(ARFLAGS_SO) $(TARGETLIB_SO) $(OBJS)) 72 | 73 | clean: 74 | @$(RM) -rf $(TARGETLIB) $(OBJS) 75 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 76 | -------------------------------------------------------------------------------- /component/isp/sensor/readme_cn.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/component/isp/sensor/readme_cn.txt -------------------------------------------------------------------------------- /component/isp/sensor/sony_imx222/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # sensor lib Makefile 3 | # 4 | 5 | ifeq ($(PARAM_FILE), ) 6 | PARAM_FILE:=../../../../Makefile.param 7 | include $(PARAM_FILE) 8 | endif 9 | 10 | ISP_PATH := $(SDK_PATH)/mpp/component/isp 11 | EXT_PATH := $(SDK_PATH)/mpp/$(EXTDRV) 12 | 3A_PATH := $(ISP_PATH)/3a 13 | LIBPATH = $(ISP_PATH)/lib 14 | OBJPATH = ./obj 15 | 16 | ARFLAGS = rcv 17 | ARFLAGS_SO = $(LIBS_LD_CFLAGS) 18 | ARFLAGS_SO += -shared -fPIC -o 19 | 20 | CFLAGS = -Wall 21 | CFLAGS += -O2 -fPIC 22 | CFLAGS += $(LIBS_CFLAGS) 23 | 24 | ifeq ($(HIGDB),HI_GDB) 25 | CFLAGS += -g 26 | endif 27 | ifeq ($(CONFIG_JPEGEDCF), y) 28 | CFLAGS += -D ENABLE_JPEGEDCF 29 | endif 30 | BUS_DIR := $(EXT_PATH)/ssp-sony/ 31 | 32 | ISP_INC := $(ISP_PATH)/include 33 | 3A_INC := $(3A_PATH)/include 34 | INC := -I$(BUS_DIR) -I$(REL_INC) -I$(ISP_INC) -I$(3A_INC) 35 | 36 | COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm 37 | 38 | $(OBJPATH)/%.o: ./%.c 39 | @[ -e $(LIBPATH) ] || mkdir $(LIBPATH) 40 | @[ -e $(OBJPATH) ] || mkdir $(OBJPATH) 41 | @$(COMPILE) -o $@ -c $< $(INC) 42 | 43 | SRCS = $(wildcard ./*.c) 44 | OBJS = $(SRCS:%.c=%.o) 45 | OBJS := $(OBJS:./%=obj/%) 46 | 47 | TARGETLIB := $(LIBPATH)/libsns_imx222.a 48 | TARGETLIB_SO := $(LIBPATH)/libsns_imx222.so 49 | 50 | all:$(TARGETLIB) 51 | $(TARGETLIB):$(OBJS) 52 | @($(AR) $(ARFLAGS) $(TARGETLIB) $(OBJS)) 53 | @($(CC) $(ARFLAGS_SO) $(TARGETLIB_SO) $(OBJS)) 54 | 55 | clean: 56 | @$(RM) -rf $(TARGETLIB) $(OBJS) 57 | @$(RM) -rf $(LIBPATH) $(OBJPATH) 58 | -------------------------------------------------------------------------------- /extdrv/Makefile: -------------------------------------------------------------------------------- 1 | # $(ROOT)/mpp/Mafile 2 | 3 | ifeq ($(PARAM_FILE), ) 4 | PARAM_FILE:=../Makefile.param 5 | include $(PARAM_FILE) 6 | endif 7 | 8 | EXTDRV_KO=$(REL_KO)/extdrv 9 | 10 | .PHONY:clean all rel 11 | all: 12 | @echo -e "\e[0;32;1m--Compiling 'extdrv'... Configs as follow:\e[0;36;1m" 13 | @echo ---- CROSS=$(CROSS) 14 | @echo ---- HIARCH=$(HIARCH), HICHIP=$(HICHIP), CVER=$(CVER), HIDBG=$(HIDBG) 15 | @echo ---- SDK_PATH=$(SDK_PATH) , PARAM_FILE=$(PARAM_FILE) 16 | @echo ---- LINUX_ROOT=$(LINUX_ROOT) 17 | @echo -e "\e[0m" 18 | @mkdir -p $(EXTDRV_KO) 19 | @for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; do\ 20 | { cd `dirname $$x`; if [ $$? ]; then make || exit 1; cp *.ko $(EXTDRV_KO); cd ../; fi;}& done; wait 21 | 22 | clean: 23 | @for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; do\ 24 | { cd `dirname $$x`; if [ $$? ]; then make clean; cd ../; fi;}& done; wait 25 | @if [ -e $(EXTDRV_KO) ];then rm $(EXTDRV_KO) -fr; fi 26 | @if [ -e $(REL_KO) ];then rmdir --ignore-fail-on-non-empty "$(REL_KO)"; fi 27 | 28 | -------------------------------------------------------------------------------- /extdrv/adv7179/Makefile: -------------------------------------------------------------------------------- 1 | ifeq ($(PARAM_FILE), ) 2 | PARAM_FILE:=../../Makefile.param 3 | include $(PARAM_FILE) 4 | endif 5 | 6 | ifeq ($(CONFIG_GPIO_I2C),y) 7 | EXTRA_CFLAGS += -DHI_GPIO_I2C 8 | EXTRA_CFLAGS+=-I$(PWD)/../gpio-i2c 9 | else 10 | EXTRA_CFLAGS += -DHI_I2C 11 | EXTRA_CFLAGS+=-I$(PWD)/../hi_i2c 12 | endif 13 | 14 | EXTRA_CFLAGS += -I$(REL_INC) 15 | EXTRA_CFLAGS += $(DRV_CFLAGS) 16 | EXTRA_CFLAGS += -D$(HI_FPGA) 17 | 18 | obj-m := adv_7179.o 19 | adv_7179-y += adv7179.o 20 | 21 | default: 22 | echo $(LINUX_ROOT) 23 | make -C $(LINUX_ROOT) M=$(PWD) modules 24 | 25 | clean: 26 | # make -C $(LINUX_ROOT) M=$(PWD) clean 27 | @make -C $(LINUX_ROOT) M=$(PWD) clean 28 | 29 | -------------------------------------------------------------------------------- /extdrv/adv7179/README.txt: -------------------------------------------------------------------------------- 1 | 1.Module parameter description 2 | 3 | BT656 PAL:insmod adv_7179.ko norm_mode=0 4 | BT656 NTSC:insmod adv_7179.ko norm_mode=1 5 | 6 | BT656 PAL is defualt 7 | -------------------------------------------------------------------------------- /extdrv/adv7179/adv7179.h: -------------------------------------------------------------------------------- 1 | /* extdrv/include/adv7179.h for Linux . 2 | * 3 | * 4 | * This file defines ov9653 micro-definitions for user. 5 | * 6 | * History: 7 | * 03-Apr-2006 Start of Hi3510 Digital Camera GPIO control support 8 | * 9 | */ 10 | 11 | #ifndef _ADV7179_H 12 | #define _ADV7179_H 13 | 14 | 15 | #define ENCODER_SET_NORM 0x02 16 | 17 | 18 | 19 | 20 | #define VIDEO_MODE_656_PAL 0 21 | #define VIDEO_MODE_656_NTSC 1 22 | #define VIDEO_MODE_601_PAL_MASTER 2 23 | #define VIDEO_MODE_601_NTSC_MASTER 3 24 | #define VIDEO_MODE_601_PAL_SLAVER 4 25 | #define VIDEO_MODE_601_NTSC_SLAVER 5 26 | 27 | #define VIDEO_MODE_CCIR656 0 28 | #define VIDEO_MODE_CCIR601 1 29 | #define VIDEO_MODE_LCD 2 30 | 31 | #define VIDEO_NORM_PAL 0 32 | #define VIDEO_NORM_NTSC 1 33 | #define VIDEO_NORM_SUPPORT 2 34 | #define VIDEO_MODE_SECAM 2 35 | #define VIDEO_MODE_AUTO 3 36 | 37 | #define VIDEO_MODE_MASTER 1 38 | #define VIDEO_MODE_SLAVER 0 39 | 40 | 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /extdrv/adv7179/config.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_CONFIG_H 2 | #define _LINUX_CONFIG_H 3 | 4 | #include 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /extdrv/adv7179/gpio_i2c.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _GPIO_I2C_H 3 | #define _GPIO_I2C_H 4 | 5 | 6 | #define GPIO_I2C_READ 0x01 7 | #define GPIO_I2C_WRITE 0x02 8 | 9 | unsigned char gpio_i2c_read(unsigned char devaddress, unsigned char address); 10 | void gpio_i2c_write(unsigned char devaddress, unsigned char address, unsigned char value); 11 | 12 | 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /extdrv/adv7179/video_def.h: -------------------------------------------------------------------------------- 1 | /* 2 | * include/video_def.h for Linux . 3 | * 4 | * This file defines video_def micro-definitions for user. 5 | * History: 6 | * 10-April-2006 create this file 7 | */ 8 | 9 | 10 | #ifndef _VIDEO_DEF_H 11 | #define _VIDEO_DEF_H 12 | 13 | #define VIDEO_MODE_CCIR656 0 14 | #define VIDEO_MODE_CCIR601 1 15 | #define VIDEO_MODE_LCD 2 16 | 17 | #define VIDEO_NORM_PAL 0 18 | #define VIDEO_NORM_NTSC 1 19 | #define VIDEO_NORM_SUPPORT 2 20 | #define VIDEO_MODE_SECAM 2 21 | #define VIDEO_MODE_AUTO 3 22 | 23 | #define VIDEO_MODE_MASTER 1 24 | #define VIDEO_MODE_SLAVER 0 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /extdrv/piris/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ifeq ($(PARAM_FILE), ) 3 | PARAM_FILE:=../../Makefile.param 4 | include $(PARAM_FILE) 5 | endif 6 | 7 | obj-m := piris.o 8 | hi_pwm-y += piris.o 9 | 10 | EXTRA_CFLAGS += -I$(REL_INC) 11 | EXTRA_CFLAGS += $(DRV_CFLAGS) 12 | default: 13 | $(CC) -g -Wall -o piris_test piris_test.c strfunc.c 14 | @$(MAKE) -C $(LINUX_ROOT) M=$(PWD) modules 15 | @rm -f *.o modules.* *.symvers *.mod.c 16 | clean: 17 | @make -C $(LINUX_ROOT) M=$(PWD) clean 18 | @rm -f piris_test *.bak 19 | 20 | -------------------------------------------------------------------------------- /extdrv/piris/piris.h: -------------------------------------------------------------------------------- 1 | #ifndef __HI_PIRIS_H__ 2 | #define __HI_PIRIS_H__ 3 | 4 | #ifdef __cplusplus 5 | #if __cplusplus 6 | extern "C" { 7 | #endif 8 | #endif /* __cplusplus */ 9 | 10 | #include /* needed for the _IOW etc stuff used later */ 11 | 12 | 13 | typedef enum hiPIRIS_STATUS_E 14 | { 15 | PIRIS_IDLE = 0, 16 | PIRIS_BUSY, 17 | 18 | PIRIS_BUTT, 19 | } PIRIS_STATUS_E; 20 | 21 | 22 | typedef struct hiPIRIS_DATA_S 23 | { 24 | unsigned char ZeroIsMax; 25 | unsigned int TotalStep; 26 | int CurPos; 27 | } PIRIS_DATA_S; 28 | 29 | 30 | 31 | #define PIRIS_IOC_MAGIC 'p' 32 | 33 | #define PIRIS_SET_ACT_ARGS _IOW(PIRIS_IOC_MAGIC, 1, int) 34 | #define PIRIS_SET_ORGIN _IOW(PIRIS_IOC_MAGIC, 2, int) 35 | #define PIRIS_SET_CLOSE _IOW(PIRIS_IOC_MAGIC, 3, int) 36 | #define PIRIS_GET_STATUS _IOR(PIRIS_IOC_MAGIC, 5, int) 37 | 38 | #define PIRIS_IOC_MAXNR 5 39 | 40 | 41 | #ifdef __cplusplus 42 | #if __cplusplus 43 | } 44 | #endif 45 | #endif /* __cplusplus */ 46 | 47 | #endif /* __HI_PIRIS_H__ */ 48 | 49 | 50 | -------------------------------------------------------------------------------- /extdrv/piris/piris_ext.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : piris_ext.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2015/01/28 10 | Description : 11 | History : 12 | 1.Date : 2015/01/28 13 | Author : h00191408 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __PIRIS_EXT_H__ 18 | #define __PIRIS_EXT_H__ 19 | 20 | #include "hi_type.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C" { 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | typedef struct hiISP_PIRIS_CALLBACK_S 29 | { 30 | HI_S32 (*pfn_piris_gpio_update)(HI_S32 s32Pos); 31 | } ISP_PIRIS_CALLBACK_S; 32 | 33 | typedef struct hiISP_PIRIS_EXPORT_FUNC_S 34 | { 35 | HI_S32 (*pfnISPRegisterPirisCallBack) (HI_S32 IspDev, ISP_PIRIS_CALLBACK_S* pstPirisCb); 36 | } ISP_PIRIS_EXPORT_FUNC_S; 37 | 38 | extern ISP_PIRIS_EXPORT_FUNC_S g_stIspPirisExpFunc; 39 | 40 | #define CKFN_ISP_RegisterPirisCallBack()\ 41 | (NULL != g_stIspPirisExpFunc.pfnISPRegisterPirisCallBack) 42 | #define CALL_ISP_RegisterPirisCallBack(IspDev,pstPirisCb)\ 43 | g_stIspPirisExpFunc.pfnISPRegisterPirisCallBack(IspDev,pstPirisCb) 44 | 45 | #ifdef __cplusplus 46 | #if __cplusplus 47 | } 48 | #endif 49 | #endif /* End of #ifdef __cplusplus */ 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /extdrv/piris/strfunc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/extdrv/piris/strfunc.c -------------------------------------------------------------------------------- /extdrv/piris/strfunc.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : strfunc.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2005/7/27 10 | Last Modified : 11 | Description : strfunc.c header file 12 | Function List : 13 | History : 14 | 1.Date : 2005/7/27 15 | Author : T41030 16 | Modification: Created file 17 | 18 | ******************************************************************************/ 19 | 20 | #ifndef __STRFUNC_H__ 21 | #define __STRFUNC_H__ 22 | 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C" { 27 | #endif 28 | #endif /* __cplusplus */ 29 | 30 | #define STRFMT_ADDR32 "%#010lX" 31 | #define STRFMT_ADDR32_2 "0x%08lX" 32 | 33 | extern int StrToNumber(char* str , unsigned int* ulValue); 34 | 35 | 36 | 37 | #ifdef __cplusplus 38 | #if __cplusplus 39 | } 40 | #endif 41 | #endif /* __cplusplus */ 42 | 43 | 44 | #endif /* __STRFUNC_H__ */ 45 | -------------------------------------------------------------------------------- /extdrv/pwm/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ifeq ($(PARAM_FILE), ) 3 | PARAM_FILE:=../../Makefile.param 4 | include $(PARAM_FILE) 5 | endif 6 | 7 | obj-m := pwm.o 8 | hi_pwm-y += pwm.o 9 | 10 | EXTRA_CFLAGS += -I$(REL_INC) 11 | EXTRA_CFLAGS += $(DRV_CFLAGS) 12 | default: 13 | $(CC) -g -Wall -o pwm_write pwm_write.c strfunc.c 14 | $(CC) -g -Wall -o pwm_test pwm_test.c strfunc.c 15 | @$(MAKE) -C $(LINUX_ROOT) M=$(PWD) modules 16 | @rm -f *.o modules.* *.symvers *.mod.c 17 | clean: 18 | @make -C $(LINUX_ROOT) M=$(PWD) clean 19 | @rm -f pwm_write pwm_test *.bak 20 | 21 | -------------------------------------------------------------------------------- /extdrv/pwm/pwm.h: -------------------------------------------------------------------------------- 1 | #ifndef __HI_PWM_H__ 2 | #define __HI_PWM_H__ 3 | 4 | #ifdef __cplusplus 5 | #if __cplusplus 6 | extern "C" { 7 | #endif 8 | #endif /* __cplusplus */ 9 | 10 | 11 | typedef struct hiPWM_DATA_S 12 | { 13 | unsigned char pwm_num; //0:PWM0,1:PWM1,2:PWM2,3:PWMII0,4:PWMII1,5:PWMII2 14 | unsigned int duty; 15 | unsigned int period; 16 | unsigned char enable; 17 | 18 | } PWM_DATA_S; 19 | 20 | #define PWM_CMD_WRITE 0x01 21 | #define PWM_CMD_READ 0x03 22 | 23 | 24 | int PWM_DRV_Write(unsigned char pwm_num, unsigned short duty, unsigned short period, unsigned char enable); 25 | //unsigned int PWM_DRV_Read(unsigned int reg_addr); 26 | 27 | 28 | 29 | 30 | #ifdef __cplusplus 31 | #if __cplusplus 32 | } 33 | #endif 34 | #endif /* __cplusplus */ 35 | 36 | #endif /* __HI_PWM_H__ */ 37 | 38 | 39 | -------------------------------------------------------------------------------- /extdrv/pwm/pwm_test.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | #include "strfunc.h" 11 | #include "pwm.h" 12 | 13 | 14 | int main(int argc , char* argv[]) 15 | { 16 | int fd = -1; 17 | int ret = 0; 18 | int i = 0; 19 | unsigned int PwmDirector; 20 | unsigned int Period; 21 | PWM_DATA_S stPwmData; 22 | 23 | if (argc < 3) 24 | { 25 | printf("usage: %s sample: %s 0x56 0x0 0x28\n", argv[0], argv[0]); 26 | return -1; 27 | } 28 | 29 | fd = open("/dev/pwm", 0); 30 | if (fd < 0) 31 | { 32 | printf("Open pwm error!\n"); 33 | return -1; 34 | } 35 | 36 | if (StrToNumber(argv[1], &PwmDirector)) 37 | { 38 | close(fd); 39 | return 0; 40 | } 41 | 42 | if (StrToNumber(argv[2], &Period)) 43 | { 44 | close(fd); 45 | return 0; 46 | } 47 | 48 | printf("PWM_Director:0x%4x; Period:0x%4x.\n", PwmDirector, Period); 49 | stPwmData.pwm_num = 0; 50 | stPwmData.period = 1000; 51 | stPwmData.enable = 1; 52 | 53 | if (PwmDirector == 0) 54 | { 55 | stPwmData.duty = Period; 56 | } 57 | else 58 | { 59 | stPwmData.duty = 1; 60 | } 61 | 62 | //for(i = 0;i < Period;i++) 63 | while (i < 10) 64 | { 65 | /* 66 | if(PwmDirector == 0) 67 | { 68 | stPwmData.duty--; 69 | } 70 | else 71 | { 72 | stPwmData.duty++; 73 | } 74 | */ 75 | stPwmData.duty = 420; 76 | ret = ioctl(fd, PWM_CMD_WRITE, &stPwmData); 77 | printf("ret :%d\n", ret); 78 | usleep(66000); 79 | stPwmData.duty = 610; 80 | ret = ioctl(fd, PWM_CMD_WRITE, &stPwmData); 81 | printf("ret :%d\n", ret); 82 | usleep(66000); 83 | i++; 84 | } 85 | 86 | //printf("device_addr:0x%2x; reg_addr:0x%2x; reg_value:0x%2x.\n", device_addr, reg_addr, reg_value); 87 | close(fd); 88 | 89 | return 0; 90 | } 91 | -------------------------------------------------------------------------------- /extdrv/pwm/pwm_write.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | #include "strfunc.h" 11 | #include "pwm.h" 12 | 13 | 14 | int main(int argc , char* argv[]) 15 | { 16 | int fd = -1; 17 | int ret = 0; 18 | 19 | unsigned int PwmNum; 20 | unsigned int Duty; 21 | unsigned int Period; 22 | unsigned int enable; 23 | 24 | PWM_DATA_S stPwmData; 25 | 26 | 27 | if (argc < 5) 28 | { 29 | printf("usage: %s . sample: %s 0x56 0x0 0x28\n", argv[0], argv[0]); 30 | return -1; 31 | } 32 | 33 | fd = open("/dev/pwm", 0); 34 | if (fd < 0) 35 | { 36 | printf("Open pwm error!\n"); 37 | return -1; 38 | } 39 | 40 | if (StrToNumber(argv[1], &PwmNum)) 41 | { 42 | close(fd); 43 | return 0; 44 | } 45 | 46 | if (StrToNumber(argv[2], &Duty)) 47 | { 48 | close(fd); 49 | return 0; 50 | } 51 | 52 | if (StrToNumber(argv[3], &Period)) 53 | { 54 | close(fd); 55 | return 0; 56 | } 57 | 58 | if (StrToNumber(argv[4], &enable)) 59 | { 60 | close(fd); 61 | return 0; 62 | } 63 | 64 | printf("PWM_NUM:0x%4x; Duty:0x%4x; Period:0x%4x;enable:0x%4x.\n", PwmNum, Duty, Period, enable); 65 | 66 | stPwmData.pwm_num = PwmNum; 67 | stPwmData.duty = Duty; 68 | stPwmData.period = Period; 69 | stPwmData.enable = enable; 70 | 71 | ret = ioctl(fd, PWM_CMD_WRITE, &stPwmData); 72 | printf("ret :%d\n", ret); 73 | 74 | //printf("device_addr:0x%2x; reg_addr:0x%2x; reg_value:0x%2x.\n", device_addr, reg_addr, reg_value); 75 | 76 | close(fd); 77 | 78 | return 0; 79 | } 80 | -------------------------------------------------------------------------------- /extdrv/pwm/strfunc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/extdrv/pwm/strfunc.c -------------------------------------------------------------------------------- /extdrv/pwm/strfunc.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : strfunc.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2005/7/27 10 | Last Modified : 11 | Description : strfunc.c header file 12 | Function List : 13 | History : 14 | 1.Date : 2005/7/27 15 | Author : T41030 16 | Modification: Created file 17 | 18 | ******************************************************************************/ 19 | 20 | #ifndef __STRFUNC_H__ 21 | #define __STRFUNC_H__ 22 | 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C" { 27 | #endif 28 | #endif /* __cplusplus */ 29 | 30 | #define STRFMT_ADDR32 "%#010lX" 31 | #define STRFMT_ADDR32_2 "0x%08lX" 32 | 33 | extern int StrToNumber(char* str , unsigned int* ulValue); 34 | 35 | 36 | 37 | #ifdef __cplusplus 38 | #if __cplusplus 39 | } 40 | #endif 41 | #endif /* __cplusplus */ 42 | 43 | 44 | #endif /* __STRFUNC_H__ */ 45 | -------------------------------------------------------------------------------- /extdrv/sample_ist/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ifeq ($(PARAM_FILE), ) 3 | PARAM_FILE:=../../Makefile.param 4 | include $(PARAM_FILE) 5 | endif 6 | 7 | 8 | obj-m := sample_ist.o 9 | hi_sample_ist-y += sample_ist.o 10 | 11 | EXTRA_CFLAGS += -I$(REL_INC) 12 | EXTRA_CFLAGS += $(DRV_CFLAGS) 13 | default: 14 | $(CC) -g -Wall -o ist_test ist_test.c strfunc.c 15 | @$(MAKE) -C $(LINUX_ROOT) M=$(PWD) modules 16 | @rm -f *.o modules.* *.symvers *.mod.c 17 | clean: 18 | @make -C $(LINUX_ROOT) M=$(PWD) clean 19 | @rm -f ist_test *.bak 20 | 21 | -------------------------------------------------------------------------------- /extdrv/sample_ist/isp_ext.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_ext.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/07/17 10 | Description : 11 | History : 12 | 1.Date : 2013/07/17 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __ISP_EXT_H__ 18 | #define __ISP_EXT_H__ 19 | 20 | #include "hi_type.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | typedef enum hiISP_BUS_TYPE_E 29 | { 30 | ISP_BUS_TYPE_I2C = 0, 31 | ISP_BUS_TYPE_SSP, 32 | 33 | ISP_BUS_TYPE_BUTT, 34 | } ISP_BUS_TYPE_E; 35 | 36 | typedef struct hiISP_BUS_CALLBACK_S 37 | { 38 | HI_S32 (*pfnISPWriteI2CData) (HI_U8 u8DevAddr, HI_U32 u32RegAddr, 39 | HI_U32 u32RegAddrByteNum, HI_U32 u32Data, HI_U32 u32DataByteNum); 40 | HI_S32 (*pfnISPWriteSSPData) (HI_U32 u32DevAddr, HI_U32 u32DevAddrByteNum, 41 | HI_U32 u32RegAddr, HI_U32 u32RegAddrByteNum, HI_U32 u32Data, HI_U32 u32DataByteNum); 42 | } ISP_BUS_CALLBACK_S; 43 | 44 | typedef struct hiISP_EXPORT_FUNC_S 45 | { 46 | HI_S32 (*pfnISPRegisterBusCallBack) (HI_S32 IspDev, ISP_BUS_TYPE_E enType, ISP_BUS_CALLBACK_S *pstBusCb); 47 | } ISP_EXPORT_FUNC_S; 48 | 49 | extern ISP_EXPORT_FUNC_S g_stIspExpFunc; 50 | 51 | #define CKFN_ISP_RegisterBusCallBack()\ 52 | (NULL != g_stIspExpFunc.pfnISPRegisterBusCallBack) 53 | #define CALL_ISP_RegisterBusCallBack(IspDev,enType,pstBusCb)\ 54 | g_stIspExpFunc.pfnISPRegisterBusCallBack(IspDev,enType,pstBusCb) 55 | 56 | //---------------------------------------------------------------------------------------- 57 | // isp sync task 58 | typedef enum hiISP_SYNC_TSK_METHOD_E 59 | { 60 | ISP_SYNC_TSK_METHOD_HW_IRQ = 0, 61 | ISP_SYNC_TSK_METHOD_TSKLET, 62 | ISP_SYNC_TSK_METHOD_WORKQUE, 63 | 64 | ISP_SYNC_TSK_METHOD_BUTT 65 | 66 | } ISP_SYNC_TSK_METHOD_E; 67 | 68 | 69 | typedef struct hiISP_SYNC_TASK_NODE_S 70 | { 71 | ISP_SYNC_TSK_METHOD_E enMethod; 72 | HI_S32 ( *pfnIspSyncTskCallBack ) (HI_U64 u64Data); 73 | HI_U64 u64Data; 74 | const char *pszId; 75 | struct list_head list; 76 | 77 | } ISP_SYNC_TASK_NODE_S; 78 | 79 | extern HI_S32 hi_isp_sync_task_register(ISP_DEV dev, ISP_SYNC_TASK_NODE_S * pstNewNode); 80 | extern HI_S32 hi_isp_sync_task_unregister(ISP_DEV dev, ISP_SYNC_TASK_NODE_S *pstDelNode); 81 | 82 | #ifdef __cplusplus 83 | #if __cplusplus 84 | } 85 | #endif 86 | #endif /* End of #ifdef __cplusplus */ 87 | 88 | #endif 89 | -------------------------------------------------------------------------------- /extdrv/sample_ist/ist_test.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | #include "strfunc.h" 11 | #include "sample_ist.h" 12 | 13 | 14 | int main(int argc , char* argv[]) 15 | { 16 | int fd = -1; 17 | unsigned int node_index; 18 | 19 | if (argc < 3) 20 | { 21 | printf("use like [./ist_test + 0] -> add node 0\n"); 22 | printf("........ [./ist_test - 0] -> del node 0\n"); 23 | return -1; 24 | } 25 | 26 | fd = open("/dev/sample_ist", 0); 27 | if (fd < 0) 28 | { 29 | printf("Open sample_ist error!\n"); 30 | return -1; 31 | } 32 | 33 | if (StrToNumber(argv[2], &node_index)) 34 | { 35 | close(fd); 36 | return 0; 37 | } 38 | 39 | if (*argv[1] == '+') 40 | { 41 | ioctl(fd, SAMPLE_IST_ADD_NODE, &node_index); 42 | } 43 | else if (*argv[1] == '-') 44 | { 45 | ioctl(fd, SAMPLE_IST_DEL_NODE, &node_index); 46 | } 47 | 48 | close(fd); 49 | 50 | return 0; 51 | } 52 | -------------------------------------------------------------------------------- /extdrv/sample_ist/sample_ist.h: -------------------------------------------------------------------------------- 1 | #ifndef __HI_PWM_H__ 2 | #define __HI_PWM_H__ 3 | 4 | #ifdef __cplusplus 5 | #if __cplusplus 6 | extern "C" { 7 | #endif 8 | #endif /* __cplusplus */ 9 | 10 | 11 | #define SAMPLE_IST_DEL_NODE 0x01 12 | #define SAMPLE_IST_ADD_NODE 0x03 13 | 14 | 15 | #ifdef __cplusplus 16 | #if __cplusplus 17 | } 18 | #endif 19 | #endif /* __cplusplus */ 20 | 21 | #endif /* __HI_PWM_H__ */ 22 | 23 | 24 | -------------------------------------------------------------------------------- /extdrv/sample_ist/strfunc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/extdrv/sample_ist/strfunc.c -------------------------------------------------------------------------------- /extdrv/sample_ist/strfunc.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : strfunc.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2005/7/27 10 | Last Modified : 11 | Description : strfunc.c header file 12 | Function List : 13 | History : 14 | 1.Date : 2005/7/27 15 | Author : T41030 16 | Modification: Created file 17 | 18 | ******************************************************************************/ 19 | 20 | #ifndef __STRFUNC_H__ 21 | #define __STRFUNC_H__ 22 | 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C" { 27 | #endif 28 | #endif /* __cplusplus */ 29 | 30 | #define STRFMT_ADDR32 "%#010lX" 31 | #define STRFMT_ADDR32_2 "0x%08lX" 32 | 33 | extern int StrToNumber(char* str , unsigned int* ulValue); 34 | 35 | 36 | 37 | #ifdef __cplusplus 38 | #if __cplusplus 39 | } 40 | #endif 41 | #endif /* __cplusplus */ 42 | 43 | 44 | #endif /* __STRFUNC_H__ */ 45 | -------------------------------------------------------------------------------- /extdrv/sensor_i2c/Makefile: -------------------------------------------------------------------------------- 1 | ifeq ($(PARAM_FILE), ) 2 | PARAM_FILE:=../../Makefile.param 3 | include $(PARAM_FILE) 4 | endif 5 | 6 | obj-m := sensor_i2c.o 7 | hi_sensor_i2c-y := sensor_i2c.o 8 | 9 | EXTRA_CFLAGS += -I$(REL_INC) 10 | EXTRA_CFLAGS += $(DRV_CFLAGS) 11 | all: 12 | make -C $(LINUX_ROOT) M=$(PWD) modules 13 | 14 | clean: 15 | @make -C $(LINUX_ROOT) M=$(PWD) clean 16 | -------------------------------------------------------------------------------- /extdrv/sensor_i2c/isp_ext.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_ext.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/07/17 10 | Description : 11 | History : 12 | 1.Date : 2013/07/17 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __ISP_EXT_H__ 18 | #define __ISP_EXT_H__ 19 | 20 | #include "hi_type.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C" { 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | typedef enum hiISP_BUS_TYPE_E 29 | { 30 | ISP_BUS_TYPE_I2C = 0, 31 | ISP_BUS_TYPE_SSP, 32 | 33 | ISP_BUS_TYPE_BUTT, 34 | } ISP_BUS_TYPE_E; 35 | 36 | typedef struct hiISP_BUS_CALLBACK_S 37 | { 38 | HI_S32 (*pfnISPWriteI2CData) (HI_U8 u8DevAddr, HI_U32 u32RegAddr, 39 | HI_U32 u32RegAddrByteNum, HI_U32 u32Data, HI_U32 u32DataByteNum); 40 | HI_S32 (*pfnISPWriteSSPData) (HI_U32 u32DevAddr, HI_U32 u32DevAddrByteNum, 41 | HI_U32 u32RegAddr, HI_U32 u32RegAddrByteNum, HI_U32 u32Data, HI_U32 u32DataByteNum); 42 | } ISP_BUS_CALLBACK_S; 43 | 44 | typedef struct hiISP_EXPORT_FUNC_S 45 | { 46 | HI_S32 (*pfnISPRegisterBusCallBack) (HI_S32 IspDev, ISP_BUS_TYPE_E enType, ISP_BUS_CALLBACK_S* pstBusCb); 47 | } ISP_EXPORT_FUNC_S; 48 | 49 | extern ISP_EXPORT_FUNC_S g_stIspExpFunc; 50 | 51 | #define CKFN_ISP_RegisterBusCallBack()\ 52 | (NULL != g_stIspExpFunc.pfnISPRegisterBusCallBack) 53 | #define CALL_ISP_RegisterBusCallBack(IspDev,enType,pstBusCb)\ 54 | g_stIspExpFunc.pfnISPRegisterBusCallBack(IspDev,enType,pstBusCb) 55 | 56 | #ifdef __cplusplus 57 | #if __cplusplus 58 | } 59 | #endif 60 | #endif /* End of #ifdef __cplusplus */ 61 | 62 | #endif 63 | -------------------------------------------------------------------------------- /extdrv/sensor_spi/Makefile: -------------------------------------------------------------------------------- 1 | ifeq ($(PARAM_FILE), ) 2 | PARAM_FILE:=../../Makefile.param 3 | include $(PARAM_FILE) 4 | endif 5 | 6 | obj-m := sensor_spi.o 7 | 8 | hi_sensor_spi-y := sensor_spi.o 9 | 10 | EXTRA_CFLAGS += -I$(REL_INC) 11 | EXTRA_CFLAGS += $(DRV_CFLAGS) 12 | all: 13 | make -C $(LINUX_ROOT) M=$(PWD) modules 14 | 15 | clean: 16 | @make -C $(LINUX_ROOT) M=$(PWD) clean 17 | -------------------------------------------------------------------------------- /extdrv/sensor_spi/isp_ext.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : isp_ext.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/07/17 10 | Description : 11 | History : 12 | 1.Date : 2013/07/17 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __ISP_EXT_H__ 18 | #define __ISP_EXT_H__ 19 | 20 | #include "hi_type.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C" { 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | typedef enum hiISP_BUS_TYPE_E 29 | { 30 | ISP_BUS_TYPE_I2C = 0, 31 | ISP_BUS_TYPE_SSP, 32 | 33 | ISP_BUS_TYPE_BUTT, 34 | } ISP_BUS_TYPE_E; 35 | 36 | typedef struct hiISP_BUS_CALLBACK_S 37 | { 38 | HI_S32 (*pfnISPWriteI2CData) (HI_U8 u8DevAddr, HI_U32 u32RegAddr, 39 | HI_U32 u32RegAddrByteNum, HI_U32 u32Data, HI_U32 u32DataByteNum); 40 | HI_S32 (*pfnISPWriteSSPData) (HI_U32 u32DevAddr, HI_U32 u32DevAddrByteNum, 41 | HI_U32 u32RegAddr, HI_U32 u32RegAddrByteNum, HI_U32 u32Data, HI_U32 u32DataByteNum); 42 | } ISP_BUS_CALLBACK_S; 43 | 44 | typedef struct hiISP_EXPORT_FUNC_S 45 | { 46 | HI_S32 (*pfnISPRegisterBusCallBack) (HI_S32 IspDev, ISP_BUS_TYPE_E enType, ISP_BUS_CALLBACK_S* pstBusCb); 47 | } ISP_EXPORT_FUNC_S; 48 | 49 | extern ISP_EXPORT_FUNC_S g_stIspExpFunc; 50 | 51 | #define CKFN_ISP_RegisterBusCallBack()\ 52 | (NULL != g_stIspExpFunc.pfnISPRegisterBusCallBack) 53 | #define CALL_ISP_RegisterBusCallBack(IspDev,enType,pstBusCb)\ 54 | g_stIspExpFunc.pfnISPRegisterBusCallBack(IspDev,enType,pstBusCb) 55 | 56 | #ifdef __cplusplus 57 | #if __cplusplus 58 | } 59 | #endif 60 | #endif /* End of #ifdef __cplusplus */ 61 | 62 | #endif 63 | -------------------------------------------------------------------------------- /extdrv/sensor_spi/sensor_spi.h: -------------------------------------------------------------------------------- 1 | #ifndef __SENSOR_SPI_H__ 2 | #define __SENSOR_SPI_H__ 3 | int ssp_write_alt(unsigned char devaddr, unsigned char addr, unsigned char data); 4 | int ssp_read_alt(unsigned char devaddr, unsigned char addr, unsigned char* data); 5 | #endif 6 | -------------------------------------------------------------------------------- /extdrv/ssp-ili9341v-6bit/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ifeq ($(PARAM_FILE), ) 3 | PARAM_FILE:=../../Makefile.param 4 | include $(PARAM_FILE) 5 | endif 6 | 7 | obj-m := ssp_ili9341v_6bit.o 8 | ssp-y += hi_ssp.o 9 | 10 | EXTRA_CFLAGS += -I$(REL_INC) 11 | EXTRA_CFLAGS += $(DRV_CFLAGS) 12 | 13 | default: 14 | 15 | make -C $(LINUX_ROOT) M=$(PWD) modules 16 | 17 | 18 | 19 | 20 | clean: 21 | make -C $(LINUX_ROOT) M=$(PWD) clean 22 | rm -f lcd_write_cmd lcd_write_cmd16 lcd_write_dat 23 | -------------------------------------------------------------------------------- /extdrv/ssp-ili9341v-6bit/hi_ssp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * extdrv/include/hi_ssp.h for Linux . 3 | * 4 | * History: 5 | * 2006-4-11 create this file 6 | */ 7 | 8 | #ifndef __HI_SSP_H__ 9 | #define __HI_SSP_H__ 10 | 11 | #define SSP_LCD_READ_ALT 0x1 12 | #define SSP_LCD_WRITE_CMD 0X3 13 | #define SSP_LCD_WRITE_DAT 0X5 14 | #define SSP_LCD_WRITE_CMD16 0X7 15 | 16 | int hi_ssp_set_frameform(unsigned char framemode, unsigned char spo, unsigned char sph, unsigned char datawidth); 17 | int hi_ssp_readdata(void); 18 | void hi_ssp_writedata(unsigned short data); 19 | 20 | void hi_ssp_enable(void); 21 | void hi_ssp_disable(void); 22 | 23 | int hi_ssp_set_serialclock(unsigned char, unsigned char); 24 | 25 | void spi_write_a9byte(unsigned char cmd_dat, unsigned char dat); 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /extdrv/ssp-ili9341v-6bit/strfunc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/extdrv/ssp-ili9341v-6bit/strfunc.c -------------------------------------------------------------------------------- /extdrv/ssp-ili9341v-6bit/strfunc.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : strfunc.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2005/7/27 10 | Last Modified : 11 | Description : strfunc.c header file 12 | Function List : 13 | History : 14 | 1.Date : 2005/7/27 15 | Author : T41030 16 | Modification: Created file 17 | 18 | ******************************************************************************/ 19 | 20 | #ifndef __STRFUNC_H__ 21 | #define __STRFUNC_H__ 22 | 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C" { 27 | #endif 28 | #endif /* __cplusplus */ 29 | 30 | #define STRFMT_ADDR32 "%#010lX" 31 | #define STRFMT_ADDR32_2 "0x%08lX" 32 | 33 | extern int StrToNumber(char* str , unsigned int* ulValue); 34 | 35 | 36 | 37 | #ifdef __cplusplus 38 | #if __cplusplus 39 | } 40 | #endif 41 | #endif /* __cplusplus */ 42 | 43 | 44 | #endif /* __STRFUNC_H__ */ 45 | -------------------------------------------------------------------------------- /extdrv/ssp-ili9342h-6bit/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ifeq ($(PARAM_FILE), ) 3 | PARAM_FILE:=../../Makefile.param 4 | include $(PARAM_FILE) 5 | endif 6 | 7 | obj-m := ssp_ili9342h_6bit.o 8 | ssp-y += hi_ssp.o 9 | 10 | EXTRA_CFLAGS += -I$(REL_INC) 11 | EXTRA_CFLAGS += $(DRV_CFLAGS) 12 | 13 | default: 14 | 15 | 16 | make -C $(LINUX_ROOT) M=$(PWD) modules 17 | 18 | 19 | 20 | 21 | clean: 22 | make -C $(LINUX_ROOT) M=$(PWD) clean 23 | rm -f lcd_write_cmd lcd_write_cmd16 lcd_write_dat 24 | -------------------------------------------------------------------------------- /extdrv/ssp-ili9342h-6bit/hi_ssp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * extdrv/include/hi_ssp.h for Linux . 3 | * 4 | * History: 5 | * 2006-4-11 create this file 6 | */ 7 | 8 | #ifndef __HI_SSP_H__ 9 | #define __HI_SSP_H__ 10 | 11 | #define SSP_LCD_READ_ALT 0x1 12 | #define SSP_LCD_WRITE_CMD 0X3 13 | #define SSP_LCD_WRITE_DAT 0X5 14 | #define SSP_LCD_WRITE_CMD16 0X7 15 | 16 | int hi_ssp_set_frameform(unsigned char framemode, unsigned char spo, unsigned char sph, unsigned char datawidth); 17 | int hi_ssp_readdata(void); 18 | void hi_ssp_writedata(unsigned short data); 19 | 20 | void hi_ssp_enable(void); 21 | void hi_ssp_disable(void); 22 | 23 | int hi_ssp_set_serialclock(unsigned char, unsigned char); 24 | 25 | void spi_write_a9byte(unsigned char cmd_dat, unsigned char dat); 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /extdrv/ssp-ili9342h-6bit/strfunc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/extdrv/ssp-ili9342h-6bit/strfunc.c -------------------------------------------------------------------------------- /extdrv/ssp-ili9342h-6bit/strfunc.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : strfunc.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2005/7/27 10 | Last Modified : 11 | Description : strfunc.c header file 12 | Function List : 13 | History : 14 | 1.Date : 2005/7/27 15 | Author : T41030 16 | Modification: Created file 17 | 18 | ******************************************************************************/ 19 | 20 | #ifndef __STRFUNC_H__ 21 | #define __STRFUNC_H__ 22 | 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C" { 27 | #endif 28 | #endif /* __cplusplus */ 29 | 30 | #define STRFMT_ADDR32 "%#010lX" 31 | #define STRFMT_ADDR32_2 "0x%08lX" 32 | 33 | extern int StrToNumber(char* str , unsigned int* ulValue); 34 | 35 | 36 | 37 | #ifdef __cplusplus 38 | #if __cplusplus 39 | } 40 | #endif 41 | #endif /* __cplusplus */ 42 | 43 | 44 | #endif /* __STRFUNC_H__ */ 45 | -------------------------------------------------------------------------------- /extdrv/ssp-ota5182/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ifeq ($(PARAM_FILE), ) 3 | PARAM_FILE:=../../Makefile.param 4 | include $(PARAM_FILE) 5 | endif 6 | 7 | obj-m := ssp_ota5182.o 8 | ssp-y += hi_ssp.o 9 | 10 | EXTRA_CFLAGS += -I$(REL_INC) 11 | EXTRA_CFLAGS += $(DRV_CFLAGS) 12 | 13 | default: 14 | 15 | 16 | make -C $(LINUX_ROOT) M=$(PWD) modules 17 | 18 | 19 | 20 | 21 | clean: 22 | make -C $(LINUX_ROOT) M=$(PWD) clean 23 | rm -f lcd_write_cmd lcd_write_cmd16 lcd_write_dat -------------------------------------------------------------------------------- /extdrv/ssp-ota5182/hi_ssp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * extdrv/include/hi_ssp.h for Linux . 3 | * 4 | * History: 5 | * 2006-4-11 create this file 6 | */ 7 | 8 | #ifndef __HI_SSP_H__ 9 | #define __HI_SSP_H__ 10 | 11 | #define SSP_LCD_READ_ALT 0x1 12 | #define SSP_LCD_WRITE_CMD 0X3 13 | #define SSP_LCD_WRITE_DAT 0X5 14 | #define SSP_LCD_WRITE_CMD16 0X7 15 | 16 | int hi_ssp_set_frameform(unsigned char framemode, unsigned char spo, unsigned char sph, unsigned char datawidth); 17 | int hi_ssp_readdata(void); 18 | void hi_ssp_writedata(unsigned short data); 19 | 20 | void hi_ssp_enable(void); 21 | void hi_ssp_disable(void); 22 | 23 | int hi_ssp_set_serialclock(unsigned char, unsigned char); 24 | 25 | void spi_write_a9byte(unsigned char cmd_dat, unsigned char dat); 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /extdrv/ssp-ota5182/strfunc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/extdrv/ssp-ota5182/strfunc.c -------------------------------------------------------------------------------- /extdrv/ssp-ota5182/strfunc.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : strfunc.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2005/7/27 10 | Last Modified : 11 | Description : strfunc.c header file 12 | Function List : 13 | History : 14 | 1.Date : 2005/7/27 15 | Author : T41030 16 | Modification: Created file 17 | 18 | ******************************************************************************/ 19 | 20 | #ifndef __STRFUNC_H__ 21 | #define __STRFUNC_H__ 22 | 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C" { 27 | #endif 28 | #endif /* __cplusplus */ 29 | 30 | #define STRFMT_ADDR32 "%#010lX" 31 | #define STRFMT_ADDR32_2 "0x%08lX" 32 | 33 | extern int StrToNumber(char* str , unsigned int* ulValue); 34 | 35 | 36 | 37 | #ifdef __cplusplus 38 | #if __cplusplus 39 | } 40 | #endif 41 | #endif /* __cplusplus */ 42 | 43 | 44 | #endif /* __STRFUNC_H__ */ 45 | -------------------------------------------------------------------------------- /extdrv/tlv320aic31/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ifeq ($(PARAM_FILE), ) 3 | PARAM_FILE:=../../Makefile.param 4 | include $(PARAM_FILE) 5 | endif 6 | 7 | obj-m := tlv_320aic31.o 8 | tlv_320aic31-y += tlv320aic31.o 9 | 10 | ifeq ($(CONFIG_GPIO_I2C),y) 11 | EXTRA_CFLAGS += -DHI_GPIO_I2C 12 | EXTRA_CFLAGS+=-I$(PWD)/../gpio-i2c-ex 13 | else 14 | EXTRA_CFLAGS += -DHI_I2C 15 | EXTRA_CFLAGS+=-I$(PWD)/../hi_i2c 16 | endif 17 | 18 | EXTRA_CFLAGS += -I$(REL_INC) 19 | EXTRA_CFLAGS += $(DRV_CFLAGS) 20 | EXTRA_CFLAGS += -D$(HI_FPGA) 21 | 22 | 23 | default: 24 | @make -C $(LINUX_ROOT) M=$(PWD) modules 25 | 26 | clean: 27 | @make -C $(LINUX_ROOT) M=$(PWD) clean 28 | -------------------------------------------------------------------------------- /extdrv/tlv320aic31/tlv320aic31.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/extdrv/tlv320aic31/tlv320aic31.c -------------------------------------------------------------------------------- /extdrv/tlv320aic31/tlv320aic31_def.h: -------------------------------------------------------------------------------- 1 | #ifndef _INC_TLV320AIC31_DEF 2 | #define _INC_TLV320AIC31_DEF 3 | 4 | 5 | typedef union 6 | { 7 | struct 8 | { 9 | unsigned char reserved2 : 4; 10 | unsigned char bit_work_dri_ctrl: 1; 11 | unsigned char reserved1: 1; 12 | unsigned char work_clock_dic_ctrl: 1; 13 | unsigned char bit_clock_dic_ctrl: 1; 14 | } bit; 15 | unsigned char b8; 16 | } Ctrl_Mode; 17 | 18 | typedef union 19 | { 20 | struct 21 | { 22 | unsigned char input_vol_level_ctrl: 7; 23 | unsigned char if_mute_route: 1; 24 | } bit; 25 | unsigned char b8; 26 | } Adc_Pga_Dac_Gain_Ctrl; 27 | 28 | typedef union 29 | { 30 | struct 31 | { 32 | unsigned char in2r_adc_input_level_sample: 4; 33 | unsigned char in2l_adc_input_level_sample: 4; 34 | } bit; 35 | unsigned char b8; 36 | } In2_Adc_Ctrl_Sample; 37 | 38 | typedef union 39 | { 40 | struct 41 | { 42 | unsigned adc_pga_step_ctrl: 2; 43 | unsigned adc_ch_power_ctrl: 1; 44 | unsigned char in1_adc_input_level: 4; 45 | unsigned char mode: 1; 46 | } bit; 47 | unsigned char b8; 48 | } In1_Adc_Ctrl; 49 | 50 | typedef union 51 | { 52 | struct 53 | { 54 | unsigned char reserved: 4; 55 | unsigned char data_length: 2; 56 | unsigned char transfer_mode: 2; 57 | } bit; 58 | unsigned char b8; 59 | } Serial_Int_Ctrl; 60 | 61 | typedef union 62 | { 63 | struct 64 | { 65 | unsigned char power_status: 1; 66 | unsigned char vol_ctrl_status: 1; 67 | unsigned char power_down_ctrl: 1; 68 | unsigned char if_mute: 1; 69 | unsigned char output_level: 4; 70 | } bit; 71 | unsigned char b8; 72 | } Line_Hpcom_Out_Ctrl; 73 | typedef union 74 | { 75 | struct 76 | { 77 | unsigned char reserved1: 1; 78 | unsigned char right_dac_datapath_ctrl: 2; 79 | unsigned char left_dac_datapath_ctrl: 2; 80 | unsigned char reserved2: 3; 81 | } bit; 82 | unsigned char b8; 83 | } Codec_Datapath_Setup_Ctrl; 84 | typedef union 85 | { 86 | struct 87 | { 88 | unsigned char reserved: 6; 89 | unsigned char right_dac_power_ctrl: 1; 90 | unsigned char left_dac_power_ctrl: 1; 91 | } bit; 92 | unsigned char b8; 93 | } DAC_POWER_CTRL; 94 | typedef union 95 | { 96 | struct 97 | { 98 | unsigned char reserved: 4; 99 | unsigned char right_dac_swi_ctrl: 2; 100 | unsigned char left_dac_swi_ctrl: 2; 101 | } bit; 102 | unsigned char b8; 103 | } DAC_OUTPUT_SWIT_CTRL; 104 | 105 | typedef union 106 | { 107 | struct 108 | { 109 | unsigned char serial_data_offset: 8; 110 | } bit; 111 | unsigned char b8; 112 | } Serial_Data_Offset_Ctrl; 113 | #endif 114 | 115 | -------------------------------------------------------------------------------- /include/hi_af_comm.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : hi_af_comm.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2012/12/20 10 | Description : 11 | History : 12 | 1.Date : 2012/12/20 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __HI_AF_COMM_H__ 18 | #define __HI_AF_COMM_H__ 19 | 20 | #include "hi_type.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | #define HI_AF_LIB_NAME "hisi_af_lib" 29 | 30 | #ifdef __cplusplus 31 | #if __cplusplus 32 | } 33 | #endif 34 | #endif /* End of #ifdef __cplusplus */ 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /include/hi_comm_ai.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : hi_comm_ai.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2009/5/5 10 | Description : 11 | History : 12 | 1.Date : 2009/5/5 13 | Author : p00123320 14 | Modification: Created file 15 | ******************************************************************************/ 16 | 17 | 18 | #ifndef __HI_COMM_AI_H__ 19 | #define __HI_COMM_AI_H__ 20 | 21 | #ifdef __cplusplus 22 | #if __cplusplus 23 | extern "C"{ 24 | #endif 25 | #endif /* End of #ifdef __cplusplus */ 26 | 27 | 28 | 29 | #ifdef __cplusplus 30 | #if __cplusplus 31 | } 32 | #endif 33 | #endif /* End of #ifdef __cplusplus */ 34 | 35 | #endif /* End of #ifndef __HI_COMM_AI_H__ */ 36 | 37 | -------------------------------------------------------------------------------- /include/hi_comm_aio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/include/hi_comm_aio.h -------------------------------------------------------------------------------- /include/hi_comm_ao.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : hi_comm_ao.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2009/5/5 10 | Description : 11 | History : 12 | 1.Date : 2009/5/5 13 | Author : p00123320 14 | Modification: Created file 15 | ******************************************************************************/ 16 | 17 | 18 | #ifndef __HI_COMM_AO_H__ 19 | #define __HI_COMM_AO_H__ 20 | 21 | #ifdef __cplusplus 22 | #if __cplusplus 23 | extern "C"{ 24 | #endif 25 | #endif /* End of #ifdef __cplusplus */ 26 | 27 | 28 | 29 | 30 | #ifdef __cplusplus 31 | #if __cplusplus 32 | } 33 | #endif 34 | #endif /* End of #ifdef __cplusplus */ 35 | 36 | #endif /* End of #ifndef __HI_COMM_AO_H__ */ 37 | 38 | -------------------------------------------------------------------------------- /include/hi_comm_isp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/include/hi_comm_isp.h -------------------------------------------------------------------------------- /include/hi_comm_vi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/include/hi_comm_vi.h -------------------------------------------------------------------------------- /include/hi_i2c.h: -------------------------------------------------------------------------------- 1 | #ifndef _HI_I2C_H 2 | #define _HI_I2C_H 3 | 4 | 5 | 6 | /* /dev/i2c-X ioctl commands. The ioctl's parameter is always an 7 | * unsigned long, except for: 8 | * - I2C_FUNCS, takes pointer to an unsigned long 9 | * - I2C_RDWR, takes pointer to struct i2c_rdwr_ioctl_data 10 | * - I2C_SMBUS, takes pointer to struct i2c_smbus_ioctl_data 11 | */ 12 | #define I2C_RETRIES 0x0701 /* number of times a device address should 13 | be polled when not acknowledging */ 14 | #define I2C_TIMEOUT 0x0702 /* set timeout in units of 10 ms */ 15 | 16 | /* NOTE: Slave address is 7 or 10 bits, but 10-bit addresses 17 | * are NOT supported! (due to code brokenness) 18 | */ 19 | #define I2C_SLAVE 0x0703 /* Use this slave address */ 20 | #define I2C_SLAVE_FORCE 0x0706 /* Use this slave address, even if it 21 | is already in use by a driver! */ 22 | #define I2C_TENBIT 0x0704 /* 0 for 7 bit addrs, != 0 for 10 bit */ 23 | 24 | #define I2C_FUNCS 0x0705 /* Get the adapter functionality mask */ 25 | 26 | #define I2C_RDWR 0x0707 /* Combined R/W transfer (one STOP only) */ 27 | 28 | #define I2C_PEC 0x0708 /* != 0 to use PEC with SMBus */ 29 | #define I2C_SMBUS 0x0720 /* SMBus transfer */ 30 | #define I2C_16BIT_REG 0x0709 /* 16BIT REG WIDTH */ 31 | #define I2C_16BIT_DATA 0x070a /* 16BIT DATA WIDTH */ 32 | 33 | typedef struct hiI2C_DATA_S 34 | { 35 | unsigned char dev_addr; 36 | unsigned int reg_addr; 37 | unsigned int addr_byte_num; 38 | unsigned int data; 39 | unsigned int data_byte_num; 40 | }I2C_DATA_S; 41 | 42 | #endif 43 | 44 | -------------------------------------------------------------------------------- /include/hi_io.h: -------------------------------------------------------------------------------- 1 | #ifndef __HI_IO_H__ 2 | #define __HI_IO_H__ 3 | 4 | #include "hi_type.h" 5 | 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif /* __cplusplus */ 10 | 11 | /* user and kernel are different. */ 12 | HI_U8 IO_READ8(HI_U32 u32Addr); 13 | HI_S32 IO_WRITE8(HI_U32 u32Addr, HI_U32 u32Value); 14 | HI_U16 IO_READ16(HI_U32 u32Addr); 15 | HI_S32 IO_WRITE16(HI_U32 u32Addr, HI_U32 u32Value); 16 | HI_U32 IO_READ32(HI_U32 u32Addr); 17 | HI_S32 IO_WRITE32(HI_U32 u32Addr, HI_U32 u32Value); 18 | HI_U32 ISP_Mmap(void); 19 | HI_U32 ISP_Munmap(void); 20 | HI_U32 ISP_GetExtRegAddr(void); 21 | //HI_VOID HI_RegSetBitEx(unsigned long value, unsigned long offset, 22 | // unsigned long length, unsigned long addr); 23 | //HI_VOID HI_RegRead(unsigned long *pvalue, unsigned long addr); 24 | 25 | static __inline HI_VOID HI_RegWrite32(unsigned long value, unsigned long mask, 26 | HI_U32 addr) 27 | { 28 | unsigned long t; 29 | 30 | t = readl(addr); 31 | t &= ~mask; 32 | t |= value & mask; 33 | writel(t, addr); 34 | } 35 | 36 | static __inline HI_VOID HI_RegSetBitEx(unsigned long value, unsigned long offset, 37 | unsigned long length, unsigned long addr) 38 | { 39 | unsigned long mask; 40 | mask = ((1 << length) - 1) << offset; 41 | value = value << offset; 42 | HI_RegWrite32(value, mask, addr); 43 | } 44 | 45 | static __inline HI_VOID HI_RegRead(unsigned long *pvalue, unsigned long addr) 46 | { 47 | *pvalue = readl(addr); 48 | } 49 | 50 | #define REG_ACCESS_WIDTH 0 // 1: 16bit 2: 8bit 51 | #define EXT_REG_BASE 0x10200 52 | #define ISP_REG_BASE_ADDR 0x205a0000 53 | 54 | #define EXT_REG_BASE_ISP 0x8000 55 | #define EXT_REG_BASE_VIU 0x8400 56 | #define EXT_REG_BASE_VPP 0x8600 57 | #define EXT_REG_BASE_VEDU 0x8800 58 | #define EXT_REG_BASE_VOU 0x8A00 59 | 60 | /* Dynamic bus access functions, 4 byte align access */ 61 | //TODO: allocate dev addr (such as ISP_REG_BASE_ADDR) according to devId. 62 | #define __IO_CALC_ADDRESS_DYNAMIC(BASE, OFFSET) ((HI_U32)(((BASE >= EXT_REG_BASE)? 0 : ISP_REG_BASE_ADDR) + ((((BASE >= EXT_REG_BASE)? (BASE - EXT_REG_BASE) : BASE) + OFFSET)< 5 | #include 6 | #include 7 | 8 | #define HIMEDIA_DEVICE_MAJOR 218 9 | #define HIMEDIA_DYNAMIC_MINOR 255 10 | 11 | struct himedia_device; 12 | 13 | struct himedia_ops { 14 | //pm methos 15 | int (*pm_prepare)(struct himedia_device *); 16 | void (*pm_complete)(struct himedia_device *); 17 | 18 | int (*pm_suspend)(struct himedia_device *); 19 | int (*pm_resume)(struct himedia_device *); 20 | 21 | int (*pm_freeze)(struct himedia_device *); 22 | int (*pm_thaw)(struct himedia_device *); 23 | int (*pm_poweroff)(struct himedia_device *); 24 | int (*pm_restore)(struct himedia_device *); 25 | 26 | int (*pm_suspend_late)(struct himedia_device *); 27 | int (*pm_resume_early)(struct himedia_device *); 28 | int (*pm_freeze_late)(struct himedia_device *); 29 | int (*pm_thaw_early)(struct himedia_device *); 30 | int (*pm_poweroff_late)(struct himedia_device *); 31 | int (*pm_restore_early)(struct himedia_device *); 32 | 33 | int (*pm_suspend_noirq)(struct himedia_device *); 34 | int (*pm_resume_noirq)(struct himedia_device *); 35 | 36 | int (*pm_freeze_noirq)(struct himedia_device *); 37 | int (*pm_thaw_noirq)(struct himedia_device *); 38 | int (*pm_poweroff_noirq)(struct himedia_device *); 39 | int (*pm_restore_noirq)(struct himedia_device *); 40 | }; 41 | 42 | struct himedia_driver{ 43 | struct device_driver driver; 44 | struct himedia_ops *ops; 45 | char name[1]; 46 | }; 47 | 48 | #define to_himedia_driver(drv) \ 49 | container_of((drv), struct himedia_driver, driver) 50 | 51 | struct himedia_device { 52 | struct list_head list; 53 | 54 | #define MAX_LEN 32 55 | char devfs_name[MAX_LEN]; 56 | 57 | int minor; 58 | 59 | struct device device; 60 | 61 | struct module *owner; 62 | 63 | const struct file_operations *fops; 64 | 65 | struct himedia_ops *drvops; 66 | 67 | /*for internal use*/ 68 | struct himedia_driver *driver; 69 | }; 70 | 71 | 72 | #define to_himedia_device(dev) \ 73 | container_of((dev), struct himedia_device, device) 74 | 75 | int himedia_register(struct himedia_device *pdev); 76 | 77 | int himedia_unregister(struct himedia_device *pdev); 78 | 79 | #define MODULE_ALIAS_HIMEDIA(minor) \ 80 | MODULE_ALIAS("himedia-char-major-" __stringify(HIMEDIA_DEVICE_MAJOR) \ 81 | "-" __stringify(minor)) 82 | 83 | #endif /*_LINUX_HIMEDIA_DEVICE_H_*/ 84 | -------------------------------------------------------------------------------- /include/iniparser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/include/iniparser.h -------------------------------------------------------------------------------- /include/isp_dehaze.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : hi_awb_comm.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2012/12/19 10 | Description : 11 | History : 12 | 1.Date : 2012/12/19 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __HI_ISP_DEHAZE_H__ 18 | #define __HI_ISP_DEHAZE_H__ 19 | 20 | #include "hi_type.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | #define FRAMECNT 12 29 | #define DEHAZE_CURVE_NUM 32 30 | #define DEHAZE_CURVE_MAX_NODE 256 31 | 32 | 33 | typedef enum hiDehze_CTRL_CMD_E 34 | { 35 | 36 | DEHAZE_DEBUG_ATTR_SET, 37 | DEHAZE_DEBUG_ATTR_GET, 38 | DEHAZE_DEBUG_WAIT_END, 39 | DEHAZE_CTRL_BUTT, 40 | 41 | }DEHAZE_CTRL_CMD_E; 42 | 43 | typedef struct hiDEHAZE_DBG_ATTR_S 44 | { 45 | HI_U32 hblk_num; 46 | HI_U32 vblk_num; 47 | HI_U32 u32ImageHeight; 48 | HI_U32 u32ImageWidth; 49 | } DEHAZE_DBG_ATTR_S; 50 | 51 | typedef struct hiDEHAZE_DBG_STATUS_S 52 | { 53 | HI_U16 AirPre[FRAMECNT][3]; 54 | HI_U16 maxdc; 55 | HI_U32 u32CurFrmNum; 56 | HI_U8 au8DehazeMinDout[DEFOG_ZONE_NUM]; 57 | HI_U8 Lut[DEHAZE_CURVE_MAX_NODE]; 58 | HI_U8 tmpr_min_flt[DEFOG_ZONE_NUM]; 59 | HI_U8 v_blur_flt_dout[DEFOG_ZONE_NUM]; 60 | HI_U8 pre_dc[DEFOG_ZONE_NUM]; 61 | HI_U8 au32DehazeMaxStatDout[DEFOG_ZONE_NUM]; 62 | HI_U16 flt_a[3]; 63 | HI_U16 dc_aver; 64 | HI_U16 defog_strength; 65 | HI_U16 curve_index; 66 | HI_U32 u32FrmNumBgn; 67 | HI_U32 u32FrmNumEnd; 68 | HI_U32 CurrA[3]; 69 | 70 | 71 | } DEHAZE_DBG_STATUS_S; 72 | 73 | 74 | typedef struct hiDEHAZE_DBG_CTRL_S 75 | { 76 | HI_BOOL bPreDebugEn; 77 | HI_U32 u32PrePhyAddr; 78 | HI_U32 u32PreDepth; 79 | HI_U32 u32PreSize; 80 | 81 | HI_BOOL bDebugEn; 82 | HI_BOOL bDebugOut; 83 | HI_BOOL bDbgCompleted; 84 | HI_U32 u32PhyAddr; 85 | HI_U32 u32Depth; 86 | HI_U32 u32Size; 87 | HI_U32 u32DbgFrmCnt; 88 | 89 | DEHAZE_DBG_ATTR_S *pstDbgAttr; 90 | DEHAZE_DBG_STATUS_S *pstDbgStatus; 91 | 92 | } DEHAZE_DBG_CTRL_S; 93 | 94 | 95 | 96 | #ifdef __cplusplus 97 | #if __cplusplus 98 | } 99 | #endif 100 | #endif /* End of #ifdef __cplusplus */ 101 | 102 | #endif 103 | 104 | 105 | 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /include/mpi_adec.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : ai.c 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2009/6/15 10 | Description : 11 | History : 12 | 1.Date : 2009/6/19 13 | Author : p00123320 14 | Modification: Created file 15 | ******************************************************************************/ 16 | #ifndef __MPI_ADEC_H__ 17 | #define __MPI_ADEC_H__ 18 | 19 | #include "hi_common.h" 20 | #include "hi_comm_aio.h" 21 | #include "hi_comm_adec.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C" 26 | { 27 | #endif 28 | #endif /* __cplusplus */ 29 | 30 | HI_S32 HI_MPI_ADEC_CreateChn(ADEC_CHN AdChn, ADEC_CHN_ATTR_S *pstAttr); 31 | HI_S32 HI_MPI_ADEC_DestroyChn(ADEC_CHN AdChn); 32 | 33 | HI_S32 HI_MPI_ADEC_SendStream(ADEC_CHN AdChn, const AUDIO_STREAM_S *pstStream, HI_BOOL bBlock); 34 | 35 | HI_S32 HI_MPI_ADEC_ClearChnBuf(ADEC_CHN AdChn); 36 | 37 | HI_S32 HI_MPI_ADEC_RegeisterDecoder(HI_S32 *ps32Handle, ADEC_DECODER_S *pstDecoder); 38 | HI_S32 HI_MPI_ADEC_UnRegisterDecoder(HI_S32 s32Handle); 39 | 40 | HI_S32 HI_MPI_ADEC_GetFrame(ADEC_CHN AdChn, AUDIO_FRAME_INFO_S *pstFrmInfo, HI_BOOL bBlock); 41 | HI_S32 HI_MPI_ADEC_ReleaseFrame(ADEC_CHN AdChn, AUDIO_FRAME_INFO_S *pstFrmInfo); 42 | HI_S32 HI_MPI_ADEC_SendEndOfStream(ADEC_CHN AdChn, HI_BOOL bInstant); 43 | 44 | 45 | 46 | #ifdef __cplusplus 47 | #if __cplusplus 48 | } 49 | #endif 50 | #endif /* __cplusplus */ 51 | 52 | #endif /* __MPI_ADEC_H__ */ 53 | 54 | -------------------------------------------------------------------------------- /include/mpi_ae.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : mpi_ae.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2014/04/01 10 | Description : 11 | History : 12 | 1.Date : 2014/04/01 13 | Author : h00191408 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __MPI_AE_H__ 18 | #define __MPI_AE_H__ 19 | 20 | #include "hi_comm_isp.h" 21 | #include "hi_comm_3a.h" 22 | #include "hi_ae_comm.h" 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C"{ 27 | #endif 28 | #endif /* End of #ifdef __cplusplus */ 29 | 30 | 31 | /* The interface of ae lib register to isp. */ 32 | HI_S32 HI_MPI_AE_Register(ISP_DEV IspDev, ALG_LIB_S *pstAeLib); 33 | HI_S32 HI_MPI_AE_UnRegister(ISP_DEV IspDev, ALG_LIB_S *pstAeLib); 34 | 35 | /* The callback function of sensor register to ae lib. */ 36 | HI_S32 HI_MPI_AE_SensorRegCallBack(ISP_DEV IspDev, ALG_LIB_S *pstAeLib, SENSOR_ID SensorId, 37 | AE_SENSOR_REGISTER_S *pstRegister); 38 | HI_S32 HI_MPI_AE_SensorUnRegCallBack(ISP_DEV IspDev, ALG_LIB_S *pstAeLib, SENSOR_ID SensorId); 39 | 40 | HI_S32 HI_MPI_ISP_SetExposureAttr(ISP_DEV IspDev, const ISP_EXPOSURE_ATTR_S *pstExpAttr); 41 | HI_S32 HI_MPI_ISP_GetExposureAttr(ISP_DEV IspDev, ISP_EXPOSURE_ATTR_S *pstExpAttr); 42 | 43 | HI_S32 HI_MPI_ISP_SetAERouteAttr(ISP_DEV IspDev, const ISP_AE_ROUTE_S *pstAERouteAttr); 44 | HI_S32 HI_MPI_ISP_GetAERouteAttr(ISP_DEV IspDev, ISP_AE_ROUTE_S *pstAERouteAttr); 45 | 46 | HI_S32 HI_MPI_ISP_QueryExposureInfo(ISP_DEV IspDev, ISP_EXP_INFO_S *pstExpInfo); 47 | 48 | HI_S32 HI_MPI_ISP_SetIrisAttr(ISP_DEV IspDev, const ISP_IRIS_ATTR_S *pstIrisAttr); 49 | HI_S32 HI_MPI_ISP_GetIrisAttr(ISP_DEV IspDev, ISP_IRIS_ATTR_S *pstIrisAttr); 50 | 51 | HI_S32 HI_MPI_ISP_SetDcirisAttr(ISP_DEV IspDev, const ISP_DCIRIS_ATTR_S *pstDcirisAttr); 52 | HI_S32 HI_MPI_ISP_GetDcirisAttr(ISP_DEV IspDev, ISP_DCIRIS_ATTR_S *pstDcirisAttr); 53 | 54 | HI_S32 HI_MPI_ISP_SetPirisAttr(ISP_DEV IspDev, const ISP_PIRIS_ATTR_S *pstPirisAttr); 55 | HI_S32 HI_MPI_ISP_GetPirisAttr(ISP_DEV IspDev, ISP_PIRIS_ATTR_S *pstPirisAttr); 56 | 57 | HI_S32 HI_MPI_ISP_SetAERouteAttrEx(ISP_DEV IspDev, const ISP_AE_ROUTE_EX_S *pstAERouteAttrEx); 58 | HI_S32 HI_MPI_ISP_GetAERouteAttrEx(ISP_DEV IspDev, ISP_AE_ROUTE_EX_S *pstAERouteAttrEx); 59 | 60 | 61 | 62 | 63 | #ifdef __cplusplus 64 | #if __cplusplus 65 | } 66 | #endif 67 | #endif /* End of #ifdef __cplusplus */ 68 | 69 | #endif 70 | 71 | 72 | -------------------------------------------------------------------------------- /include/mpi_aenc.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : ai.c 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2009/6/15 10 | Description : 11 | History : 12 | 1.Date : 2009/6/15 13 | Author : p00123320 14 | Modification: Created file 15 | ******************************************************************************/ 16 | #ifndef __MPI_AENC_H__ 17 | #define __MPI_AENC_H__ 18 | 19 | #include "hi_common.h" 20 | #include "hi_comm_aio.h" 21 | #include "hi_comm_aenc.h" 22 | 23 | #ifdef __cplusplus 24 | #if __cplusplus 25 | extern "C" 26 | { 27 | #endif 28 | #endif /* __cplusplus */ 29 | 30 | #define AENC_ADAPT_MAGIC 0Xfcfcfcfc 31 | 32 | HI_S32 HI_MPI_AENC_CreateChn(AENC_CHN AeChn, const AENC_CHN_ATTR_S *pstAttr); 33 | HI_S32 HI_MPI_AENC_DestroyChn(AENC_CHN AeChn); 34 | 35 | HI_S32 HI_MPI_AENC_SendFrame(AENC_CHN AeChn, const AUDIO_FRAME_S *pstFrm, const AEC_FRAME_S *pstAecFrm); 36 | 37 | HI_S32 HI_MPI_AENC_GetStream(AENC_CHN AeChn, AUDIO_STREAM_S *pstStream, HI_S32 s32MilliSec); 38 | HI_S32 HI_MPI_AENC_ReleaseStream(AENC_CHN AeChn, const AUDIO_STREAM_S *pstStream); 39 | 40 | HI_S32 HI_MPI_AENC_GetFd(AENC_CHN AeChn); 41 | 42 | HI_S32 HI_MPI_AENC_RegeisterEncoder(HI_S32 *ps32Handle, AENC_ENCODER_S *pstEncoder); 43 | HI_S32 HI_MPI_AENC_UnRegisterEncoder(HI_S32 s32Handle); 44 | 45 | HI_S32 HI_MPI_AENC_SaveFile(AENC_CHN AeChn, AUDIO_SAVE_FILE_INFO_S *pstSaveFileInfo); 46 | 47 | 48 | #ifdef __cplusplus 49 | #if __cplusplus 50 | } 51 | #endif 52 | #endif /* __cplusplus */ 53 | 54 | #endif /* __MPI_AENC_H__ */ 55 | 56 | -------------------------------------------------------------------------------- /include/mpi_af.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : mpi_af.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2012/12/19 10 | Description : 11 | History : 12 | 1.Date : 2012/12/19 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __MPI_AF_H__ 18 | #define __MPI_AF_H__ 19 | 20 | #include "hi_comm_isp.h" 21 | #include "hi_comm_3a.h" 22 | #include "hi_af_comm.h" 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C"{ 27 | #endif 28 | #endif /* End of #ifdef __cplusplus */ 29 | 30 | /* The interface of af lib register to isp. */ 31 | HI_S32 HI_MPI_AF_Register(ISP_DEV IspDev, ALG_LIB_S *pstAfLib); 32 | HI_S32 HI_MPI_AF_UnRegister(ISP_DEV IspDev, ALG_LIB_S *pstAfLib); 33 | 34 | #if 0 35 | /* The callback function of sensor register to af lib. */ 36 | HI_S32 hi_af_sensor_register_cb(ALG_LIB_S *pstAfLib, SENSOR_ID SensorId, 37 | CMOS_ISP_AF_DEFAULT_S *pstSnsDft, SENSOR_AF_EXP_FUNC_S *pstSnsExp); 38 | #endif 39 | 40 | /* The new awb lib is compatible with the old mpi interface. */ 41 | HI_S32 HI_MPI_ISP_SetFocusType(ISP_DEV IspDev, ISP_OP_TYPE_E enFocusType); //not support yet 42 | HI_S32 HI_MPI_ISP_GetFocusType(ISP_DEV IspDev, ISP_OP_TYPE_E *penFocusType); //not support yet 43 | 44 | HI_S32 HI_MPI_ISP_SetAFAttr(ISP_DEV IspDev, const ISP_AF_ATTR_S *pstAFAttr); //not support yet 45 | HI_S32 HI_MPI_ISP_GetAFAttr(ISP_DEV IspDev, ISP_AF_ATTR_S *pstAFAttr); //not support yet 46 | 47 | HI_S32 HI_MPI_ISP_SetMFAttr(ISP_DEV IspDev, const ISP_MF_ATTR_S *pstMFAttr); //not support yet 48 | HI_S32 HI_MPI_ISP_GetMFAttr(ISP_DEV IspDev, ISP_MF_ATTR_S *pstMFAttr); //not support yet 49 | 50 | HI_S32 HI_MPI_ISP_ManualFocusMove(ISP_DEV IspDev, HI_S32 s32MoveSteps); //not support yet 51 | 52 | 53 | #ifdef __cplusplus 54 | #if __cplusplus 55 | } 56 | #endif 57 | #endif /* End of #ifdef __cplusplus */ 58 | 59 | #endif 60 | 61 | -------------------------------------------------------------------------------- /include/mpi_awb.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : mpi_awb.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2012/12/19 10 | Description : 11 | History : 12 | 1.Date : 2012/12/19 13 | Author : n00168968 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __MPI_AWB_H__ 18 | #define __MPI_AWB_H__ 19 | 20 | #include "hi_comm_isp.h" 21 | #include "hi_comm_3a.h" 22 | #include "hi_awb_comm.h" 23 | 24 | #ifdef __cplusplus 25 | #if __cplusplus 26 | extern "C"{ 27 | #endif 28 | #endif /* End of #ifdef __cplusplus */ 29 | 30 | /* The interface of awb lib register to isp. */ 31 | HI_S32 HI_MPI_AWB_Register(ISP_DEV IspDev, ALG_LIB_S *pstAwbLib); 32 | HI_S32 HI_MPI_AWB_UnRegister(ISP_DEV IspDev, ALG_LIB_S *pstAwbLib); 33 | 34 | /* The callback function of sensor register to awb lib. */ 35 | HI_S32 HI_MPI_AWB_SensorRegCallBack(ISP_DEV IspDev, ALG_LIB_S *pstAwbLib, SENSOR_ID SensorId, 36 | AWB_SENSOR_REGISTER_S *pstRegister); 37 | HI_S32 HI_MPI_AWB_SensorUnRegCallBack(ISP_DEV IspDev, ALG_LIB_S *pstAwbLib, SENSOR_ID SensorId); 38 | 39 | HI_S32 HI_MPI_ISP_SetWBAttr(ISP_DEV IspDev, const ISP_WB_ATTR_S *pstWBAttr); 40 | HI_S32 HI_MPI_ISP_GetWBAttr(ISP_DEV IspDev, ISP_WB_ATTR_S *pstWBAttr); 41 | 42 | HI_S32 HI_MPI_ISP_SetAWBAttrEx(ISP_DEV IspDev, ISP_AWB_ATTR_EX_S *pstAWBAttrEx); 43 | HI_S32 HI_MPI_ISP_GetAWBAttrEx(ISP_DEV IspDev, ISP_AWB_ATTR_EX_S *pstAWBAttrEx); 44 | 45 | HI_S32 HI_MPI_ISP_SetCCMAttr(ISP_DEV IspDev, const ISP_COLORMATRIX_ATTR_S *pstCCMAttr); 46 | HI_S32 HI_MPI_ISP_GetCCMAttr(ISP_DEV IspDev, ISP_COLORMATRIX_ATTR_S *pstCCMAttr); 47 | 48 | HI_S32 HI_MPI_ISP_SetSaturationAttr(ISP_DEV IspDev, const ISP_SATURATION_ATTR_S *pstSatAttr); 49 | HI_S32 HI_MPI_ISP_GetSaturationAttr(ISP_DEV IspDev, ISP_SATURATION_ATTR_S *pstSatAttr); 50 | 51 | HI_S32 HI_MPI_ISP_SetColorToneAttr(ISP_DEV IspDev, const ISP_COLOR_TONE_ATTR_S *pstCTAttr); 52 | HI_S32 HI_MPI_ISP_GetColorToneAttr(ISP_DEV IspDev, ISP_COLOR_TONE_ATTR_S *pstCTAttr); 53 | 54 | HI_S32 HI_MPI_ISP_QueryWBInfo(ISP_DEV IspDev, ISP_WB_INFO_S *pstWBInfo); 55 | HI_S32 HI_MPI_ISP_CalGainByTemp(const ISP_WB_ATTR_S *pstWBAttr, HI_U16 u16ColorTemp, HI_S16 s16Shift, HI_U16 *pu16AWBGain); 56 | 57 | #ifdef __cplusplus 58 | #if __cplusplus 59 | } 60 | #endif 61 | #endif /* End of #ifdef __cplusplus */ 62 | 63 | #endif 64 | 65 | -------------------------------------------------------------------------------- /include/mpi_ive.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/include/mpi_ive.h -------------------------------------------------------------------------------- /include/mpi_region.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : mpi_region.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/05/07 10 | Description : 11 | History : 12 | 1.Date : 2013/05/07 13 | Author : c00191088 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __MPI_REGION_H__ 18 | #define __MPI_REGION_H__ 19 | 20 | #include "hi_comm_region.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | HI_S32 HI_MPI_RGN_Create(RGN_HANDLE Handle, const RGN_ATTR_S *pstRegion); 29 | HI_S32 HI_MPI_RGN_Destroy(RGN_HANDLE Handle); 30 | 31 | HI_S32 HI_MPI_RGN_GetAttr(RGN_HANDLE Handle, RGN_ATTR_S *pstRegion); 32 | HI_S32 HI_MPI_RGN_SetAttr(RGN_HANDLE Handle, const RGN_ATTR_S *pstRegion); 33 | 34 | HI_S32 HI_MPI_RGN_SetBitMap(RGN_HANDLE Handle, const BITMAP_S *pstBitmap); 35 | 36 | HI_S32 HI_MPI_RGN_AttachToChn(RGN_HANDLE Handle, const MPP_CHN_S *pstChn, const RGN_CHN_ATTR_S *pstChnAttr); 37 | HI_S32 HI_MPI_RGN_DetachFromChn(RGN_HANDLE Handle, const MPP_CHN_S *pstChn); 38 | 39 | HI_S32 HI_MPI_RGN_SetDisplayAttr(RGN_HANDLE Handle, const MPP_CHN_S *pstChn, const RGN_CHN_ATTR_S *pstChnAttr); 40 | HI_S32 HI_MPI_RGN_GetDisplayAttr(RGN_HANDLE Handle, const MPP_CHN_S *pstChn, RGN_CHN_ATTR_S *pstChnAttr); 41 | 42 | HI_S32 HI_MPI_RGN_SetAttachField(RGN_HANDLE Handle, VIDEO_FIELD_E enAttachField); 43 | HI_S32 HI_MPI_RGN_GetAttachField(RGN_HANDLE Handle, VIDEO_FIELD_E *penAttachField); 44 | 45 | HI_S32 HI_MPI_RGN_GetCanvasInfo(RGN_HANDLE Handle, RGN_CANVAS_INFO_S *pstCanvasInfo); 46 | HI_S32 HI_MPI_RGN_UpdateCanvas(RGN_HANDLE Handle); 47 | 48 | 49 | #ifdef __cplusplus 50 | #if __cplusplus 51 | } 52 | #endif 53 | #endif /* End of #ifdef __cplusplus */ 54 | 55 | #endif /* End of #ifndef __MPI_REGION_H__ */ 56 | 57 | -------------------------------------------------------------------------------- /include/mpi_vb.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : mpi_vb.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2007/10/15 10 | Description : 11 | History : 12 | 1.Date : 2007/10/15 13 | Author : c42025 14 | Modification: Created file 15 | ******************************************************************************/ 16 | #ifndef __MPI_VB_H__ 17 | #define __MPI_VB_H__ 18 | 19 | #include "hi_comm_vb.h" 20 | 21 | #ifdef __cplusplus 22 | #if __cplusplus 23 | extern "C"{ 24 | #endif 25 | #endif /* End of #ifdef __cplusplus */ 26 | 27 | VB_POOL HI_MPI_VB_CreatePool(HI_U32 u32BlkSize,HI_U32 u32BlkCnt,const HI_CHAR *pcMmzName); 28 | HI_S32 HI_MPI_VB_DestroyPool(VB_POOL Pool); 29 | 30 | VB_BLK HI_MPI_VB_GetBlock(VB_POOL Pool, HI_U32 u32BlkSize,const HI_CHAR *pcMmzName); 31 | HI_S32 HI_MPI_VB_ReleaseBlock(VB_BLK Block); 32 | 33 | HI_U32 HI_MPI_VB_Handle2PhysAddr(VB_BLK Block); 34 | VB_POOL HI_MPI_VB_Handle2PoolId(VB_BLK Block); 35 | 36 | HI_S32 HI_MPI_VB_GetSupplementAddr(VB_BLK Block, VIDEO_SUPPLEMENT_S *pstSupplement); 37 | 38 | 39 | HI_S32 HI_MPI_VB_Init(HI_VOID); 40 | HI_S32 HI_MPI_VB_Exit(HI_VOID); 41 | HI_S32 HI_MPI_VB_SetConf(const VB_CONF_S *pstVbConf); 42 | HI_S32 HI_MPI_VB_GetConf(VB_CONF_S *pstVbConf); 43 | 44 | HI_S32 HI_MPI_VB_MmapPool(VB_POOL Pool); 45 | HI_S32 HI_MPI_VB_MunmapPool(VB_POOL Pool); 46 | 47 | HI_S32 HI_MPI_VB_GetBlkVirAddr(VB_POOL Pool, HI_U32 u32PhyAddr, HI_VOID **ppVirAddr); 48 | 49 | HI_S32 HI_MPI_VB_InitModCommPool(VB_UID_E enVbUid); 50 | HI_S32 HI_MPI_VB_ExitModCommPool(VB_UID_E enVbUid); 51 | 52 | HI_S32 HI_MPI_VB_SetModPoolConf(VB_UID_E enVbUid, const VB_CONF_S *pstVbConf); 53 | HI_S32 HI_MPI_VB_GetModPoolConf(VB_UID_E enVbUid, VB_CONF_S *pstVbConf); 54 | 55 | HI_S32 HI_MPI_VB_SetSupplementConf(const VB_SUPPLEMENT_CONF_S *pstSupplementConf); 56 | HI_S32 HI_MPI_VB_GetSupplementConf(VB_SUPPLEMENT_CONF_S *pstSupplementConf); 57 | 58 | 59 | #ifdef __cplusplus 60 | #if __cplusplus 61 | } 62 | #endif 63 | #endif /* End of #ifdef __cplusplus */ 64 | 65 | #endif /*__MPI_VI_H__ */ 66 | 67 | -------------------------------------------------------------------------------- /include/mpi_vda.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. 4 | 5 | ****************************************************************************** 6 | File Name : mpi_vda.h 7 | Version : Initial Draft 8 | Author : Hisilicon multimedia software group 9 | Created : 2013/05/09 10 | Description : 11 | History : 12 | 1.Date : 2013/05/09 13 | Author : x00100808 14 | Modification: Created file 15 | 16 | ******************************************************************************/ 17 | #ifndef __MPI_VDA_H__ 18 | #define __MPI_VDA_H__ 19 | 20 | #include "hi_comm_vda.h" 21 | 22 | #ifdef __cplusplus 23 | #if __cplusplus 24 | extern "C"{ 25 | #endif 26 | #endif /* End of #ifdef __cplusplus */ 27 | 28 | HI_S32 HI_MPI_VDA_CreateChn(VDA_CHN VdaChn, const VDA_CHN_ATTR_S *pstAttr); 29 | HI_S32 HI_MPI_VDA_DestroyChn(VDA_CHN VdaChn); 30 | 31 | HI_S32 HI_MPI_VDA_GetChnAttr(VDA_CHN VdaChn, VDA_CHN_ATTR_S *pstAttr); 32 | HI_S32 HI_MPI_VDA_SetChnAttr(VDA_CHN VdaChn, const VDA_CHN_ATTR_S *pstAttr); 33 | 34 | HI_S32 HI_MPI_VDA_StartRecvPic(VDA_CHN VdaChn); 35 | HI_S32 HI_MPI_VDA_StopRecvPic(VDA_CHN VdaChn); 36 | 37 | HI_S32 HI_MPI_VDA_GetData(VDA_CHN VdaChn, VDA_DATA_S *pstVdaData, HI_S32 s32MilliSec); 38 | HI_S32 HI_MPI_VDA_ReleaseData(VDA_CHN VdaChn, const VDA_DATA_S* pstVdaData); 39 | 40 | HI_S32 HI_MPI_VDA_ResetOdRegion(VDA_CHN VdaChn, HI_S32 s32RgnIndex); 41 | 42 | HI_S32 HI_MPI_VDA_Query(VDA_CHN VdaChn, VDA_CHN_STAT_S *pstChnStat); 43 | 44 | HI_S32 HI_MPI_VDA_GetFd(VDA_CHN VdaChn); 45 | 46 | HI_S32 HI_MPI_VDA_UpdateRef(VDA_CHN VdaChn, const VIDEO_FRAME_INFO_S *pstRefFrame); 47 | 48 | HI_S32 HI_MPI_VDA_SendPic(VDA_CHN VdaChn, const VIDEO_FRAME_INFO_S *pstUserFrame, HI_S32 s32MilliSec); 49 | 50 | 51 | #ifdef __cplusplus 52 | #if __cplusplus 53 | } 54 | #endif 55 | #endif /* End of #ifdef __cplusplus */ 56 | 57 | #endif /* End of #ifndef __MPI_VDA_H__ */ 58 | 59 | -------------------------------------------------------------------------------- /include/rtsp_cmd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/include/rtsp_cmd.h -------------------------------------------------------------------------------- /include/rtspserver.h: -------------------------------------------------------------------------------- 1 | #ifndef RTSPSERVER_H 2 | #define RTSPSERVER_H 3 | 4 | #include "hi_comm_venc.h" 5 | 6 | 7 | #ifndef __PACKED__ 8 | #define __PACKED__ __attribute__((packed)) 9 | #endif 10 | 11 | struct _RTP_FIXED_HEADER 12 | { 13 | /**//* byte 0 */ 14 | unsigned char csrc_len:4; /**//* expect 0 */ 15 | unsigned char extension:1; /**//* expect 1, see RTP_OP below */ 16 | unsigned char padding:1; /**//* expect 0 */ 17 | unsigned char version:2; /**//* expect 2 */ 18 | /**//* byte 1 */ 19 | unsigned char payload:7; /**//* RTP_PAYLOAD_RTSP */ 20 | unsigned char marker:1; /**//* expect 1 */ 21 | /**//* bytes 2, 3 */ 22 | unsigned short seq_no; 23 | /**//* bytes 4-7 */ 24 | unsigned long timestamp; 25 | /**//* bytes 8-11 */ 26 | unsigned long ssrc; /**//* stream number is used here. */ 27 | } __PACKED__; 28 | 29 | typedef struct _RTP_FIXED_HEADER RTP_FIXED_HEADER; 30 | 31 | struct _NALU_HEADER 32 | { 33 | //byte 0 34 | unsigned char TYPE:5; 35 | unsigned char NRI:2; 36 | unsigned char F:1; 37 | 38 | }__PACKED__; /*** 1 BYTES */ 39 | 40 | typedef struct _NALU_HEADER NALU_HEADER; 41 | 42 | struct _FU_INDICATOR 43 | { 44 | //byte 0 45 | unsigned char TYPE:5; 46 | unsigned char NRI:2; 47 | unsigned char F:1; 48 | 49 | }__PACKED__; /*** 1 BYTES */ 50 | 51 | typedef struct _FU_INDICATOR FU_INDICATOR; 52 | 53 | struct _FU_HEADER 54 | { 55 | //byte 0 56 | unsigned char TYPE:5; 57 | unsigned char R:1; 58 | unsigned char E:1; 59 | unsigned char S:1; 60 | } __PACKED__; /*** 1 BYTES */ 61 | typedef struct _FU_HEADER FU_HEADER; 62 | 63 | void InitRtspServer(); 64 | int AddFrameToRtspBuf(int nChanNum, unsigned char bIFrm,VENC_STREAM_S *pstStream); 65 | void AddFrameToRtpListBUf(int nChanNum, unsigned char bIFrm,VENC_STREAM_S *pstStream); 66 | 67 | 68 | 69 | #endif 70 | -------------------------------------------------------------------------------- /ko/acodec.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/acodec.ko -------------------------------------------------------------------------------- /ko/clkcfg_hi3518e.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/clkcfg_hi3518e.sh -------------------------------------------------------------------------------- /ko/demo_config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #audio enable inner codec 4 | audio_disable_mute() 5 | { 6 | himm 0x200f0078 0x0 7 | himm 0x201A0400 0x8 8 | himm 0x201A0020 0x8 9 | } 10 | 11 | #audio disable inner codec 12 | audio_enable_mute() 13 | { 14 | himm 0x200f0078 0x0 15 | himm 0x201A0400 0x8 16 | himm 0x201A0020 0x0 17 | } 18 | 19 | # (normal mode) 20 | ir_cut_enable() 21 | { 22 | # pin_mux 23 | himm 0x200f0100 0x1 # GPIO8_0 24 | himm 0x200f0104 0x1 # GPIO8_1 25 | 26 | # dir 27 | himm 0x201C0400 0x3 28 | # data, GPIO8_0: 0, GPIO8_1: 1 (normal mode) 29 | himm 0x201c000c 0x2 30 | 31 | # back to original 32 | sleep 1; 33 | himm 0x201c000c 0x0 34 | } 35 | 36 | # (ir mode) 37 | ir_cut_disable() 38 | { 39 | # pin_mux 40 | himm 0x200f0100 0x1 # GPIO8_0 41 | himm 0x200f0104 0x1 # GPIO8_1 42 | 43 | # dir 44 | himm 0x201c0400 0x3 45 | # data, GPIO8_0: 1, GPIO8_1: 0 (ir mode) 46 | himm 0x201c000c 0x1 47 | 48 | # back to original 49 | sleep 1 50 | himm 0x201c000c 0x0 51 | } 52 | 53 | isp_ai_piris_pin_mux() 54 | { 55 | himm 0x200F0050 0x0; #P-Iris 56 | himm 0x200F0054 0x0; #P-Iris 57 | himm 0x200F0058 0x0; #P-Iris 58 | himm 0x200F005C 0x0; #P-Iris 59 | } 60 | 61 | isp_ai_pin_mux() 62 | { 63 | # PWM1 64 | himm 0x200F00EC 0x0; 65 | } 66 | 67 | 68 | isp_ai_pwm_config() 69 | { 70 | # 50MHz 71 | himm 0x20030038 0x6; 72 | } 73 | 74 | if [ $# -eq 0 ]; then 75 | echo "normal mode, mute off: ./demo_config 0 0"; 76 | echo "ir mode , mute on : ./demo_config 1 1"; 77 | else 78 | if [ $1 -eq 0 ]; then 79 | echo "normal mode, ir_cut on" 80 | ir_cut_enable > /dev/null; 81 | fi 82 | 83 | if [ $1 -eq 1 ]; then 84 | echo "ir mode, ir_cut off" 85 | ir_cut_disable > /dev/null ; 86 | fi 87 | 88 | if [ $2 -eq 0 ]; then 89 | echo "enable inner codec, mute off" 90 | audio_disable_mute > /dev/null; 91 | fi 92 | 93 | if [ $2 -eq 1 ]; then 94 | echo "disable inner codec, mute on" 95 | audio_enable_mute > /dev/null; 96 | fi 97 | fi 98 | 99 | #isp_ai_pin_mux; 100 | #isp_ai_pwm_config; 101 | #isp_ai_piris_pin_mux(); 102 | -------------------------------------------------------------------------------- /ko/extdrv/adv_7179.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/extdrv/adv_7179.ko -------------------------------------------------------------------------------- /ko/extdrv/piris.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/extdrv/piris.ko -------------------------------------------------------------------------------- /ko/extdrv/pwm.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/extdrv/pwm.ko -------------------------------------------------------------------------------- /ko/extdrv/sample_ist.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/extdrv/sample_ist.ko -------------------------------------------------------------------------------- /ko/extdrv/sensor_i2c.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/extdrv/sensor_i2c.ko -------------------------------------------------------------------------------- /ko/extdrv/sensor_spi.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/extdrv/sensor_spi.ko -------------------------------------------------------------------------------- /ko/extdrv/ssp_ili9341v_6bit.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/extdrv/ssp_ili9341v_6bit.ko -------------------------------------------------------------------------------- /ko/extdrv/ssp_ili9342h_6bit.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/extdrv/ssp_ili9342h_6bit.ko -------------------------------------------------------------------------------- /ko/extdrv/ssp_ota5182.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/extdrv/ssp_ota5182.ko -------------------------------------------------------------------------------- /ko/extdrv/tlv_320aic31.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/extdrv/tlv_320aic31.ko -------------------------------------------------------------------------------- /ko/hi3518e_adec.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_adec.ko -------------------------------------------------------------------------------- /ko/hi3518e_aenc.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_aenc.ko -------------------------------------------------------------------------------- /ko/hi3518e_ai.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_ai.ko -------------------------------------------------------------------------------- /ko/hi3518e_aio.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_aio.ko -------------------------------------------------------------------------------- /ko/hi3518e_ao.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_ao.ko -------------------------------------------------------------------------------- /ko/hi3518e_base.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_base.ko -------------------------------------------------------------------------------- /ko/hi3518e_chnl.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_chnl.ko -------------------------------------------------------------------------------- /ko/hi3518e_h264e.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_h264e.ko -------------------------------------------------------------------------------- /ko/hi3518e_isp.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_isp.ko -------------------------------------------------------------------------------- /ko/hi3518e_ive.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_ive.ko -------------------------------------------------------------------------------- /ko/hi3518e_jpege.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_jpege.ko -------------------------------------------------------------------------------- /ko/hi3518e_rc.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_rc.ko -------------------------------------------------------------------------------- /ko/hi3518e_region.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_region.ko -------------------------------------------------------------------------------- /ko/hi3518e_sys.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_sys.ko -------------------------------------------------------------------------------- /ko/hi3518e_tde.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_tde.ko -------------------------------------------------------------------------------- /ko/hi3518e_venc.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_venc.ko -------------------------------------------------------------------------------- /ko/hi3518e_vgs.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_vgs.ko -------------------------------------------------------------------------------- /ko/hi3518e_viu.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_viu.ko -------------------------------------------------------------------------------- /ko/hi3518e_vou.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_vou.ko -------------------------------------------------------------------------------- /ko/hi3518e_vpss.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi3518e_vpss.ko -------------------------------------------------------------------------------- /ko/hi_cipher.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi_cipher.ko -------------------------------------------------------------------------------- /ko/hi_media.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi_media.ko -------------------------------------------------------------------------------- /ko/hi_mipi.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi_mipi.ko -------------------------------------------------------------------------------- /ko/hi_rtc.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hi_rtc.ko -------------------------------------------------------------------------------- /ko/hifb.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hifb.ko -------------------------------------------------------------------------------- /ko/hiuser.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/hiuser.ko -------------------------------------------------------------------------------- /ko/lowpower.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/lowpower.sh -------------------------------------------------------------------------------- /ko/mmz.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/mmz.ko -------------------------------------------------------------------------------- /ko/pinmux_hi3518e.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/pinmux_hi3518e.sh -------------------------------------------------------------------------------- /ko/sysctl_hi3518e.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/ko/sysctl_hi3518e.sh -------------------------------------------------------------------------------- /lib/libVoiceEngine.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libVoiceEngine.a -------------------------------------------------------------------------------- /lib/libVoiceEngine.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libVoiceEngine.so -------------------------------------------------------------------------------- /lib/lib_cmoscfg.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_cmoscfg.a -------------------------------------------------------------------------------- /lib/lib_cmoscfg.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_cmoscfg.so -------------------------------------------------------------------------------- /lib/lib_hiae.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_hiae.a -------------------------------------------------------------------------------- /lib/lib_hiae.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_hiae.so -------------------------------------------------------------------------------- /lib/lib_hiaf.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_hiaf.a -------------------------------------------------------------------------------- /lib/lib_hiaf.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_hiaf.so -------------------------------------------------------------------------------- /lib/lib_hiawb.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_hiawb.a -------------------------------------------------------------------------------- /lib/lib_hiawb.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_hiawb.so -------------------------------------------------------------------------------- /lib/lib_hidefog.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_hidefog.a -------------------------------------------------------------------------------- /lib/lib_hidefog.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_hidefog.so -------------------------------------------------------------------------------- /lib/lib_iniparser.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_iniparser.a -------------------------------------------------------------------------------- /lib/lib_iniparser.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/lib_iniparser.so -------------------------------------------------------------------------------- /lib/libdnvqe.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libdnvqe.a -------------------------------------------------------------------------------- /lib/libdnvqe.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libdnvqe.so -------------------------------------------------------------------------------- /lib/libhive_AEC.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_AEC.so -------------------------------------------------------------------------------- /lib/libhive_AGC.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_AGC.so -------------------------------------------------------------------------------- /lib/libhive_ANR.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_ANR.so -------------------------------------------------------------------------------- /lib/libhive_AVC.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_AVC.so -------------------------------------------------------------------------------- /lib/libhive_EQ.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_EQ.so -------------------------------------------------------------------------------- /lib/libhive_GAIN.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_GAIN.so -------------------------------------------------------------------------------- /lib/libhive_HDR.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_HDR.so -------------------------------------------------------------------------------- /lib/libhive_HPF.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_HPF.so -------------------------------------------------------------------------------- /lib/libhive_MBC.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_MBC.so -------------------------------------------------------------------------------- /lib/libhive_PEQ.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_PEQ.so -------------------------------------------------------------------------------- /lib/libhive_RES.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_RES.so -------------------------------------------------------------------------------- /lib/libhive_RNR.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_RNR.so -------------------------------------------------------------------------------- /lib/libhive_common.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libhive_common.so -------------------------------------------------------------------------------- /lib/libisp.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libisp.a -------------------------------------------------------------------------------- /lib/libisp.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libisp.so -------------------------------------------------------------------------------- /lib/libive.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libive.a -------------------------------------------------------------------------------- /lib/libive.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libive.so -------------------------------------------------------------------------------- /lib/libmd.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libmd.a -------------------------------------------------------------------------------- /lib/libmd.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libmd.so -------------------------------------------------------------------------------- /lib/libmpi.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libmpi.a -------------------------------------------------------------------------------- /lib/libmpi.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libmpi.so -------------------------------------------------------------------------------- /lib/libslice_trans.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libslice_trans.so -------------------------------------------------------------------------------- /lib/libsns_9m034.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_9m034.a -------------------------------------------------------------------------------- /lib/libsns_9m034.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_9m034.so -------------------------------------------------------------------------------- /lib/libsns_ar0130.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ar0130.a -------------------------------------------------------------------------------- /lib/libsns_ar0130.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ar0130.so -------------------------------------------------------------------------------- /lib/libsns_ar0230.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ar0230.a -------------------------------------------------------------------------------- /lib/libsns_ar0230.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ar0230.so -------------------------------------------------------------------------------- /lib/libsns_imx222.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_imx222.a -------------------------------------------------------------------------------- /lib/libsns_imx222.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_imx222.so -------------------------------------------------------------------------------- /lib/libsns_mn34222.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_mn34222.a -------------------------------------------------------------------------------- /lib/libsns_mn34222.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_mn34222.so -------------------------------------------------------------------------------- /lib/libsns_ov2718.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ov2718.a -------------------------------------------------------------------------------- /lib/libsns_ov2718.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ov2718.so -------------------------------------------------------------------------------- /lib/libsns_ov9712.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ov9712.a -------------------------------------------------------------------------------- /lib/libsns_ov9712.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ov9712.so -------------------------------------------------------------------------------- /lib/libsns_ov9732.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ov9732.a -------------------------------------------------------------------------------- /lib/libsns_ov9732.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ov9732.so -------------------------------------------------------------------------------- /lib/libsns_ov9750.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ov9750.a -------------------------------------------------------------------------------- /lib/libsns_ov9750.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ov9750.so -------------------------------------------------------------------------------- /lib/libsns_ov9752.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ov9752.a -------------------------------------------------------------------------------- /lib/libsns_ov9752.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libsns_ov9752.so -------------------------------------------------------------------------------- /lib/libtde.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libtde.a -------------------------------------------------------------------------------- /lib/libtde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libtde.so -------------------------------------------------------------------------------- /lib/libupvqe.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libupvqe.a -------------------------------------------------------------------------------- /lib/libupvqe.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/lib/libupvqe.so -------------------------------------------------------------------------------- /sample/Makefile: -------------------------------------------------------------------------------- 1 | rel: 2 | @cd hifb; make 3 | @cd vio; make 4 | @cd venc; make 5 | @cd region; make 6 | @cd audio; make 7 | @cd tde; make 8 | @cd ive; make 9 | @cd scene_auto; make 10 | 11 | clean: 12 | @cd hifb; make clean 13 | @cd vio; make clean 14 | @cd venc; make clean 15 | @cd region; make clean 16 | @cd audio; make clean 17 | @cd tde; make clean 18 | @cd ive; make clean 19 | @cd scene_auto; make clean 20 | 21 | cleanall: 22 | @cd hifb; make clean; make cleanstream 23 | @cd vio; make clean; make cleanstream 24 | @cd venc; make clean; make cleanstream 25 | @cd region; make clean; make cleanstream 26 | @cd audio; make clean; make cleanstream 27 | @cd tde; make clean 28 | @cd ive; make clean 29 | @cd scene_auto; make clean 30 | -------------------------------------------------------------------------------- /sample/common/loadbmp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/common/loadbmp.o -------------------------------------------------------------------------------- /sample/common/sample_comm_audio.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/common/sample_comm_audio.o -------------------------------------------------------------------------------- /sample/common/sample_comm_isp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/common/sample_comm_isp.o -------------------------------------------------------------------------------- /sample/common/sample_comm_ive.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/common/sample_comm_ive.o -------------------------------------------------------------------------------- /sample/common/sample_comm_sys.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/common/sample_comm_sys.o -------------------------------------------------------------------------------- /sample/common/sample_comm_venc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/common/sample_comm_venc.o -------------------------------------------------------------------------------- /sample/common/sample_comm_vi.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/common/sample_comm_vi.o -------------------------------------------------------------------------------- /sample/common/sample_comm_vo.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/common/sample_comm_vo.o -------------------------------------------------------------------------------- /sample/common/sample_comm_vpss.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/common/sample_comm_vpss.o -------------------------------------------------------------------------------- /sample/maketest/Makefile: -------------------------------------------------------------------------------- 1 | include ../Makefile.param 2 | 3 | # target source 4 | SRC := $(wildcard *.c) 5 | OBJ := $(SRC:%.c=%.o) 6 | 7 | TARGET := mytest 8 | .PHONY : clean all 9 | 10 | all: $(TARGET) 11 | @echo $(TARGET) 12 | @echo $(SRC) 13 | @echo $(OBJ) 14 | 15 | 16 | $(TARGET):%.o:%.c $(COMM_OBJ) 17 | $(CC) $(CFLAGS) -lpthread -lm -o $@ $^ $(MPI_LIBS) $(AUDIO_LIBA) $(SENSOR_LIBS) 18 | 19 | clean: 20 | @rm -f $(TARGET) 21 | @rm -f $(OBJ) 22 | @rm -f $(COMM_OBJ) 23 | 24 | cleanstream: 25 | @rm -f *.h264 26 | @rm -f *.jpg 27 | @rm -f *.mjp 28 | @rm -f *.mp4 29 | -------------------------------------------------------------------------------- /sample/maketest/test1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("test\n"); 6 | } -------------------------------------------------------------------------------- /sample/maketest/test2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/maketest/test2.c -------------------------------------------------------------------------------- /sample/readme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/readme -------------------------------------------------------------------------------- /sample/venc/Makefile: -------------------------------------------------------------------------------- 1 | # Hisilicon Hi3516 sample Makefile 2 | 3 | include ../Makefile.param 4 | #ifeq ($(SAMPLE_PARAM_FILE), ) 5 | # SAMPLE_PARAM_FILE:=../Makefile.param 6 | # include $(SAMPLE_PARAM_FILE) 7 | #endif 8 | 9 | # target source 10 | SRC := $(wildcard *.c) 11 | OBJ := $(SRC:%.c=%.o) 12 | 13 | TARGET := main 14 | .PHONY : clean all 15 | 16 | all: $(TARGET) 17 | @echo $(TARGET) 18 | @echo $(SRC) 19 | @echo $(OBJ) 20 | 21 | 22 | $(TARGET):main.o sample_venc.o rtspserver.o rtsp_cmd.o $(COMM_OBJ) 23 | $(CC) $(CFLAGS) $(INCLUDE) -lpthread -lm -o $@ $^ $(MPI_LIBS) $(AUDIO_LIBA) $(SENSOR_LIBS) 24 | 25 | clean: 26 | @rm -f $(TARGET) 27 | @rm -f $(OBJ) 28 | @rm -f $(COMM_OBJ) 29 | 30 | cleanstream: 31 | @rm -f *.h264 32 | @rm -f *.jpg 33 | @rm -f *.mjp 34 | @rm -f *.mp4 35 | -------------------------------------------------------------------------------- /sample/venc/main: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/venc/main -------------------------------------------------------------------------------- /sample/venc/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include //exit() 3 | #include // 4 | #include 5 | #include 6 | #include 7 | 8 | 9 | #include "rtspserver.h" 10 | #include "rtsputils.h" 11 | #include "ringfifo.h" 12 | #include "sample_comm.h" 13 | 14 | extern int g_s32Quit ; 15 | 16 | 17 | extern HI_S32 SAMPLE_VENC_1080P_CLASSIC(HI_VOID); 18 | int main(int argc, char *argv[]) 19 | { 20 | MPP_VERSION_S mppVersion; 21 | HI_MPI_SYS_GetVersion(&mppVersion); 22 | printf("MPP Ver %s\n", mppVersion.aVersion); 23 | 24 | HI_S32 s32Ret; 25 | 26 | InitRtspServer(); 27 | 28 | /* H.264@1080p@30fps+H.265@1080p@30fps+H.264@D1@30fps */ 29 | s32Ret = SAMPLE_VENC_1080P_CLASSIC(); 30 | if (HI_SUCCESS == s32Ret) 31 | printf("program exit normally!\n"); 32 | else{ 33 | printf("program exit abnormally!\n"); 34 | exit(s32Ret); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /sample/venc/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/venc/main.o -------------------------------------------------------------------------------- /sample/venc/ringfifo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/venc/ringfifo.c -------------------------------------------------------------------------------- /sample/venc/rtputils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/venc/rtputils.c -------------------------------------------------------------------------------- /sample/venc/rtsp_cmd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/venc/rtsp_cmd.c -------------------------------------------------------------------------------- /sample/venc/rtsp_cmd.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/venc/rtsp_cmd.o -------------------------------------------------------------------------------- /sample/venc/rtspserver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/venc/rtspserver.c -------------------------------------------------------------------------------- /sample/venc/rtspserver.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/venc/rtspserver.o -------------------------------------------------------------------------------- /sample/venc/rtsputils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/venc/rtsputils.c -------------------------------------------------------------------------------- /sample/venc/sample_venc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/venc/sample_venc.c -------------------------------------------------------------------------------- /sample/venc/sample_venc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/sample/venc/sample_venc.o -------------------------------------------------------------------------------- /tools/rc_attr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/tools/rc_attr.c -------------------------------------------------------------------------------- /tools/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hgstudy/HISI3518-RTSP/aceaff2cbb858797111eb8359947ef71ca104e89/tools/readme.txt --------------------------------------------------------------------------------