Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
9f4bea8acThis file is pinned to the selected release. Download the original to open it in your design tool.
#!/bin/sh
cd $(dirname $(realpath $0)) # change into script dir
# set gain x1, full 12-bit range
./set_gain.sh 1
# set HDMI 4K experimental mode:
# 10 delayed mode: Rs/Rs', G1s/G2s, Bs/Bs'
scn_reg 31 0xA01
# nearly optimal parameters for gain x1
gamma=0.52
gain=0.85
offset=55
# set matrix and gamma
./mat4_conf.sh 0 $gain 0 0 0 0 0 $gain 0 0 $gain 0 $gain 0 0 0 0 0 0 0
./gamma_conf.sh $gamma
# set RCN parameters from dark frame
python rcn_darkframe.py $offset
# tip: to check the pattern noise on a dark frame, try this:
#./mat4_conf.sh 0 20 0 0 0 0 0 20 0 0 20 0 20 0 0 0 0 0 0 0