elphel_set_P_value($sensor_port,ELPHEL_FPGA_XTRA,1000,$frame+3,ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC);// /compressor needs extra 1000 cycles to compress a frame (estimate)
elphel_set_P_value($sensor_port,ELPHEL_FPGA_XTRA,1000,$frame+3,ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC);// /compressor needs extra 1000 cycles to compress a frame (estimate)
elphel_set_P_value($sensor_port,ELPHEL_EXTERN_TIMESTAMP,1,$frame+3,ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC);// / only used with async trigger
elphel_set_P_value($sensor_port,ELPHEL_EXTERN_TIMESTAMP,1,$frame+3,ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC);// / only used with async trigger
...
@@ -459,10 +466,14 @@ CAPTION;
...
@@ -459,10 +466,14 @@ CAPTION;
fclose($framepars_file);
fclose($framepars_file);
$gamma=57;
$gamma=57;
$black=10;
$black=10;
// $scale_r = ( int ) (1.0 * 1024);
// $scale_g = ( int ) (0.9 * 1024);
// $scale_b = ( int ) (1.1 * 1024);
// $scale_gb = ( int ) (0.9 * 1024);
$scale_r=(int)(1.0*1024);
$scale_r=(int)(1.0*1024);
$scale_g=(int)(0.9*1024);
$scale_g=(int)(1.0*1024);
$scale_b=(int)(1.1*1024);
$scale_b=(int)(1.0*1024);
$scale_gb=(int)(0.9*1024);
$scale_gb=(int)(1.0*1024);
elphel_gamma_add(0.01*$gamma,$black);// does not depend on $GLOBALS['sensor_port']
elphel_gamma_add(0.01*$gamma,$black);// does not depend on $GLOBALS['sensor_port']
// define P_GTAB_R 138 // combines (P_PIXEL_LOW<<24) | (P_GAMMA <<16) and 16-bit (6.10) scale for gamma tables, individually for each color.
// define P_GTAB_R 138 // combines (P_PIXEL_LOW<<24) | (P_GAMMA <<16) and 16-bit (6.10) scale for gamma tables, individually for each color.
// 16Msbs are also "hash16" and do not need to be black level/gamma, just uniqualy identify the table for applications
// 16Msbs are also "hash16" and do not need to be black level/gamma, just uniqualy identify the table for applications