@@ -1011,6 +1012,7 @@ int mt9x001_pgm_window_common (int sensor_port, ///< sensor port
...
@@ -1011,6 +1012,7 @@ int mt9x001_pgm_window_common (int sensor_port, ///< sensor port
bv=thispars->pars[P_BIN_VERT];
bv=thispars->pars[P_BIN_VERT];
ww=thispars->pars[P_SENSOR_PIXH]*dh;
ww=thispars->pars[P_SENSOR_PIXH]*dh;
wh=thispars->pars[P_SENSOR_PIXV]*dv;
wh=thispars->pars[P_SENSOR_PIXV]*dv;
compressor_margin=(thispars->pars[P_SENSOR_PIXH]-thispars->pars[P_WOI_WIDTH])>>1;// assuming same for H and V
flip=((thispars->pars[P_FLIPH]&1)|((thispars->pars[P_FLIPV]&1)<<1))^sensor->init_flips;// 10338 is _not_ flipped (as the ther boards, but for legacy compatibility....)
flip=((thispars->pars[P_FLIPH]&1)|((thispars->pars[P_FLIPV]&1)<<1))^sensor->init_flips;// 10338 is _not_ flipped (as the ther boards, but for legacy compatibility....)
flipX=flip&1;
flipX=flip&1;
flipY=(flip&2)?1:0;
flipY=(flip&2)?1:0;
...
@@ -1037,8 +1039,10 @@ int mt9x001_pgm_window_common (int sensor_port, ///< sensor port
...
@@ -1037,8 +1039,10 @@ int mt9x001_pgm_window_common (int sensor_port, ///< sensor port