libuvcc  0.41a
simple uvc implementation for os x
 All Data Structures Functions Variables Typedefs Enumerations Groups Pages
Request Wrappers

Functions

int uvccRWScanningMode (uvccCam *cam, uint8_t request, uint8_t *value)
 
int uvccRWAutoExposureMode (uvccCam *cam, uint8_t request, int8_t *value)
 
int uvccRWAutoExposurePrio (uvccCam *cam, uint8_t request, uint8_t *value)
 
int uvccRWExposure (uvccCam *cam, uint8_t request, uint32_t *value)
 
int uvccRWAutoFocus (uvccCam *cam, uint8_t request, uint8_t *value)
 
int uvccRWFocus (uvccCam *cam, uint8_t request, uint16_t *value)
 
int uvccRWIris (uvccCam *cam, uint8_t request, int16_t *value)
 
int uvccRWBacklightCompensation (uvccCam *cam, uint8_t request, uint16_t *value)
 
int uvccRWBrightness (uvccCam *cam, uint8_t request, int16_t *value)
 
int uvccRWContrast (uvccCam *cam, uint8_t request, uint16_t *value)
 
int uvccRWGain (uvccCam *cam, uint8_t request, uint16_t *value)
 
int uvccRWPowerLineFrequency (uvccCam *cam, uint8_t request, uint8_t *value)
 
int uvccRWAutoHue (uvccCam *cam, uint8_t request, uint8_t *value)
 
int uvccRWHue (uvccCam *cam, uint8_t request, int16_t *value)
 
int uvccRWSaturation (uvccCam *cam, uint8_t request, uint16_t *value)
 
int uvccRWSharpness (uvccCam *cam, uint8_t request, uint16_t *value)
 
int uvccRWGamma (uvccCam *cam, uint8_t request, uint16_t *value)
 
int uvccRWAutoWhiteBalanceTemp (uvccCam *cam, uint8_t request, uint8_t *value)
 
int uvccRWWhiteBalanceTemp (uvccCam *cam, uint8_t request, uint16_t *value)
 
int uvccRWAutoWhiteBalanceComponent (uvccCam *cam, uint8_t request, uint8_t *value)
 
int uvccRWWhiteBalanceComponent (uvccCam *cam, uint8_t request, uint16_t *blue, uint16_t *red)
 

Detailed Description

Wrapper functions to easily send requests to a cam.

Function Documentation

int uvccRWAutoExposureMode ( uvccCam cam,
uint8_t  request,
int8_t *  value 
)

Params and return as uvccRWAutoFocus(), UVC_GET_CUR result can be found in Exposure mode values.

int uvccRWAutoExposurePrio ( uvccCam cam,
uint8_t  request,
uint8_t *  value 
)

Params and return as uvccRWAutoFocus(), UVC_GET_CUR result can be found in Exposure priority values.

int uvccRWAutoFocus ( uvccCam cam,
uint8_t  request,
uint8_t *  value 
)

uvccRequest wrapper function for auto focus, UVC_GET_CUR result can be found in Auto values.

Parameters
cam
requestuvc request, valid values are those in UVC bRequest values
valuevalue to set or buf to receive value in
Returns
0 on success != 0 on fail
int uvccRWAutoHue ( uvccCam cam,
uint8_t  request,
uint8_t *  value 
)

Params and return as uvccRWAutoFocus(), UVC_GET_CUR result can be found in Auto values.

int uvccRWAutoWhiteBalanceComponent ( uvccCam cam,
uint8_t  request,
uint8_t *  value 
)

Params and return as uvccRWAutoFocus(), UVC_GET_CUR result can be found in Auto values.

int uvccRWAutoWhiteBalanceTemp ( uvccCam cam,
uint8_t  request,
uint8_t *  value 
)

Params and return as uvccRWAutoFocus(), UVC_GET_CUR result can be found in Auto values.

int uvccRWBacklightCompensation ( uvccCam cam,
uint8_t  request,
uint16_t *  value 
)

Params and return as uvccRWAutoFocus().

int uvccRWBrightness ( uvccCam cam,
uint8_t  request,
int16_t *  value 
)

Params and return as uvccRWAutoFocus().

int uvccRWContrast ( uvccCam cam,
uint8_t  request,
uint16_t *  value 
)

Params and return as uvccRWAutoFocus().

int uvccRWExposure ( uvccCam cam,
uint8_t  request,
uint32_t *  value 
)

Params and return as uvccRWAutoFocus().

int uvccRWFocus ( uvccCam cam,
uint8_t  request,
uint16_t *  value 
)

Params and return as uvccRWAutoFocus().

int uvccRWGain ( uvccCam cam,
uint8_t  request,
uint16_t *  value 
)

Params and return as uvccRWAutoFocus().

int uvccRWGamma ( uvccCam cam,
uint8_t  request,
uint16_t *  value 
)

Params and return as uvccRWAutoFocus().

int uvccRWHue ( uvccCam cam,
uint8_t  request,
int16_t *  value 
)

Params and return as uvccRWAutoFocus().

int uvccRWIris ( uvccCam cam,
uint8_t  request,
int16_t *  value 
)

Params and return as uvccRWAutoFocus().

int uvccRWPowerLineFrequency ( uvccCam cam,
uint8_t  request,
uint8_t *  value 
)

Params and return as uvccRWAutoFocus(), UVC_GET_CUR result can be found in Power line frequency values.

int uvccRWSaturation ( uvccCam cam,
uint8_t  request,
uint16_t *  value 
)

Params and return as uvccRWAutoFocus().

int uvccRWScanningMode ( uvccCam cam,
uint8_t  request,
uint8_t *  value 
)

Params and return as uvccRWAutoFocus(), UVC_GET_CUR result can be found in Scanning mode values.

int uvccRWSharpness ( uvccCam cam,
uint8_t  request,
uint16_t *  value 
)

Params and return as uvccRWAutoFocus().

int uvccRWWhiteBalanceComponent ( uvccCam cam,
uint8_t  request,
uint16_t *  blue,
uint16_t *  red 
)

uvccRequest wrapper function for white balance component, see table 4-39 in UVC spec, p.98 (111) for further info.

Parameters
cam
requestuvc request, valid values are those in UVC bRequest values
blueblue component
redred component
Returns
0 on success != 0 on fail
int uvccRWWhiteBalanceTemp ( uvccCam cam,
uint8_t  request,
uint16_t *  value 
)

Params and return as uvccRWAutoFocus().