unsignedlongbinHor;///< bit mask bit 0 - 1:1, bit 31 - by 32
unsignedlongbinVert;///< bit mask bit 0 - 1:1, bit 31 - by 32
unsignedlongmaxGain256;///< maximal analog gain times 0x100
unsignedlongminGain256;///< minimal analog gain (that allows saturation of all but defective pixels) times 0x100
unsignedlongminClockFreq;///< Minimal clock frequency
unsignedlongmaxClockFreq;///< Maximal clock frequency
unsignedlongnomClockFreq;///<nominal clock frequency
...
...
@@ -1796,7 +1797,7 @@ struct gamma_stuct_t {
};
};
unsignedlonglongvalid;/// 0 - table invalid, 1 - table valid +2 for table locked (until sent to FPGA)
// int locked; /// bit frame+ (color<<3) locked for color/frame
// int locked; /// bit frame+ (color<<3) locked for color/frame
unsignedlonglonglocked;/// NOTE: Changed to just color locked for color
intthis_non_scaled;// 0 for non-scaled, others - (for scaled) - pointer to the corresponding non-scaled
union{/// used in head (element 0) and non-scaled chain (not used in scaled)
...
...
@@ -1838,17 +1839,13 @@ struct gamma_stuct_t {
struct{
unsignedshortdirect[257];// "Gamma" table, 16-bit for both non-scaled prototypes and scaled, 0..0xffff range (hardware will use less)
unsignedshortdummy1;// to have it 32-bit aligned
// unsigned short reverse[256]; // reverse table to speed-up reversing (still need interpolation).Index - most significant 8 bits, data - largest direct argument...
unsignedcharreverse[256];/// reverse table to speed-up reversing. No division, but needs interpolation by the application
unsignedlongfpga[256];// data encoded for FPGA "gamma" table (18 bits, "floating point")
};
struct{
// int locked_col_frame[4 * PARS_FRAMES]; //index of the table to load to color/frame (should be locked, until unlocked)
intlocked_chn_color[4*MAX_SENSORS*SENSOR_PORTS];/// NOTE: Changed to just color (locked last written to FPGA - maybe needed again, as the FPGA needs all table to be overwritten - two pages)
// For NC393 - using 64 entries - individual for each channel/subchannel, color is in 2 lower bits