TxCameraSettings constructor
TxCameraSettings({
- required int msgCode,
- int qualityIndex = 0,
- int autoExpGainTimes = 5,
- int autoExpInterval = 100,
- int meteringIndex = 2,
- double exposure = 0.18,
- double exposureSpeed = 0.5,
- int shutterLimit = 800,
- int analogGainLimit = 248,
- double whiteBalanceSpeed = 0.5,
- int manualShutter = 800,
- int manualAnalogGain = 124,
- int manualRedGain = 512,
- int manualGreenGain = 512,
- int manualBlueGain = 512,
Implementation
TxCameraSettings({
required super.msgCode,
int qualityIndex = 0, // [10, 25, 50, 100];
int autoExpGainTimes =
5, // val >= 0; number of times auto exposure and gain algorithm will be run every autoExpInterval ms
int autoExpInterval = 100,
int meteringIndex = 2, // ['SPOT', 'CENTER_WEIGHTED', 'AVERAGE'];
double exposure = 0.18, // 0.0 <= val <= 1.0
double exposureSpeed = 0.5, // 0.0 <= val <= 1.0
int shutterLimit = 800, // 4 <= val <= 16383
int analogGainLimit = 248, // 0 <= val <= 248
double whiteBalanceSpeed = 0.5, // 0.0 <= val <= 1.0
int manualShutter = 800, // 4 <= val <= 16383
int manualAnalogGain = 124, // 0 <= val <= 248
int manualRedGain = 512, // 0 <= val <= 1023
int manualGreenGain = 512, // 0 <= val <= 1023
int manualBlueGain = 512, // 0 <= val <= 1023
})
: _qualityIndex = qualityIndex,
_autoExpGainTimes = autoExpGainTimes,
_autoExpInterval = autoExpInterval,
_meteringIndex = meteringIndex,
_exposure = exposure,
_exposureSpeed = exposureSpeed,
_shutterLimit = shutterLimit,
_analogGainLimit = analogGainLimit,
_whiteBalanceSpeed = whiteBalanceSpeed,
_manualShutter = manualShutter,
_manualAnalogGain = manualAnalogGain,
_manualRedGain = manualRedGain,
_manualGreenGain = manualGreenGain,
_manualBlueGain = manualBlueGain;