* extracted some private methods to have a more readable code

* fixed negative parameter values handling
* clean up and method shuffle


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42703 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2011-08-30 22:10:46 +00:00
parent f7ca82dc00
commit 67eb6cdee8
2 changed files with 334 additions and 358 deletions
File diff suppressed because it is too large Load Diff
@@ -49,14 +49,23 @@ private:
unsigned char *src, int32 width, unsigned char *src, int32 width,
int32 height); int32 height);
void _AddProcessingParameter(BParameterGroup* group,
int32 index,
const usbvc_processing_unit_descriptor*
descriptor);
float _AddParameter(BParameterGroup* group, float _AddParameter(BParameterGroup* group,
BParameterGroup** subgroup, int32 index, BParameterGroup** subgroup, int32 index,
uint16 wValue, const char* name); uint16 wValue, const char* name);
int _AddAutoParameter(BParameterGroup* subgroup, uint8 _AddAutoParameter(BParameterGroup* subgroup,
int32 index, uint16 wValue); int32 index, uint16 wValue);
status_t _SetParameterValue(uint16 wValue,
int16 setValue);
status_t _SetParameterValue(uint16 wValue,
int8 setValue);
usbvc_interface_header_descriptor *fHeaderDescriptor; usbvc_interface_header_descriptor *fHeaderDescriptor;
const BUSBEndpoint* fInterruptIn; const BUSBEndpoint* fInterruptIn;
uint32 fControlIndex; uint32 fControlIndex;
uint16 fControlRequestIndex; uint16 fControlRequestIndex;
@@ -67,10 +76,10 @@ private:
uint32 fMJPEGFrameIndex; uint32 fMJPEGFrameIndex;
uint32 fMaxVideoFrameSize; uint32 fMaxVideoFrameSize;
uint32 fMaxPayloadTransferSize; uint32 fMaxPayloadTransferSize;
BList fUncompressedFrames; BList fUncompressedFrames;
BList fMJPEGFrames; BList fMJPEGFrames;
float fBrightness; float fBrightness;
float fContrast; float fContrast;
float fHue; float fHue;
@@ -81,16 +90,16 @@ private:
float fWBComponent; float fWBComponent;
float fBacklightCompensation; float fBacklightCompensation;
float fGain; float fGain;
bool fBinaryBacklightCompensation; bool fBinaryBacklightCompensation;
int fWBTempAuto; int fWBTempAuto;
int fWBCompAuto; int fWBCompAuto;
int fHueAuto; int fHueAuto;
int fBacklightCompensationBinary; int fBacklightCompensationBinary;
int fPowerlineFrequency; int fPowerlineFrequency;
}; };