Searched refs:brightness (Results 1 – 2 of 2) sorted by relevance
/hal_nxp-3.5.0/mcux/mcux-sdk/components/video/camera/device/ov7725/ |
D | fsl_ov7725.c | 120 status_t OV7725_SetBrightness(camera_device_handle_t *handle, int32_t brightness); 546 status_t OV7725_SetBrightness(camera_device_handle_t *handle, int32_t brightness) in OV7725_SetBrightness() argument 550 if ((brightness < -4) || (brightness > 4)) in OV7725_SetBrightness() 555 if (brightness >= 0) in OV7725_SetBrightness() 557 …V7725_CHECK_RET(OV7725_WriteReg(handle, OV7725_BRIGHT_REG, 0x08U + (0x10U * (uint8_t)brightness))); in OV7725_SetBrightness() 562 brightness = -brightness - 1; in OV7725_SetBrightness() 563 …V7725_CHECK_RET(OV7725_WriteReg(handle, OV7725_BRIGHT_REG, 0x08U + (0x10U * (uint8_t)brightness))); in OV7725_SetBrightness()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/components/video/camera/device/ov5640/ |
D | fsl_ov5640.c | 151 status_t OV5640_SetBrightness(camera_device_handle_t *handle, int32_t brightness); 995 status_t OV5640_SetBrightness(camera_device_handle_t *handle, int32_t brightness) in OV5640_SetBrightness() argument 999 if ((brightness < -4) || (brightness > 4)) in OV5640_SetBrightness() 1005 if (brightness >= 0) in OV5640_SetBrightness() 1011 brightness = -brightness; in OV5640_SetBrightness() 1020 OV5640_CHECK_RET(OV5640_WriteReg(handle, OV5640_SDE_CTRL7_REG, ((uint8_t)brightness) << 4U)); in OV5640_SetBrightness()
|