Sensor modes added:
for on hi356ev300 : Isp_FrameRate=50 , majestic set to 1920x1080 50fps => 50fps
for gk7205v300 : Isp_FrameRate=48 , majestic set to 1920x1080 48fps => 47fps
for on hi356ev300 set Isp_FrameRate=45, majestic to 1920x1080 fps: 45 to get 39fps for on gk7205v300 set Isp_FrameRate=36, majestic to 1920x1080 fps: 36 to get 33fps
Isp_FrameRate=90 # can work at 90fps only when majestic is set to 1280x720 !!!
Max Isp_FrameRate=55 for 1920x1080
Isp_FrameRate=68 # # max supported value on hi356ev300 at 1280x720
set Isp_FrameRate=30 to enable this mode
Compile OpenIPC for Hisilicon in /home/home/src/openipc/
.
Change code and copy over stock drivers.
cp imx335_sensor_ctl.c /home/home/src/openipc/output/build/hisilicon-opensdk/libraries/sensor/hi3516ev200/sony_imx335
cp imx335_cmos.c /home/home/src/openipc/output/build/hisilicon-opensdk/libraries/sensor/hi3516ev200/sony_imx335
cp Makefile /home/home/src/openipc/output/build/hisilicon-opensdk/libraries/sensor/hi3516ev200/sony_imx335
This will rebuild it:
make -C /home/home/src/openipc/output/ hisilicon-opensdk-rebuild
copy driver to device:
scp /home/home/src/openipc/output/build/hisilicon-opensdk/libraries/sensor/hi3516ev200/sony_imx335/libsns_imx335.so [email protected]:/usr/lib/sensors/libsns_imx335ex.so
binning mode code ported from: https://github.com/OpenIPC/silicon_research/commit/52e0faadbdd830aa989902aeba94e1f5ab65483f .
To run at above 45fps a recent version of majestic is required.
Copy new driver to camera as usr/lib/sensors/libsns_imx335ex.so
Copy imx335_fps.ini to /etc/sensors/imx335_fps.ini
in /etc/majestic.yaml set:
video0:
codec: h265
rcMode: cbr
gopSize: 1.5
size: 1920x1080
fps: 45
...
isp:
sensorConfig: /etc/sensors/imx335_fps.ini
All modes will work at fps: 45, some of them can run at higher refresh rate.
set #define GOKE_HW 1 in imx335_cmos.c and clear it for hisilicon