Home
last modified time | relevance | path

Searched refs:contrast (Results 1 – 2 of 2) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/components/video/camera/device/ov7725/
Dfsl_ov7725.c118 status_t OV7725_SetContrast(camera_device_handle_t *handle, int32_t contrast);
533 status_t OV7725_SetContrast(camera_device_handle_t *handle, int32_t contrast) in OV7725_SetContrast() argument
535 if ((contrast < -4) || (contrast > 4)) in OV7725_SetContrast()
540 contrast *= 4; in OV7725_SetContrast()
541 contrast += 0x20; in OV7725_SetContrast()
543 return OV7725_WriteReg(handle, OV7725_CNST_REG, (uint8_t)contrast); in OV7725_SetContrast()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/video/camera/device/ov5640/
Dfsl_ov5640.c149 status_t OV5640_SetContrast(camera_device_handle_t *handle, int32_t contrast);
1026 status_t OV5640_SetContrast(camera_device_handle_t *handle, int32_t contrast) in OV5640_SetContrast() argument
1031 if ((-4 > contrast) || (4 < contrast)) in OV5640_SetContrast()
1036 contrast = 0x20 + contrast * 0x04; in OV5640_SetContrast()
1037 regVal = (uint8_t)contrast; in OV5640_SetContrast()