Fix OSDRV for GM8136

pull/177/head
Dmitry Ermakov 2022-02-11 10:28:23 +03:00
parent 7230fa3ff4
commit 85f6fcb9cb
20 changed files with 998 additions and 466 deletions

View File

@ -77,7 +77,7 @@ BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y
# BR2_PACKAGE_SSHPASS is not set
BR2_PACKAGE_UACME_OPENIPC=y
BR2_PACKAGE_VTUND_OPENIPC=y
# BR2_PACKAGE_GRAINMEDIA_OSDRV_GM8136=y
BR2_PACKAGE_GRAINMEDIA_OSDRV_GM8136=y
BR2_PACKAGE_YAML_CLI=y
# WiFi

View File

@ -360,7 +360,7 @@ xm550() {
#
#######
#
# gm8136 # testing..
gm8136 # testing..
#
#######
#
@ -397,7 +397,7 @@ xm550() {
# hi3516ev300 # OpenIPC
# hi3516ev300_dev # OpenIPC development
# hi3516ev300_glibc # testing..
hi3516ev300_tehshield # Tehshield
#hi3516ev300_tehshield # Tehshield
# hi3516ev300_ultimate # OpenIPC_ultimate version
# hi3518ev300 # OpenIPC
#

View File

@ -35,10 +35,10 @@ start() {
#
logger -s -p daemon.info -t grainmedia "Loading of kernel modules and initialization of the video system has started"
export TZ=$(cat /etc/TZ)
load_grainmedia -i
load_grainmedia
#
#
load_majestic
#load_majestic
}
stop() {

View File

@ -1,110 +0,0 @@
; GM8136_1M(Tiny Memory) Product Configuration (Without LCD, MPEG4, Encode Switching)
[VERSION]
VERSION = 0.1
[GRAPH_TYPE]
; graph type: 1(DVR with display 3DI), 2(IPCAM)
graph_type = 2
[DISPLAY_GROUP]
; GROUP0 = lcd_vch0, lcd_vch1
; Display group method:
; 0(FRAME), 2(2FRAME), 3(2FRAME_2FRAME), 4(FRAME_FRAME)
GROUP0 = 0
METHOD0 = 0
[BITRATE]
min_compressed_ratio = 35
max_bitrate = 8M/10240K, 3M/8192K, 2M/4096K,720P/4096K, VGA/1024K, D1/1024K, CIF/512K
[PLAYBACK]
; CONFIG1 = resolution_keywords/channels/total_fps/ddr_channel, ...
; default resolution keywords: 8M, 5M, 4M, 3M, 2M, 1.3M, 1M, nHD, 1080P, 720P, D1, VGA, CIF, QCIF
[PLAYBACK_3DI]
; CONFIG1 = resolution_keywords/channels/total_fps/ddr_channel, ...
[ENCODE_STREAMS]
; CONFIG1 = resolution_keywords/channels/total_fps/ddr_channel, ...
CONFIG1 = 720P/1/30/0, D1/1/30/0
[ENCODE_CAPTURE]
; CONFIG1 = resolution_keywords/channels/total_fps/ddr_channel, ...
CONFIG1 = 720P/1/30/0, D1/1/30/0
[ENCODE_SCALER]
; CONFIG1 = resolution keywords = channels/total_fps/ddr_channel, ...
;CONFIG1 = D1/1/30/0
[ENCODE_DIDN]
; CONFIG1 = resolution_keywords/channels/total_fps/ddr_channel, ...
CONFIG1 = 720P/1/30/0, D1/1/30/0
[RAW_OUT]
; CONFIG1 = channels/total_fps/ddr_channel, ...
[LDC_OUT]
; CONFIG1 = channels/total_fps/ddr_channel, ...
[AUDIO]
; CONFIG1 = audio_keyword/channels/sample_rate/stereo/bits/ddr_vch
CONFIG1 = au_grab/4/16K/mono/16/0, au_render/4/16K/mono/16/0
max_frame_samples = 2048
grab_buffer_time = 768
render_buffer_time = 768
[BUFFER_DISPLAY]
; Display count lcd_vch/count/ddr_channel, lcd_vch/count/ddr_channel, ...
display_count = 0/0/0
; Playback 3DI input buffer count per channel
playback_3di_input_count = 0
; Playback scaler input buffer count per channel
playback_scaler_input_count = 0
[BUFFER_BITSTREAM]
; Playback bitstream data buffer: time/ddr_vch
datain_buffer_time = 0/0
; Record bitstream data buffer: time/ddr_vch
; dataout_buffer_time = 264/0
dataout_buffer_time = 231/0
[BUFFER_CAPTURE]
; Encode capture buffer three slop: fps/count, fps/count, fps/count
CONFIG1 = 720P/30/3, 720P/25/3, 720P/5/2
CONFIG2 = D1/30/3, D1/25/3, D1/5/2
capture_max_fps = 30
[BUFFER_ENCODE_DIDN]
; Encode substream scaler out buffer time
encode_didn_out_buffer_count = 2
[BUFFER_SUBSTREAM]
; Encode substream scaler out buffer time
encode_scaler_out_buffer_count = 2
[BUFFER_RAW]
raw_out_buffer_count = 0
[BUFFER_LDC]
ldc_out_buffer_count = 0
[ENCODE_MOTION]
; Enable motion data under specified resolution by "motion_resolution = D1, CIF..."
; motion_resolution = CIF
[SNAPSHOT]
;yuv_max_width = 320
;yuv_max_height = 240
yuv_max_width = 704
yuv_max_height = 576
max_bitstream_size = 65536
[RESERVED_BUFFER]
; Reserved buffer ratio for seamless switching usage, such as 4CH 720P->4CH 1080P without any stop
; To reduce memory usage, set reserved_ratio = 0
reserved_ratio = 0

View File

@ -1,325 +1,218 @@
#!/bin/sh
video_frontend=ov2715
video_system=PAL
video_system=NTSC
# Support video_front_end: ov2710, ov2715, ov9712, ov9715, ov9714, ov5653
# Support video_front_end: mt9m034, ar0130, ar0140, ar0330, ar0331
# Support video_front_end: imx222, imx238, imx236, imx238
chipver=`head -1 /proc/pmu/chipver`
chipid=`echo $chipver | cut -c 1-4`
chipver=$(head -1 /proc/pmu/chipver)
chipid=$(echo $chipver | cut -c 1-4)
if [ "$chipid" != "8136" ] && [ "$chipid" != "8135" ]; then
echo "Error! Not support chip version $chipver."
exit
fi
if [ "$video_system" != "NTSC" ] && [ "$video_system" != "PAL" ]; then
echo "Invalid argument for NTSC/PAL."
exit
fi
if [ "$1" != "" ] ; then
if [ "$1" != "" ]; then
video_frontend=$1
fi
#cp /usr/etc/gm/isp328_*.cfg /mnt/mtd/
if [ "$video_frontend" != "ov2715" ] && [ "$video_frontend" != "ov2710" ] &&
[ "$video_frontend" != "ov9710" ] && [ "$video_frontend" != "ov9712" ] &&
[ "$video_frontend" != "ov9715" ] && [ "$video_frontend" != "ov9714" ] &&
[ "$video_frontend" != "ar0130" ] && [ "$video_frontend" != "mt9m034" ] &&
[ "$video_frontend" != "ar0140" ] && [ "$video_frontend" != "ar0141" ] &&
[ "$video_frontend" != "ar0330" ] && [ "$video_frontend" != "ar0331" ] &&
[ "$video_frontend" != "imx222" ] && [ "$video_frontend" != "imx124" ] &&
[ "$video_frontend" != "imx238" ] && [ "$video_frontend" != "imx236" ]; then
echo "Invalid argument for video frontend: $video_frontend"
exit
fi
#if [ "$video_frontend" != "ov2715" ] && [ "$video_frontend" != "ov2710" ] &&
# [ "$video_frontend" != "ov9710" ] && [ "$video_frontend" != "ov9712" ] &&
# [ "$video_frontend" != "ov9715" ] && [ "$video_frontend" != "ov9714" ] &&
# [ "$video_frontend" != "ar0130" ] && [ "$video_frontend" != "mt9m034" ] &&
# [ "$video_frontend" != "ar0140" ] && [ "$video_frontend" != "ar0141" ] &&
# [ "$video_frontend" != "ar0330" ] && [ "$video_frontend" != "ar0331" ] &&
# [ "$video_frontend" != "imx222" ] && [ "$video_frontend" != "imx124" ] &&
# [ "$video_frontend" != "imx238" ] && [ "$video_frontend" != "imx236" ]; then
# echo "Invalid argument for video frontend: $video_frontend"
# exit
#fi
cd /lib/modules/3.3.0/grainmedia
insmod /lib/modules/3.3.0/grainmedia/frammap.ko
insmod frammap.ko
cat /proc/frammap/ddr_info
if [ "$chipid" == "8136" ];then
insmod /lib/modules/3.3.0/grainmedia/log.ko mode=0 log_ksize=256
else
insmod /lib/modules/3.3.0/grainmedia/log.ko mode=0 log_ksize=64
fi
insmod /lib/modules/3.3.0/grainmedia/ms.ko
insmod /lib/modules/3.3.0/grainmedia/em.ko
if [ "$chipid" == "8136" ];then
insmod /lib/modules/3.3.0/grainmedia/flcd200-common.ko
insmod /lib/modules/3.3.0/grainmedia/flcd200-pip.ko output_type=0 fb0_fb1_share=1 # CVBS display
fi
insmod /lib/modules/3.3.0/grainmedia/sar_adc.ko
insmod /lib/modules/3.3.0/grainmedia/think2d.ko
insmod /lib/modules/3.3.0/grainmedia/ftpwmtmr010.ko
insmod /lib/modules/3.3.0/grainmedia/fe_common.ko
insmod /lib/modules/3.3.0/grainmedia/adda308.ko input_mode=0 single_end=1
insmod /lib/modules/3.3.0/grainmedia/ft3dnr200.ko src_yc_swap=1 dst_yc_swap=1 ref_yc_swap=1
insmod log.ko mode=0 log_ksize=256
insmod ms.ko
insmod em.ko
insmod gm2d.ko
insmod flcd200-common.ko
insmod flcd200-pip.ko output_type=0 fb0_fb1_share=1 # CVBS display
insmod sar_adc.ko run_mode=4 #run_mode=4 is for CVBS out
#insmod ftpwmtmr010.ko
insmod fe_common.ko
insmod adda308.ko input_mode=0 single_end=1
insmod ft3dnr200.ko src_yc_swap=1 dst_yc_swap=1 ref_yc_swap=1
case "$video_frontend" in
"ov2715"|"ov2710")
codec_max_width=1920
codec_max_height=1080
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_ov2715.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
devmem 0x90c00054 32 0x10028000
devmem 0x90c000ac 32 0xFFFFFDC2
insmod /lib/modules/3.3.0/grainmedia/fisp_ov2715.ko sensor_w=1920 sensor_h=1080 fps=30 mirror=0 flip=0
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_ov2715.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
devmem 0x90c00054 32 0x10028000
devmem 0x90c000ac 32 0xFFFFFDC2
insmod /lib/modules/3.3.0/grainmedia/fisp_ov2715.ko sensor_w=1920 sensor_h=1080 fps=25 mirror=0 flip=0
fi
;;
"soih42")
codec_max_width=1280
codec_max_height=720
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_soih42.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
devmem 0x90c00054 32 0x10028000
devmem 0x90c000ac 32 0xFFFFFDC2
[ -z "$FISH_SOIH42_CFG" ] && insmod /lib/modules/3.3.0/grainmedia/fisp_soih42.ko sensor_w=1280 sensor_h=720 fps=30 mirror=0 flip=0
[ -n "$FISH_SOIH42_CFG" ] && insmod /lib/modules/3.3.0/grainmedia/fisp_soih42.ko $FISH_SOIH42_CFG
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_soih42.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
devmem 0x90c00054 32 0x10028000
devmem 0x90c000ac 32 0xFFFFFDC2
[ -z "$FISH_SOIH42_CFG" ] && insmod /lib/modules/3.3.0/grainmedia/fisp_soih42.ko sensor_w=1280 sensor_h=720 fps=25 mirror=0 flip=0
[ -n "$FISH_SOIH42_CFG" ] && insmod /lib/modules/3.3.0/grainmedia/fisp_soih42.ko $FISH_SOIH42_CFG
fi
;;
"soih81")
codec_max_width=1280
codec_max_height=720
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_soih81.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
devmem 0x90c00054 32 0x10028000
devmem 0x90c000ac 32 0xFFFFFDC2
insmod /lib/modules/3.3.0/grainmedia/fisp_soih81.ko sensor_w=1280 sensor_h=720 fps=30 mirror=0 flip=0
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_soih81.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
devmem 0x90c00054 32 0x10028000
devmem 0x90c000ac 32 0xFFFFFDC2
insmod /lib/modules/3.3.0/grainmedia/fisp_soih81.ko sensor_w=1280 sensor_h=720 fps=25 mirror=0 flip=0
fi
;;
"53V13")
if [ -z "$codec_max_width" ];then
codec_max_width=1280
codec_max_height=720
fi
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_sc1035.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
devmem 0x90c00054 32 0x10028000
devmem 0x90c000ac 32 0xFFFFFDC2
insmod /lib/modules/3.3.0/grainmedia/fisp_53V13.ko sensor_w=$codec_max_width sensor_h=$codec_max_height fps=30 mirror=0 flip=0
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_sc1035.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
devmem 0x90c00054 32 0x10028000
devmem 0x90c000ac 32 0xFFFFFDC2
insmod /lib/modules/3.3.0/grainmedia/fisp_53V13.ko sensor_w=$codec_max_width sensor_h=$codec_max_height fps=25 mirror=0 flip=0
fi
;;
"ov9715"|"ov9712"|"ov9710")
codec_max_width=1280
codec_max_height=720
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_ov9715.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
insmod /lib/modules/3.3.0/grainmedia/fisp_ov9715.ko sensor_w=1280 sensor_h=720 fps=30 mirror=0 flip=0
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_ov9715.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
insmod /lib/modules/3.3.0/grainmedia/fisp_ov9715.ko sensor_w=1280 sensor_h=720 fps=25 mirror=0 flip=0
fi
;;
"ar0330")
codec_max_width=1920
codec_max_height=1080
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_ar0330.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
insmod /lib/modules/3.3.0/grainmedia/fisp_ar0330.ko sensor_w=1920 sensor_h=1080 mirror=0 flip=0 interface=1 fps=30
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_ar0330.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
insmod /lib/modules/3.3.0/grainmedia/fisp_ar0330.ko sensor_w=1920 sensor_h=1080 mirror=0 flip=0 interface=1 fps=25
fi
;;
"ar0331")
codec_max_width=1920
codec_max_height=1080
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_ar0331.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
insmod /lib/modules/3.3.0/grainmedia/fisp_ar0331.ko sensor_w=1920 sensor_h=1080 interface=0 fps=30
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_ar0331.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
insmod /lib/modules/3.3.0/grainmedia/fisp_ar0331.ko sensor_w=1920 sensor_h=1080 interface=0 fps=25
fi
;;
"mt9m034")
codec_max_width=1280
codec_max_height=720
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_mt9m034.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
insmod /lib/modules/3.3.0/grainmedia/fisp_mt9m034.ko sensor_w=1280 sensor_h=720 fps=30
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_mt9m034.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
insmod /lib/modules/3.3.0/grainmedia/fisp_mt9m034.ko sensor_w=1280 sensor_h=720 fps=25
fi
;;
"ar0140"|"ar0141")
codec_max_width=1280
codec_max_height=720
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_ar0140.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
insmod /lib/modules/3.3.0/grainmedia/fisp_ar0140.ko sensor_w=1280 sensor_h=720 fps=30
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_ar0140.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
insmod /lib/modules/3.3.0/grainmedia/fisp_ar0140.ko sensor_w=1280 sensor_h=720 fps=25
fi
;;
"imx238")
codec_max_width=1280
codec_max_height=720
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_imx238.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
insmod /lib/modules/3.3.0/grainmedia/fisp_imx138.ko sensor_w=1280 sensor_h=720 fps=30
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_imx238.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
insmod /lib/modules/3.3.0/grainmedia/fisp_imx138.ko sensor_w=1280 sensor_h=720 fps=25
fi
;;
"imx222")
codec_max_width=1920
codec_max_height=1080
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_imx222.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
insmod /lib/modules/3.3.0/grainmedia/fisp_imx122.ko sensor_w=1920 sensor_h=1080 fps=30
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_imx222.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
insmod /lib/modules/3.3.0/grainmedia/fisp_imx122.ko sensor_w=1920 sensor_h=1080 fps=25
fi
;;
"imx236")
codec_max_width=1920
codec_max_height=1080
if [ "$video_system" == "NTSC" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_imx236.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=0
insmod /lib/modules/3.3.0/grainmedia/fisp_imx136.ko sensor_w=1920 sensor_h=1080 fps=30
elif [ "$video_system" == "PAL" ] ; then
insmod /lib/modules/3.3.0/grainmedia/fisp328.ko cfg_path=/mnt/mtd/isp328_imx236.cfg
insmod /lib/modules/3.3.0/grainmedia/fisp_algorithm.ko pwr_freq=1
insmod /lib/modules/3.3.0/grainmedia/fisp_imx136.ko sensor_w=1920 sensor_h=1080 fps=25
fi
;;
*)
echo "Invalid argument for video frontend: $video_frontend"
exit
;;
"ov2715" | "ov2710")
codec_max_width=1920
codec_max_height=1080
if [ "$video_system" == "NTSC" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_ov2715.cfg
insmod fisp_algorithm.ko pwr_freq=0
insmod fisp_ov2715.ko sensor_w=1920 sensor_h=1080 interface=0 fps=30 mirror=1 flip=1
elif [ "$video_system" == "PAL" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_ov2715.cfg
insmod fisp_algorithm.ko pwr_freq=1
insmod fisp_ov2715.ko sensor_w=1920 sensor_h=1080 interface=0 fps=25 mirror=1 flip=1
fi
;;
"ov9715" | "ov9712" | "ov9710")
codec_max_width=1280
codec_max_height=720
if [ "$video_system" == "NTSC" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_ov9715.cfg
insmod fisp_algorithm.ko pwr_freq=0
insmod fisp_ov9715.ko sensor_w=1280 sensor_h=720 fps=30 mirror=1 flip=1
elif [ "$video_system" == "PAL" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_ov9715.cfg
insmod fisp_algorithm.ko pwr_freq=1
insmod fisp_ov9715.ko sensor_w=1280 sensor_h=720 fps=25 mirror=1 flip=1
fi
;;
"ar0330")
codec_max_width=1920
codec_max_height=1080
if [ "$video_system" == "NTSC" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_ar0330.cfg
insmod fisp_algorithm.ko pwr_freq=0
insmod fisp_ar0330.ko sensor_w=1920 sensor_h=1080 mirror=1 flip=1 interface=1 fps=30
elif [ "$video_system" == "PAL" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_ar0330.cfg
insmod fisp_algorithm.ko pwr_freq=1
insmod fisp_ar0330.ko sensor_w=1920 sensor_h=1080 mirror=1 flip=1 interface=1 fps=25
fi
;;
"ar0331")
codec_max_width=1920
codec_max_height=1080
if [ "$video_system" == "NTSC" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_ar0331.cfg
insmod fisp_algorithm.ko pwr_freq=0
insmod fisp_ar0331.ko sensor_w=1920 sensor_h=1080 interface=0 fps=30
elif [ "$video_system" == "PAL" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_ar0331.cfg
insmod fisp_algorithm.ko pwr_freq=1
insmod fisp_ar0331.ko sensor_w=1920 sensor_h=1080 interface=0 fps=25
fi
;;
"mt9m034")
codec_max_width=1280
codec_max_height=720
if [ "$video_system" == "NTSC" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_mt9m034.cfg
insmod fisp_algorithm.ko pwr_freq=0
insmod fisp_mt9m034.ko sensor_w=1280 sensor_h=720 fps=30
elif [ "$video_system" == "PAL" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_mt9m034.cfg
insmod fisp_algorithm.ko pwr_freq=1
insmod fisp_mt9m034.ko sensor_w=1280 sensor_h=720 fps=25
fi
;;
"ar0140" | "ar0141")
codec_max_width=1280
codec_max_height=720
if [ "$video_system" == "NTSC" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_ar0140.cfg
insmod fisp_algorithm.ko pwr_freq=0
insmod fisp_ar0140.ko sensor_w=1280 sensor_h=720 fps=30
elif [ "$video_system" == "PAL" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_ar0140.cfg
insmod fisp_algorithm.ko pwr_freq=1
insmod fisp_ar0140.ko sensor_w=1280 sensor_h=720 fps=25
fi
;;
"imx238")
codec_max_width=1280
codec_max_height=720
if [ "$video_system" == "NTSC" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_imx238.cfg
insmod fisp_algorithm.ko pwr_freq=0
insmod fisp_imx138.ko sensor_w=1280 sensor_h=720 fps=30
elif [ "$video_system" == "PAL" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_imx238.cfg
insmod fisp_algorithm.ko pwr_freq=1
insmod fisp_imx138.ko sensor_w=1280 sensor_h=720 fps=25
fi
;;
"imx222")
codec_max_width=1920
codec_max_height=1080
if [ "$video_system" == "NTSC" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_imx222.cfg
insmod fisp_algorithm.ko pwr_freq=0
insmod fisp_imx122.ko sensor_w=1920 sensor_h=1080 fps=30
elif [ "$video_system" == "PAL" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_imx222.cfg
insmod fisp_algorithm.ko pwr_freq=1
insmod fisp_imx122.ko sensor_w=1920 sensor_h=1080 fps=25
fi
;;
"imx236")
codec_max_width=1920
codec_max_height=1080
if [ "$video_system" == "NTSC" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_imx236.cfg
insmod fisp_algorithm.ko pwr_freq=0
insmod fisp_imx136.ko sensor_w=1920 sensor_h=1080 fps=30
elif [ "$video_system" == "PAL" ]; then
insmod fisp328.ko cfg_path=/etc/sensors/isp328_imx236.cfg
insmod fisp_algorithm.ko pwr_freq=1
insmod fisp_imx136.ko sensor_w=1920 sensor_h=1080 fps=25
fi
;;
*)
echo "Invalid argument for video frontend: $video_frontend"
exit
;;
esac
insmod /lib/modules/3.3.0/grainmedia/vcap300_common.ko
insmod /lib/modules/3.3.0/grainmedia/vcap0.ko vi_mode=0,1 ext_irq_src=1
insmod /lib/modules/3.3.0/grainmedia/vcap300_isp.ko ch_id=0 range=1
insmod /lib/modules/3.3.0/grainmedia/fmcp_drv.ko mp4_tight_buf=1
insmod vcap300_common.ko
insmod vcap0.ko vi_mode=0,1 ext_irq_src=1 sync_time_div=500
insmod vcap300_isp.ko ch_id=0 range=1
insmod fmcp_drv.ko mp4_tight_buf=1
insmod favc_enc.ko h264e_max_b_frame=0 h264e_one_ref_buf=1 h264e_tight_buf=1 h264e_max_width=$codec_max_width h264e_max_height=$codec_max_height h264e_slice_offset=1
insmod favc_rc.ko
insmod fmjpeg_drv.ko
insmod /lib/modules/3.3.0/grainmedia/favc_enc.ko h264e_max_b_frame=0 h264e_one_ref_buf=1 h264e_tight_buf=1 h264e_max_width=$codec_max_width h264e_max_height=$codec_max_height h264e_slice_offset=1
insmod sw_osg.ko
insmod fscaler300.ko max_vch_num=1 max_minors=1 temp_width=0 temp_height=0
insmod osd_dispatch.ko
insmod codec.ko
insmod audio_drv.ko audio_ssp_num=0,1 audio_ssp_chan=1,1 bit_clock=400000,400000 sample_rate=8000,8000 audio_out_enable=1,0
insmod gs.ko
insmod vpd.ko vpd_dbglevel=0 gmlib_dbglevel=0 quiet=1
insmod /lib/modules/3.3.0/grainmedia/favc_rc.ko
insmod /lib/modules/3.3.0/grainmedia/decoder.ko
echo /tmp >/proc/videograph/dumplog #configure log path
insmod /lib/modules/3.3.0/grainmedia/fmjpeg_drv.ko jpg_enc_max_chn=2
if [ "$chipid" == 8136 ];then
insmod /lib/modules/3.3.0/grainmedia/fmpeg4_drv.ko mp4_max_width=$codec_max_width mp4_max_height=$codec_max_height
insmod /lib/modules/3.3.0/grainmedia/mp4e_rc.ko
fi
# Encode 4CH + Cascade YUV 1CH
insmod /lib/modules/3.3.0/grainmedia/sw_osg.ko
if [ "$chipid" == 8136 ];then
insmod /lib/modules/3.3.0/grainmedia/fscaler300.ko max_vch_num=5 max_minors=5 temp_width=0 temp_height=0
else
insmod /lib/modules/3.3.0/grainmedia/fscaler300.ko max_vch_num=3 max_minors=3 temp_width=0 temp_height=0
fi
#insmod /lib/modules/3.3.0/grainmedia/ftdi220.ko
insmod /lib/modules/3.3.0/grainmedia/osd_dispatch.ko
insmod /lib/modules/3.3.0/grainmedia/codec.ko
insmod /lib/modules/3.3.0/grainmedia/audio_drv.ko audio_ssp_num=0,1 audio_ssp_chan=1,1 bit_clock=400000,400000 sample_rate=8000,8000 audio_out_enable=1,0
if [ "$chipid" == "8136" ];then
insmod /lib/modules/3.3.0/grainmedia/gs.ko reserved_ch_cnt=2 alloc_unit_size=262144 flow_mode=1
else
insmod /lib/modules/3.3.0/grainmedia/gs.ko reserved_ch_cnt=1 alloc_unit_size=65536 flow_mode=1
fi
if [ -f /lib/loop_comm.ko ];then
insmod /lib/loop_comm.ko
else
insmod /lib/modules/3.3.0/grainmedia/loop_comm.ko
fi
if [ -f /lib/vpd_slave.ko ];then
insmod /lib/vpd_slave.ko vpslv_dbglevel=0 ddr0_sz=0 ddr1_sz=0 config_path="/mnt/mtd/" usr_func=0 usr_param=0 datain_minors=4 dataout_minors=8
else
insmod /lib/modules/3.3.0/grainmedia/vpd_slave.ko vpslv_dbglevel=0 ddr0_sz=0 ddr1_sz=0 config_path="/mnt/mtd/" usr_func=0 usr_param=0 datain_minors=4 dataout_minors=8
fi
if [ -f /lib/vpd_master.ko ];then
insmod /lib/vpd_master.ko vpd_dbglevel=0 gmlib_dbglevel=0
else
insmod /lib/modules/3.3.0/grainmedia/vpd_master.ko vpd_dbglevel=0 gmlib_dbglevel=0
fi
echo /root > /proc/videograph/dumplog #configure log path
mdev -s
cat /proc/modules
echo 0 > /proc/frammap/free_pages #should not free DDR1 for performance issue
echo 1 > /proc/vcap300/vcap0/dbg_mode #need debug mode to detect capture overflow
echo 0 > /proc/videograph/em/dbglevel
echo 0 > /proc/videograph/gs/dbglevel
echo 0 > /proc/videograph/ms/dbglevel
echo 0 > /proc/videograph/datain/dbglevel
echo 0 > /proc/videograph/dataout/dbglevel
echo 0 > /proc/videograph/vpd/dbglevel
echo 0 > /proc/videograph/gmlib/dbglevel
echo 0 >/proc/frammap/free_pages #should not free DDR1 for performance issue
echo 1 >/proc/vcap300/vcap0/dbg_mode #need debug mode to detect capture overflow
echo 0 >/proc/videograph/em/dbglevel
echo 0 >/proc/videograph/gs/dbglevel
echo 0 >/proc/videograph/ms/dbglevel
echo 0 >/proc/videograph/datain/dbglevel
echo 0 >/proc/videograph/dataout/dbglevel
echo 0 >/proc/videograph/vpd/dbglevel
echo 0 >/proc/videograph/gmlib/dbglevel
echo =========================================================================
if [ -e /mnt/mtd/gmlib.cfg ] ; then
grep ";" /mnt/mtd/gmlib.cfg |sed -n '1,1p'
if [ -e /etc/sensors/gmlib.cfg ]; then
grep ";" /etc/sensors/gmlib.cfg | sed -n '1,1p'
else
grep ";" /mnt/mtd/spec.cfg |sed -n '2,6p'
grep ";" /etc/sensors/spec.cfg | sed -n '2,6p'
fi
#rootfs_date=`ls /|grep 00_2`
#mtd_date=`ls /mnt/mtd|grep 00_2`
echo =========================================================================
echo " Video Front End: $video_frontend"
echo " Chip Version: $chipver"
@ -339,5 +232,5 @@ devmem 0x9a100030 32 0xDF000f04
#echo w fps 15 > /proc/isp320/command
# force max CPU performance
#echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo performance >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
#echo 30 > /proc/videograph/ft3dnr/job_pre_callback

View File

@ -1,61 +0,0 @@
#!/bin/sh
# Grain Media Video Graph Cleanup Script
video_frontend=soih42
# GM8210, GM828x: nvp1918, nvp1118, cx26848, cx26848_960h, tw2968, mv4101
# GM8139, GM8136: soih42, ov9715, ov5653, ar0331, mt9m034, ov9714
# GM8139, GM8136: imx122, imx222, imx138, imx236, ar0835, ar0330, mt9p031, imx238, mn34220
chipver=`head -1 /proc/pmu/chipver`
chipid=`echo $chipver | cut -c 1-4`
cpu_enum=`grep -A 3 'cpu_enum' /proc/pmu/attribute | grep 'Attribute value' | cut -c 18`
# cpu_enum = 0(host_fa726), 1(host_fa626), 2(host_7500), 3(dev_fa726), 4(dev_fa626)
/sbin/rmmod vpd_master.ko
/sbin/rmmod vpd_slave.ko
/sbin/rmmod loop_comm.ko
/sbin/rmmod gs.ko
/sbin/rmmod audio_drv.ko
/sbin/rmmod codec.ko
/sbin/rmmod osd_dispatch.ko
/sbin/rmmod fscaler300.ko
/sbin/rmmod sw_osg.ko
if [ "$chipid" != 8135 ];then
/sbin/rmmod mp4e_rc.ko
/sbin/rmmod fmpeg4_drv.ko
fi
/sbin/rmmod fmjpeg_drv.ko
/sbin/rmmod decoder.ko
/sbin/rmmod favc_rc.ko
/sbin/rmmod favc_enc.ko
/sbin/rmmod fmcp_drv.ko
if [ "$chipid" == "8139" ] || [ "$chipid" == "8138" ] || [ "$chipid" == "8137" ]; then
/sbin/rmmod /lib/modules/vcap300_isp.ko
/sbin/rmmod /lib/modules/vcap0.ko
/sbin/rmmod /lib/modules/vcap300_common.ko
/sbin/rmmod /lib/modules/fisp_$video_frontend.ko
/sbin/rmmod /lib/modules/fisp_algorithm.ko
/sbin/rmmod /lib/modules/fisp320.ko
/sbin/rmmod /lib/modules/ft3dnr.ko
/sbin/rmmod /lib/modules/adda302.ko
/sbin/rmmod /lib/modules/fe_common.ko
/sbin/rmmod /lib/modules/ftpwmtmr010.ko
/sbin/rmmod /lib/modules/think2d.ko
/sbin/rmmod /lib/modules/sar_adc.ko
elif [ "$chipid" == "8136" ] || [ "$chipid" == "8135" ]; then
/sbin/rmmod vcap300_isp.ko
/sbin/rmmod vcap0.ko
/sbin/rmmod vcap300_common.ko
/sbin/rmmod fisp_$video_frontend.ko
/sbin/rmmod fisp_algorithm.ko
/sbin/rmmod fisp328.ko
/sbin/rmmod ft3dnr200.ko
/sbin/rmmod adda308.ko
/sbin/rmmod fe_common.ko
/sbin/rmmod ftpwmtmr010.ko
/sbin/rmmod think2d.ko
/sbin/rmmod sar_adc.ko
fi

View File

@ -0,0 +1,220 @@
; GM8135S Product Configuration
[VERSION]
VERSION = 1.0
[GRAPH_TYPE]
; graph type: 1(DVR with display 3DI), 2(IPCAM)
GRAPH_TYPE = 1
[RESOLUTION]
; Set resolution information = resolution_keyword/width/height
CONFIG1 = 8M/3840/2160
CONFIG2 = 7M/3264/2176
CONFIG3 = 6M/3072/2048
CONFIG4 = 5M/2592/1944
CONFIG5 = 4M/2304/1728
CONFIG6 = 3M/2048/1536
CONFIG7 = 1080P/1920/1080
CONFIG8 = 1.3M/1280/1024
CONFIG9 = 1.2M/1280/960
CONFIG10 = 1080I/1920/540
CONFIG11 = 1M/1280/800
CONFIG12 = 720P/1280/720
CONFIG13 = 960H/960/576
CONFIG14 = SVGA/800/600
CONFIG15 = 720I/1280/360
CONFIG16 = D1/720/576
CONFIG17 = VGA/640/480
CONFIG18 = nHD/640/360
CONFIG19 = 2CIF/360/596
CONFIG20 = HD1/720/288
CONFIG21 = CIF/360/288
CONFIG22 = QCIF/176/144
[BITRATE]
; Set minimum compressed ratio = 10%(better compressed) ~ 90%(worser compressed)
MIN_COMPRESSED_RATIO = 20
; Set maximum bitrate = resolution_keyword/bitrate
MAX_BITRATE = 1080P/6144K, D1/4096K
[GM_LCD0]
; LCD0 liveview and playback
; Playback decode out DDR : dec_out_ddr/dec_out_ratio_ddr
;CHIP0_FILE_DDR = 1/0
; Playback decode out : resolution_keyword/channels/total_fps/CHIPx_FILE_DDR ...
;PB_CONFIG = 1080P/8/240/CHIP0_FILE_DDR
; Display capture out: width/height/disp_rate/count/ddr_channel, ...
;IPCAM CVBS out
DISP_CAP_OUT_CONFIG2 = 720/576/30/3/0
; Display buffer: width/height/disp_rate/count/ddr_channel, ...
;IPCAM CVBS out
DISP_CONFIG2 = 720/576/30/3/0
; Display encode: max_width/max_height/count/ddr_channel
;DISP_ENC = 720/576/3/2
; Playback bitstream buffer : buffer_time(ms)/ddr_channel
;PB_BUFFER_TIME = 330/0
; Display encode bitstream buffer : buffer_time(ms)/ddr_channel
;ENC_BUFFER_TIME = 330/0
; Decode out buffer with ratio format, 1:enable 0:disable
;PB_RATIO_ENABLE = 1
; Playback scaler buffer count per channel
;PB_SCALER_COUNT = 3
; Share buffer enable/disable (playback, liveview buffer sharing), 1:enable 0:disable
;SHARE_BUFFER_ENABLE = 1
; Capture output buffer DPCM mode, 1:enable 0:disable
;CAP_BUFFER_DPCM = 1
; LCD buffer DPCM mode, 1:enable 0:disable
;LCD_BUFFER_DPCM = 0
[GM_LCD3]
; Channel Zero (liveview and playback) encode
; Playback decode out DDR : dec_out_ddr/dec_out_ratio_ddr
;CHIP0_FILE_DDR = 1/0
; Playback decode out : GM_LCD0 or resolution_keyword/channels/total_fps/CHIPx_FILE_DDR ...
;PB_CONFIG = GM_LCD0
;PB_CONFIG = 1080P/1/30/CHIP0_FILE_DDR
; Display capture out: width/height/disp_rate/count/ddr_channel, ...
; Minimum requirment: 6
;DISP_CAP_OUT_CONFIG1 = 960/576/30/6/1
; Display buffer: width/height/disp_rate/count/ddr_channel, ...
; Minimum requirement = 5
;DISP_CONFIG1 = 720/576/30/5/0
; Playback bitstream buffer : buffer_time(ms)/ddr_channel
;PB_BUFFER_TIME = 330/0
; Display encode bitstream buffer : buffer_time(ms)/ddr_channel
;ENC_BUFFER_TIME = 330/0
; Decode out buffer with ratio format, 1:enable 0:disable
;PB_RATIO_ENABLE = 1
; Playback scaler buffer count per channel
;PB_SCALER_COUNT = 3
; Share buffer enable/disable (playback, liveview buffer sharing), 1:enable 0:disable
;SHARE_BUFFER_ENABLE = 1
; Capture output buffer DPCM mode, 1:enable 0:disable
;CAP_BUFFER_DPCM = 1
; LCD buffer DPCM mode, 1:enable 0:disable
;LCD_BUFFER_DPCM = 0
[RECORD]
; Capture buffer DDR : ddr_channel
CHIP0_CAP_DDR = 0
; Encode reference DDR: ddr_channel
CHIP0_REFER_DDR = 0
; Scaler output DDR : ddr_channel
CHIP0_SCL_DDR = 0
; IVS output DDR : ddr_channel
CHIP0_IVS_DDR = 0
; CAP_CONFIG = resolution_keywords/channels/total_fps/CHIPx_CAP_DDR, ...
CAP_CONFIG = 1080P/1/30/CHIP0_CAP_DDR, VGA/1/30/CHIP0_CAP_DDR
; Capture buffer with extra size = resolution_keyword/total_count/CHIPx_CAP_DDR, ...
;EXTRA_CAP_OUT = 1080P/1/CHIP0_CAP_DDR
; Scaler substream output buffer = resolution_keyword/channels/CHIPx_SCL_DDR, ...
SCALER_CONFIG = 1080P/1/CHIP0_SCL_DDR
; IVS output buffer = size/channels/CHIPx_IVS_DDR, ...
;IVS_CONFIG = 4573344/1/CHIP0_IVS_DDR
; Bitstream output buffer = resolution_keyword/channels/total_fps, ...
STREAM_CONFIG = 1080P/1/30, VGA/1/30
; Encode bitstream buffer : buffer_time(ms)/ddr_channel
BUFFER_TIME = 330/0
; Scaler substream output buffer count per channel
SCALER_COUNT = 2
; IVS output buffer count per channel
;IVS_COUNT = 2.5
; Two level scaling for substream better image quality (spends more bandwidth), 1:enable 0:disable
TWO_LEVEL_SCALING_ENABLE = 0
; Set capture output with YUV420 auto mode (over 960H with yuv420), 1:enable 0:disable
BUFFER_YUV420 = 0
; Set capture output with DPCM mode, 1:enable 0:disable
BUFFER_DPCM = 0
[AUDIO_ENCODE]
; Audio encode = sample_rate/stereo/bits/channels
AU_ENC_CONFIG = 48K/mono/16/1
; Audio encode maximum number of samples per frame
MAX_FRAME_SAMPLES = 2048
; Audio encode bitstream buffer : buffer_time(ms)/ddr_channel
BUFFER_TIME = 128/0
[AUDIO_PLAYBACK]
; Audio playback = sample_rate/stereo/bits/channels
AU_PLAYBACK_CONFIG = 48K/mono/16/1
; Audio playback maximum number of samples per frame
MAX_FRAME_SAMPLES = 2048
; Audio playback bitstream buffer : buffer_time(ms)/ddr_channel
BUFFER_TIME = 128/0
[BUFFER_CAPTURE]
; Encode capture buffer three slop: resolution_keyword/fps/count,...
CONFIG1 = 1080P/30/2, 1080P/15/2, 1080P/1/2
CONFIG2 = VGA/30/2, VGA/15/2, VGA/1/2
;CONFIG3 = D1/30/4, D1/15/3, D1/1/2
;CONFIG4 = CIF/30/6, CIF/15/4, CIF/1/2
CAPTURE_MAX_FPS = 30
[SNAPSHOT]
YUV_MAX_WIDTH = 640
YUV_MAX_HEIGHT = 360
MAX_BITSTREAM_SIZE = 262144
[TRANSCODE]
TRANSCODE_CONFIG = GM_LCD0
;Only for 8135
[RESERVED_BUFFER]
; To reduce memory usage, set reserved_ratio = 0
RESERVED_RATIO = 0
[ENCODE_DIDN]
; CONFIG1 = resolution_keywords/channels/total_fps/ddr_channel, ...
CONFIG1 = 2M/1/30/0

View File

@ -0,0 +1,308 @@
[INFO]
ISP=ISP328
version = 1.0.0.0
sensor = IMX222
lens =
[USER]
brightness =128
contrast =128
sharpness =128
hue=128
saturation =128
denoise =128
adjust_blc =0
adjust_nr =1
adjust_gamma =1
adjust_sat =1
adjust_ce = 1
adjust_cc = 1
[ADJ]
gain_th =96,128,256,512,1024,2048,4096,8057,8057
gamma_idx =4,4,4,4,4,4,4,4,4
nl_dpc =0,0,0,0,78,120,125,172,172
nl_raw =0,0,12,14,24,31,46,56,56
nl_ctk =0,0,12,14,24,31,46,56,56
nl_ci =8,14,34,22,38,88,101,182,182
sp_lvl =120,120,110,110,110,100,90,80,80
saturation_lvl =128,128,128,128,128,88,80,50,50
sp_nr_lvl=0,0,0,0,0,0,0,0,0
sp_clip_lvl=0,0,0,0,0,0,0,0,0
tmnr_lvl=16,16,16,20,32,42,64,64,64
blc_r=-248,-248,-248,-248,-248,-248,-248,-248,-248
blc_g=-248,-248,-248,-248,-248,-248,-248,-248,-248
blc_b=-248,-248,-248,-248,-248,-248,-248,-248,-248
ce_lvl=20,20,10,10,10,5,5,0,0
[DC]
wdr_kn_x = 1024, 2048, 3040, 4000
wdr_kn_y = 64, 128, 4096, 65535
wdr_sl = 1, 1, 64, 1024
[CO]
## order: R, Gr, Gb, B
ob =-240, -240, -240, -240
[LS]
lsc_segrds =14
lsc_ctr_r =482, 589
lsc_ctr_gr =482, 589
lsc_ctr_gb =482, 589
lsc_ctr_b =482, 589
lsc_mxtn_r=175,372,418,156,115,566,504,129
lsc_mxtn_gr=175,372,418,156,115,566,504,129
lsc_mxtn_gb=175,372,418,156,115,566,504,129
lsc_mxtn_b=175,372,418,156,115,566,504,129
lsc_rdsparam_r=256,256,268,259,274,263,281,267,288,271,293,276,298,279,303,284,307,288,311,293,316,296,322,299,323,303,324,307,324,308,325,309,264,258,271,261,277,265,285,269,289,273,296,278,300,282,306,286,309,291,313,294,320,298,322,301,324,305,324,308,325,308,326,310,256,256,267,260,272,263,278,268,284,272,289,275,294,279,299,285,302,288,306,291,310,293,315,297,319,299,323,302,326,305,329,307,263,258,270,261,275,265,282,271,286,274,292,277,297,282,301,287,304,290,309,292,313,296,317,298,321,301,325,303,327,306,330,310,256,256,262,264,266,271,272,274,278,275,281,276,282,276,283,278,283,278,284,279,285,280,286,281,286,281,287,282,288,283,288,283,259,261,265,268,269,273,276,274,280,275,281,276,282,277,283,278,284,279,285,279,285,280,286,281,287,282,287,282,288,283,290,284,256,256,259,268,263,274,267,281,272,286,277,292,279,295,283,300,287,304,292,307,294,311,297,317,300,322,303,326,306,327,309,327,258,263,261,271,265,277,270,283,274,289,279,294,280,298,284,302,290,306,293,308,295,315,299,319,302,325,304,327,307,327,312,328,
lsc_rdsparam_gr=256,256,263,259,267,262,271,265,275,268,279,272,281,276,284,280,286,283,291,286,294,289,295,293,296,295,297,297,297,299,297,299,261,258,265,260,269,263,273,266,277,270,280,274,283,278,285,281,289,285,293,288,295,291,296,294,296,296,297,298,297,299,298,300,256,256,262,260,265,263,270,266,274,269,278,273,280,276,281,280,285,284,289,285,293,288,296,290,298,292,301,295,302,297,303,300,260,259,263,261,267,265,272,267,276,271,279,275,280,278,283,282,287,285,291,287,294,289,298,291,300,293,302,296,302,298,304,301,256,256,260,263,263,267,268,269,272,269,275,270,276,271,276,271,277,272,278,273,278,273,279,274,280,274,280,275,281,275,281,275,259,260,261,265,265,268,270,269,274,270,276,270,276,271,277,272,277,272,278,273,279,274,280,274,280,274,280,275,281,275,282,276,256,256,259,263,261,268,265,272,269,275,273,278,276,280,278,283,281,286,285,290,287,294,291,296,294,298,296,302,298,302,301,302,258,260,260,266,263,270,267,274,271,276,275,279,277,282,279,284,283,288,286,292,289,296,292,297,295,300,297,302,301,302,302,303,
lsc_rdsparam_gb=256,256,263,259,267,261,272,265,275,268,279,272,281,276,284,280,287,283,292,287,294,289,297,293,298,295,298,297,298,299,299,299,260,258,265,260,269,263,274,266,277,270,280,274,283,278,285,281,289,286,293,288,296,291,297,294,298,296,298,298,298,299,300,300,256,256,262,260,265,263,270,266,274,269,278,273,280,276,282,280,285,284,289,286,293,288,298,290,300,292,301,295,302,297,304,300,259,259,263,261,267,265,272,267,276,271,279,275,281,278,283,282,287,285,291,287,295,289,298,291,300,293,302,296,303,298,306,302,256,256,260,263,263,267,267,269,272,269,275,270,276,271,276,271,277,272,278,273,279,273,279,274,280,274,280,275,281,275,281,275,258,260,261,265,265,268,270,269,274,270,276,270,276,271,277,272,277,272,278,273,279,274,280,274,280,274,280,275,281,275,282,276,256,256,259,263,261,268,265,272,269,276,273,278,276,280,278,283,281,286,285,290,288,294,290,297,294,298,296,301,298,302,301,302,258,260,260,266,263,270,267,274,271,277,275,279,277,282,279,284,283,288,287,292,289,296,292,297,295,300,297,302,299,302,302,303,
lsc_rdsparam_b=256,256,263,257,264,258,269,261,274,264,277,264,278,267,279,268,280,267,282,269,287,272,290,274,291,276,292,278,292,280,293,280,261,256,263,257,267,259,272,263,276,264,278,265,278,268,280,267,281,268,285,270,288,273,291,275,292,277,292,280,293,280,294,282,256,256,261,256,262,258,268,262,272,264,276,265,278,267,279,267,280,267,283,268,284,271,284,273,287,275,291,277,294,280,297,282,260,256,261,257,265,260,270,263,274,264,277,266,277,267,280,267,280,268,283,269,284,272,285,274,289,276,292,279,297,280,301,284,256,256,259,260,260,263,264,264,268,265,269,265,270,265,270,265,270,265,270,265,271,266,271,267,271,267,272,268,272,268,273,268,258,258,259,262,262,264,266,264,269,265,270,265,270,265,270,265,270,266,271,266,271,266,271,267,271,268,272,268,273,268,274,269,256,256,258,262,259,265,262,269,265,273,268,276,271,276,272,278,272,277,273,277,274,280,274,285,276,288,278,291,280,290,283,290,257,260,258,263,260,267,263,272,267,275,270,276,272,277,271,277,271,278,274,279,274,281,275,287,277,291,279,290,281,290,285,290,
[DRC]
Virtual_Size=1920x1080
Virtual_F=1.000000
Virtual_F_Contrast=1.000000
Virtual_A=0.300000
Virtual_A_Min=0.200000
Virtual_PreGamma=100
Virtual_PG_Black=0
Virtual_PG_Contrast=100
Virtual_F_Manual=0
wdr_bghno=8
wdr_bgvno=7
wdr_bgw2=8
wdr_bgh2=8
wdr_bgho=238
wdr_bgvo=138
wdr_bghskip=2
wdr_bgvskip=4
wdr_intensity_blend=0
wdr_intensity_localmax=0
wdr_intensity_varth=16
wdr_strength=0
wdr_max_gain_ratio=48
wdr_F_index=0,1,2,3,1028,0,0,0,0,0,0,0,0,0,0,0
wdr_F_value=256,512,1024,2048,2176,2304,2432,2560,2688,2816,2944,3072,3200,3328,3456,3584,3712,3840,3968,4096,0,0,0,0,0,0,0,0,0,0,0,0
wdr_A_index=0,1,770,522,526,274,276,22,23,24,25,26,27,28,29,286
wdr_A_value=2721,1545,1470,1405,1348,1298,1254,1215,1181,1151,1100,1060,1027,1000,978,959,943,930,909,893,881,871,858,849,842,838,834,832,830,828,827,826
wdr_PG_index=0,769,9,10,1035,0,0,0,0,0,0,0,0,0,0,0
wdr_PG_value=256,288,319,351,383,415,447,479,511,1023,2047,2176,2304,2432,2560,2688,2816,2944,3072,3200,3328,3456,3584,3712,3839,3967,4095,0,0,0,0,0
Virtual_F_Manual=0
[DRC_WDR]
wdr_bghno=5
wdr_bgvno=4
wdr_bgw2=8
wdr_bgh2=8
wdr_bgho=256
wdr_bgvo=155
wdr_bghskip=0
wdr_bgvskip=1
wdr_PG_index = 0,769,9,10,1035,28,29,30,31,18,19,20,21,22,23,792
wdr_PG_value = 256,288,319,351,383,415,447,479,511,1023,2047,2176,2304,2432,2560,2688,2816,2944,3072,3200,3328,3456,3584,3712,3839,3967,4095,4210,8362,16609,32993,65534
wdr_F_index = 0,1025,785,537,285,28,29,30,31,28,29,30,31,0,0,0
wdr_F_value = 2233,2273,2310,2346,2380,2412,2443,2472,2500,2527,2553,2579,2603,2626,2649,2671,2692,2770,2841,2905,2963,3017,3067,3113,3157,3307,3431,3535,3625,3900,4096,65535
wdr_A_index = 768,520,524,272,274,20,21,22,23,24,25,26,27,28,29,30
wdr_A_value = 3752,3142,2541,2042,1652,1352,1122,944,693,530,418,339,281,237,202,175,136,108,89,74,54,41,33,27,22,19,16,14,12,11,10,127
wdr_qcoef1 = 2364
wdr_qcoef2 = 1831
wdr_qcoef3 = 1548
wdr_intensity_blend = 5
wdr_intensity_localmax=0
wdr_intensity_varth = 255
wdr_max_gain_ratio = 48
wdr_strength = 128
[GM]
#index =0x300,0x108,0x10a,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x116,0x218,0x21c
#value = 6,12,18,25,31,37,43,49,71,92,106,117,135,150,163,174,185,195,205,215,224,232,236,240,242,244,246,248,249,251,253,255
#VirtualType=2
#VirtualGamma=23
#VirtualBlack=0
#VirtualContrast=100
#VirtualControlNum=9
#VirtualControls=0,0,191,38,315,61,516,93,840,122,1404,157,2330,196,3265,231,4096,255,
VirtualType=2
VirtualGamma=23
VirtualBlack=0
VirtualContrast=100
VirtualControlNum=11
VirtualControls=0,0,158,39,307,63,564,93,881,120,1415,152,2345,193,2889,210,3443,228,3720,236,4096,246,
index=0x200,0x104,0x206,0xa,0xb,0xc,0xd,0xe,0x10f,0x111,0x13,0x14,0x15,0x16,0x17,0x318
value=22,36,47,57,74,89,95,101,107,112,130,145,158,170,181,186,192,196,200,208,216,224,232,240,241,241,242,243,244,245,245,246
[GM_WDR]
index =0x300,0x108,0x10a,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x116,0x218,0x21c
value =1,4,6,8,11,14,17,20,35,52,68,82,109,128,145,161,176,190,202,213,223,232,236,240,242,244,246,248,250,251,253,255
VirtualType=2
VirtualGamma=18
VirtualBlack=0
VirtualContrast=100
VirtualControlNum=8
VirtualControls=0,0,277,24,516,51,792,85,1136,118,2139,181,3351,234,4096,255,
[CE]
ce_bghno_0 = 16
ce_bgvno_0 = 9
ce_bghno_1 = 5
ce_bgvno_1 = 3
ce_blend = 239
ce_th = 3
ce_strength = 20
[CI]
edge_dth = 20
freq_th = 320
freq_blend = 16
[CV]
## order: D65 CWF A
cv_0=77,151,29,-11,-229,240,232,-215,-17
cv_1=77,151,29,0,-246,246,313,-242,-71
cv_2=77,151,29,23,-393,370,295,-192,-102
## default value
#cv_0 = 76,150,30,-44,-84,128,128,-108,-20
#cv_1 = 76,150,30,-44,-84,128,128,-108,-20
#cv_2 = 76,150,30,-44,-84,128,128,-108,-20
[IA]
ia_contrast_mode =0
ia_colorize_u =12
ia_colorize_v =6
ia_offset_u =0
ia_offset_v =0
ia_hue =0,0,0,0,0,0,0,0
ia_saturation =128,128,128,128,128,128,128,128
ia_poster_th =160,208,104,180
ia_poster_y =90,173,214,107
[CS]
cs_i1 =12
cs_i2 =64
cs_i3 =90
cs_i4 =135
cs_o0 =36
cs_o1 =55
cs_o4 =54
cs_slope0 =403
cs_slope1 =980
cs_slope3 =1139
cs_slope4 =114
cs_cb_th =36
cs_cr_th =18
[AE]
## f_number table:
# 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#-------------------------------------------------------------------------------------
# 1.0 1.1 1.2 1.3 1.4 1.5 1.7 1.8 2.0 2.2 2.5 2.8 3.2 3.5 4.0 4.5 5.0 5.6 6.3 7.1 8.0
f_number = 11
const_k = 25205901
target_y = 100
#speed 0 ~ 128
speed=128
#converge_th 5~20
converge_th=10
#delay 0 ~ 5
delay = 2
#auto_drc 0 ~ 10 (strength)
auto_drc=0
auto_contrast=0
#max ISP gain (125 ~ 65536)
max_isp_gain=128
[IRIS]
[AWB]
awb_th0=5
awb_th1=210
awb_th2=64
awb_th3=296
awb_th4=-60
awb_th5=143
awb_th6=39
awb_th7=180
awb_th8=25
awb_th9=116
awb_th10=17
awb_th11=60
awb_th12=255
rb_ratio=109,223,380
target_rg_ratio=1024,1024,1024
target_bg_ratio=1024,1024,1024
VirtualXPoints=57,46,41,35,33,69,53,47,38,34,113,88,79,66,58,127,108,91,76,65
VirtualYPoints=86,108,123,141,150,62,73,82,92,98,48,61,71,83,91,46,49,61,73,82
#scene mode:=AUTO, INCANDESCENT_LIGHT, SUN_LIGHT, CLOUDY, COOL_LIGHT, SUN_SHADE
R_gain=177,120,216,233,205,232
B_gain=336,472,192,304,224,200
VirtualMode=0
VirtualPoints=60,82,48,105,45,123,38,144,31,161,79,53,57,65,50,74,40,84,32,93,134,45,100,56,90,67,72,79,58,91,16,146,22,134,27,120,34,107,42,85,51,62,55,59,65,56,73,54,79,53,83,51,85,50,0,0,0,0,0,0,
VirtualThs=5,210,64,296,-60,143,39,180,25,116,17,60,255,15,245,53,249,-42,147,41,168,3,90,5,46,255,
VirutalGainRatio=177,120,216,233,205,232,336,472,192,304,224,200,109,223,380,183,175,208,257,257,304,448,469,394,318,318,269,110,263,568,
OffsetThs=0,0,11,47,-19,-4,-2,12,22,26,12,8,0,
outdoor_ev_th=32768
#grass region
awb_roi1_enable=0
awb_roi1_mode=1
awb_roi1_th0=5
awb_roi1_th1=120
awb_roi1_th2=86
awb_roi1_th3=147
awb_roi1_th4=-17
awb_roi1_th5=44
awb_roi1_th6=44
awb_roi1_th7=91
awb_roi1_th8=33
awb_roi1_th9=73
awb_roi1_th10=12
awb_roi1_th11=40
[AF]
[MRNR]
G1_Y_Freq=30,22,19,16
G1_Y_Tone=13,19,19,13
G1_C=26,26,26,26
G2_Y=144
G2_C=144
Y_Nr_Str=8,8,8,8
C_Nr_Str=5,5,5,5
Y_NoiseLevel_0 =39,46,39,28,24,21,21,19,28,34,28,21,18,15,15,15,18,23,18,14,12,9,9,9,7,11,7,6,6,4,4,4
Cb_NoiseLevel_0=90,67,45,22
Cr_NoiseLevel_0=90,67,45,22
Y_NoiseLevel_1 =53,78,61,51,36,27,27,27,38,58,44,38,27,20,20,20,24,39,29,25,18,12,12,12,9,19,14,12,9,5,5,5
Cb_NoiseLevel_1=90,67,45,22
Cr_NoiseLevel_1=90,67,45,22
Y_NoiseLevel_2 =49,74,62,51,29,16,16,16,37,55,46,38,22,11,11,11,24,37,31,25,14,7,7,7,11,18,14,12,7,3,3,3
Cb_NoiseLevel_2=90,67,45,22
Cr_NoiseLevel_2=90,67,45,22
Y_NoiseLevel_3 =58,87,79,52,37,32,26,26,43,65,59,39,27,24,19,19,29,43,39,26,18,16,13,13,14,21,19,13,9,8,6,6
Cb_NoiseLevel_3=90,67,45,22
Cr_NoiseLevel_3=90,67,45,22
Y_NoiseLevel_4 =52,79,83,72,56,45,38,27,39,59,62,54,42,33,28,20,26,39,41,36,28,22,19,13,13,19,20,18,14,11,9,6
Cb_NoiseLevel_4=90,67,45,22
Cr_NoiseLevel_4=90,67,45,22
Y_NoiseLevel_5 =111,129,120,100,93,83,78,72,83,96,89,75,69,62,57,53,55,63,59,50,46,41,38,35,27,31,29,25,22,20,19,17
Cb_NoiseLevel_5=135,101,67,33
Cr_NoiseLevel_5=135,101,67,33
Y_NoiseLevel_6 =394,414,407,357,324,296,281,264,295,310,305,267,243,222,210,196,197,207,203,177,162,148,139,131,98,103,101,88,81,74,69,65
Cb_NoiseLevel_6=338,253,169,84
Cr_NoiseLevel_6=338,253,169,84
Y_NoiseLevel_7 =797,827,807,758,694,621,610,599,597,619,605,568,519,465,457,448,398,412,403,379,346,310,303,299,199,206,201,188,173,155,150,148
Cb_NoiseLevel_7=416,312,208,104
Cr_NoiseLevel_7=416,312,208,104
Y_NoiseLevel_8 =797,827,807,758,694,621,610,599,597,619,605,568,519,465,457,448,398,412,403,379,346,310,303,299,199,206,201,188,173,155,150,148
Cb_NoiseLevel_8=416,312,208,104
Cr_NoiseLevel_8=416,312,208,104
[SHARPEN]
BrightHaloClip=128
DarkHaloClip=128
PeakingGain=16

View File

@ -0,0 +1,282 @@
[INFO]
ISP=ISP328
version = 1.0.0.0
sensor = OV2715
lens = f1.8
[USER]
brightness =128
contrast =128
sharpness =128
hue=128
saturation =128
denoise =128
adjust_blc =0
adjust_nr =1
adjust_gamma =1
adjust_sat =1
adjust_ce = 1
adjust_cc = 1
[ADJ]
gain_th =96,128,256,512,1024,2048,3968,3968,3968
gamma_idx =4,4,4,4,4,4,4,4,4
nl_dpc =0,0,0,100,101,119,188,188,188
nl_raw =0,6,12,16,32,67,82,102,102
nl_ctk =0,6,12,16,32,67,82,102,102
nl_ci =0,8,18,20,49,99,125,175,175
ce_lvl =20,20,10,10,10,10,10,0,0
sp_lvl =120,110,110,110,110,100,90,90,90
sp_nr_lvl=0,0,0,0,0,0,0,0,0
sp_clip_lvl=0,0,0,0,0,0,0,0,0
saturation_lvl =128,128,128,128,90,76,74,64,64
tmnr_lvl =16,16,16,16,16,16,64,64,64
blc_r=-80,-80,-80,-80,-80,-80,-80,-80,-80
blc_g=-80,-80,-80,-80,-80,-80,-80,-80,-80
blc_b=-80,-80,-80,-80,-80,-80,-80,-80,-80
[DC]
wdr_kn_x = 1024, 2560, 3456, 3968
wdr_kn_y = 1024, 4096, 32768, 65536
wdr_sl = 16, 32, 512, 1024
bit_width=16
enable=0
[CO]
## order: R, Gr, Gb, B
ob =-80, -80, -80, -80
[LS]
enable =0
lsc_ctr_r=507, 492
lsc_ctr_gr=512, 488
lsc_ctr_gb=510, 491
lsc_ctr_b=522, 484
lsc_segrds=15
lsc_mxtn_r=140,465,474,138,149,439,430,152
lsc_mxtn_gr=138,473,473,138,151,431,431,151
lsc_mxtn_gb=139,469,472,138,150,435,432,151
lsc_mxtn_b=134,487,469,139,155,420,436,150
lsc_rdsparam_r=256,258,259,259,260,261,263,265,266,268,270,271,273,275,277,278,280,281,283,284,285,287,290,294,297,300,303,306,308,309,311,311,256,257,258,258,260,261,262,264,265,266,268,269,271,272,274,275,276,278,280,282,283,286,288,290,292,294,296,301,305,309,313,315,256,257,257,258,260,261,263,263,264,264,265,265,265,266,266,266,267,267,267,268,268,268,269,269,270,271,271,272,273,273,275,276,256,257,259,260,261,262,264,265,267,268,270,272,274,276,277,278,280,282,284,286,288,289,291,294,298,301,304,308,310,313,317,319,256,258,259,260,262,263,265,267,269,270,272,274,276,278,280,282,284,286,288,290,292,294,297,299,302,305,309,312,313,315,316,317,256,258,259,261,262,264,266,268,270,272,274,276,278,279,281,283,286,287,289,291,294,295,296,298,301,304,309,312,316,320,324,327,256,258,259,260,262,264,266,268,269,271,272,272,273,273,273,274,274,274,275,275,276,276,276,277,277,278,279,279,280,281,282,283,256,258,259,259,261,262,264,266,268,270,272,274,275,276,279,280,281,283,285,287,288,289,291,294,297,299,302,304,307,311,314,317,
lsc_rdsparam_gr=256,257,258,259,260,261,262,263,265,266,268,269,271,272,273,275,276,277,279,280,282,283,285,288,291,294,297,299,300,301,303,303,256,257,258,258,259,260,261,262,263,264,265,267,268,270,271,272,273,275,276,278,279,280,282,284,287,289,291,295,298,302,306,308,256,257,257,258,259,260,261,261,261,262,262,262,262,263,263,263,264,264,264,265,265,265,265,266,267,267,268,268,269,270,271,272,256,257,258,259,260,261,262,264,265,267,268,270,271,273,274,276,278,279,281,282,283,285,286,289,292,295,298,301,304,307,310,311,256,257,258,259,261,262,263,265,267,268,270,272,274,276,277,279,281,282,284,286,287,289,291,294,297,300,303,306,307,309,310,311,256,257,258,259,261,262,264,266,268,269,271,273,275,277,278,280,282,284,285,287,288,290,292,295,297,301,304,308,311,314,318,320,256,257,258,259,261,262,264,266,268,270,271,272,272,272,273,273,273,274,274,274,275,275,275,276,276,277,277,278,279,279,281,281,256,257,258,259,260,261,263,264,266,268,269,271,272,274,276,277,278,279,281,282,284,285,288,290,291,294,296,299,301,304,308,309,
lsc_rdsparam_gb=257,258,259,260,261,262,263,264,266,267,268,270,272,273,275,276,277,279,280,281,282,285,287,290,292,295,297,301,302,303,305,305,257,258,258,259,260,261,262,263,264,265,266,267,269,270,271,273,274,276,278,279,280,282,284,285,287,289,292,295,299,303,308,308,257,257,257,258,259,260,261,263,263,263,264,264,264,264,265,265,265,266,266,266,266,267,267,268,268,269,269,270,271,271,273,273,257,258,258,259,260,262,263,264,266,267,269,271,272,273,275,276,278,279,281,282,283,285,287,289,292,295,298,300,304,306,310,311,257,258,258,259,261,262,264,265,267,269,271,273,274,276,278,279,281,283,284,286,287,289,291,293,296,299,303,306,307,309,310,311,257,258,258,260,262,263,265,266,268,270,272,274,276,278,279,281,283,285,286,287,288,290,292,294,297,301,304,308,311,314,318,320,257,258,258,260,262,263,265,267,269,270,271,272,272,273,273,273,274,274,274,274,275,275,275,276,276,277,278,278,279,280,281,282,257,258,258,260,261,262,264,265,267,268,270,272,273,275,277,278,279,281,283,284,286,287,289,291,293,295,297,300,303,306,310,313,
lsc_rdsparam_b=256,258,259,260,261,262,264,265,267,269,270,272,273,275,276,278,279,281,283,285,286,288,289,292,295,299,301,305,309,312,314,315,256,258,259,259,260,261,263,264,266,267,268,269,270,272,274,275,277,278,280,281,283,284,287,289,291,294,296,299,303,308,313,316,256,258,258,259,260,261,263,264,265,265,266,266,266,267,267,267,268,268,268,269,269,269,270,271,271,272,273,273,274,275,277,277,256,258,259,260,261,263,265,266,268,270,272,274,276,278,279,281,282,284,285,287,289,291,294,298,301,305,310,313,317,320,323,325,256,258,259,261,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,299,302,306,310,315,319,320,322,324,324,256,258,259,261,263,264,266,268,271,273,275,277,279,281,283,285,286,288,290,293,294,297,300,303,307,311,316,319,324,329,335,337,256,259,259,261,263,264,266,268,270,273,276,277,277,278,278,279,279,279,280,280,280,281,281,282,282,283,284,284,285,286,288,288,256,259,259,260,262,263,264,266,268,270,272,274,275,277,278,280,282,284,285,286,288,289,291,293,296,299,300,303,306,310,314,316,
lsc_adjust=0
lsc_vepm=1024,0,1024,0,0
[DRC]
Virtual_Size=1920x1080
Virtual_F=1.000000
Virtual_F_Contrast=1.000000
Virtual_A=0.300000
Virtual_A_Min=0.200000
Virtual_PreGamma=100
Virtual_PG_Black=0
Virtual_PG_Contrast=100
Virtual_F_Manual=0
wdr_bghno=8
wdr_bgvno=7
wdr_bgw2=8
wdr_bgh2=8
wdr_bgho=238
wdr_bgvo=138
wdr_bghskip=2
wdr_bgvskip=4
wdr_intensity_blend=0
wdr_intensity_localmax=0
wdr_intensity_varth=16
wdr_strength=0
wdr_max_gain_ratio=48
wdr_F_index=0,1,2,3,1028,0,0,0,0,0,0,0,0,0,0,0
wdr_F_value=256,512,1024,2048,2176,2304,2432,2560,2688,2816,2944,3072,3200,3328,3456,3584,3712,3840,3968,4096,0,0,0,0,0,0,0,0,0,0,0,0
wdr_A_index=0,1,770,522,526,274,276,22,23,24,25,26,27,28,29,286
wdr_A_value=2721,1545,1470,1405,1348,1298,1254,1215,1181,1151,1100,1060,1027,1000,978,959,943,930,909,893,881,871,858,849,842,838,834,832,830,828,827,826
wdr_PG_index=0,769,9,10,1035,0,0,0,0,0,0,0,0,0,0,0
wdr_PG_value=256,288,319,351,383,415,447,479,511,1023,2047,2176,2304,2432,2560,2688,2816,2944,3072,3200,3328,3456,3584,3712,3839,3967,4095,0,0,0,0,0
[GM]
#index =0x300,0x108,0x10a,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x116,0x218,0x21c
#value = 6,12,18,25,31,37,43,49,71,92,106,117,135,150,163,174,185,195,205,215,224,232,236,240,242,244,246,248,249,251,253,255
#VirtualType=2
#VirtualGamma=23
#VirtualBlack=0
#VirtualContrast=100
#VirtualControlNum=9
#VirtualControls=0,0,191,38,315,61,516,93,840,122,1404,157,2330,196,3265,231,4096,255,
VirtualType=2
VirtualGamma=23
VirtualBlack=0
VirtualContrast=100
VirtualControlNum=11
VirtualControls=0,0,158,39,307,63,564,93,881,120,1415,152,2345,193,2889,210,3443,228,3720,236,4096,246,
index=0x200,0x104,0x206,0xa,0xb,0xc,0xd,0xe,0x10f,0x111,0x13,0x14,0x15,0x16,0x17,0x318
value=22,36,47,57,74,89,95,101,107,112,130,145,158,170,181,186,192,196,200,208,216,224,232,240,241,241,242,243,244,245,245,246
[CE]
ce_bghno_0 = 16
ce_bgvno_0 = 9
ce_bghno_1 = 5
ce_bgvno_1 = 3
ce_blend = 239
ce_th = 3
ce_strength = 20
[CI]
edge_dth = 20
freq_th = 320
freq_blend = 16
[CV]
## order: D65 CWF A
cv_0=77,151,29,-40,-335,375,334,-295,-40
cv_1=77,151,29,-55,-354,408,313,-191,-122
cv_2=77,151,29,-72,-437,509,321,-171,-150
## default value
#cv_0 = 76,150,30,-51, -84,128,128,-108,-20
#cv_1 = 76,150,30,-44,-84,128,128,-108,-20
#cv_2 = 76,150,30,-44,-84,128,128,-108,-20
[IA]
ia_contrast_mode =0
ia_colorize_u =12
ia_colorize_v =6
ia_offset_u =0
ia_offset_v =0
ia_hue =0,1,1,253,251,255,3,5
ia_saturation =139,129,159,130,129,118,108,112
ia_poster_th =160,208,104,180
ia_poster_y =90,173,214,107
[CS]
cs_i1 =12
cs_i2 =64
cs_i3 =90
cs_i4 =135
cs_o0 =36
cs_o1 =55
cs_o4 =54
cs_slope0 =403
cs_slope1 =980
cs_slope3 =1139
cs_slope4 =114
cs_cb_th =36
cs_cr_th =18
[AE]
## f_number table:
# 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#-------------------------------------------------------------------------------------
# 1.0 1.1 1.2 1.3 1.4 1.5 1.7 1.8 2.0 2.2 2.5 2.8 3.2 3.5 4.0 4.5 5.0 5.6 6.3 7.1 8.0
f_number = 11
const_k = 25205901
target_y = 110
#speed 0 ~ 128
speed=128
#converge_th 5~20
converge_th=10
#delay 0 ~ 5
delay = 2
#auto_drc 0 ~ 10 (strength)
auto_drc=0
auto_contrast=0
#max ISP gain (125 ~ 65536)
max_isp_gain=128
[IRIS]
kp=5
ki=1
kd=2
balance_ratio=512
[AWB]
awb_th0=15
awb_th1=245
awb_th2=104
awb_th3=346
awb_th4=-39
awb_th5=179
awb_th6=64
awb_th7=232
awb_th8=40
awb_th9=114
awb_th10=42
awb_th11=93
awb_th12=255
rb_ratio=124,266,352
target_rg_ratio=1024,1024,1024
target_bg_ratio=1024,1024,1024
VirtualXPoints=73,64,59,55,52,80,67,60,52,46,0,0,0,0,0,130,107,93,80,70
VirtualYPoints=117,137,167,191,212,82,93,111,123,135,0,0,0,0,0,70,82,99,116,133
#scene mode:=AUTO, INCANDESCENT_LIGHT, COOL_LIGHT, SUN_LIGHT, CLOUDY, SUN_SHADE
R_gain=119,109,169,164,166,179
B_gain=262,285,185,190,188,174
outdoor_ev_th=32768
#grass region
awb_roi1_enable=0
awb_roi1_mode=1
awb_roi1_th0=10
awb_roi1_th1=200
awb_roi1_th2=115
awb_roi1_th3=204
awb_roi1_th4=-13
awb_roi1_th5=76
awb_roi1_th6=60
awb_roi1_th7=136
awb_roi1_th8=39
awb_roi1_th9=96
awb_roi1_th10=0
awb_roi1_th11=1023
[AF]
[MRNR]
G1_Y_Freq=30,22,19,16
G1_Y_Tone=13,19,19,13
G1_C=26,26,26,26
G2_Y=144
G2_C=144
Y_Nr_Str=8,8,8,8
C_Nr_Str=5,5,5,5
Y_NoiseLevel_0 =29,30,29,28,27,26,26,25,21,22,21,21,20,19,19,18,14,15,14,14,13,13,13,12,7,7,7,7,6,6,6,6
Cb_NoiseLevel_0=1,1,1,1
Cr_NoiseLevel_0=1,1,1,1
Y_NoiseLevel_1 =45,58,56,40,20,20,20,19,33,43,42,30,15,15,15,14,22,29,28,20,10,10,10,9,11,14,14,10,5,5,5,4
Cb_NoiseLevel_1=1,1,1,1
Cr_NoiseLevel_1=1,1,1,1
Y_NoiseLevel_2 =96,108,102,67,48,48,45,41,72,81,76,50,36,36,33,30,48,54,51,33,24,24,22,20,24,27,25,16,12,12,11,10
Cb_NoiseLevel_2=1,1,1,1
Cr_NoiseLevel_2=1,1,1,1
Y_NoiseLevel_3 =102,126,112,87,75,72,58,43,76,94,84,65,56,54,43,32,51,63,56,43,37,36,29,21,25,31,28,21,18,18,14,10
Cb_NoiseLevel_3=1,1,1,1
Cr_NoiseLevel_3=1,1,1,1
Y_NoiseLevel_4 =374,423,423,351,271,261,232,201,293,332,332,277,216,209,187,164,214,240,240,203,163,158,143,129,135,148,148,129,110,106,100,92
Cb_NoiseLevel_4=100,75,50,25
Cr_NoiseLevel_4=100,75,50,25
Y_NoiseLevel_5 =498,553,525,449,388,366,339,314,374,414,393,336,290,274,253,236,249,276,262,224,194,182,169,157,124,138,130,111,96,90,84,78
Cb_NoiseLevel_5=225,168,112,56
Cr_NoiseLevel_5=225,168,112,56
Y_NoiseLevel_6 =714,785,749,638,588,577,561,538,535,588,561,478,441,432,420,403,357,392,374,319,294,288,280,269,177,196,187,159,147,144,140,134
Cb_NoiseLevel_6=360,270,180,90
Cr_NoiseLevel_6=360,270,180,90
Y_NoiseLevel_7 =714,785,749,638,588,577,561,538,535,588,561,478,441,432,420,403,357,392,374,319,294,288,280,269,177,196,187,159,147,144,140,134
Cb_NoiseLevel_7=360,270,180,90
Cr_NoiseLevel_7=360,270,180,90
Y_NoiseLevel_8 =714,785,749,638,588,577,561,538,535,588,561,478,441,432,420,403,357,392,374,319,294,288,280,269,177,196,187,159,147,144,140,134
Cb_NoiseLevel_8=360,270,180,90
Cr_NoiseLevel_8=360,270,180,90
[SHARPEN]
BrightHaloClip=128
DarkHaloClip=128
PeakingGain=16
[CC]
cc_0=256,0,0,0,256,0,0,0,256
cc_1=256,0,0,0,256,0,0,0,256
cc_2=256,0,0,0,256,0,0,0,256
enable=0

View File

@ -15,7 +15,7 @@ define GRAINMEDIA_OSDRV_GM8136_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -t $(TARGET_DIR)/etc/init.d $(BR2_EXTERNAL_GRAINMEDIA_PATH)/package/grainmedia-osdrv-gm8136/files/script/S95grainmedia
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/sensors
# $(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(BR2_EXTERNAL_GRAINMEDIA_PATH)/package/grainmedia-osdrv-gm8136/files/sensor/config/*
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(BR2_EXTERNAL_GRAINMEDIA_PATH)/package/grainmedia-osdrv-gm8136/files/sensor/config/*
$(INSTALL) -m 755 -d $(TARGET_DIR)/lib/modules/3.3.0/grainmedia
$(INSTALL) -m 644 -t $(TARGET_DIR)/lib/modules/3.3.0/grainmedia $(BR2_EXTERNAL_GRAINMEDIA_PATH)/package/grainmedia-osdrv-gm8136/files/kmod/*.ko
@ -27,7 +27,7 @@ define GRAINMEDIA_OSDRV_GM8136_INSTALL_TARGET_CMDS
#$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/lib/sensors $(BR2_EXTERNAL_GRAINMEDIA_PATH)/package/grainmedia-osdrv-gm8136/files/sensor/*.so
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/lib
#$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/lib/ $(BR2_EXTERNAL_GRAINMEDIA_PATH)/package/grainmedia-osdrv-gm8136/files/lib/*.so
$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/lib/ $(BR2_EXTERNAL_GRAINMEDIA_PATH)/package/grainmedia-osdrv-gm8136/files/lib/*.so
endef
$(eval $(generic-package))