Home
last modified time | relevance | path

Searched refs:max_rgb (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/media/platform/renesas/vsp1/
H A Dvsp1_hgo.c66 } else if (hgo->max_rgb) { in vsp1_hgo_frame_end()
159 hgo->max_rgb = hgo->ctrls.max_rgb->cur.val; in hgo_configure_stream()
168 (hgo->max_rgb ? VI6_HGO_MODE_MAXRGB : 0) | in hgo_configure_stream()
200 hgo->ctrls.max_rgb = v4l2_ctrl_new_custom(&hgo->ctrls.handler, in vsp1_hgo_create()
207 hgo->max_rgb = false; in vsp1_hgo_create()
H A Dvsp1_hgo.h25 struct v4l2_ctrl *max_rgb; member
29 bool max_rgb; member
/openbmc/linux/drivers/media/common/v4l2-tpg/
H A Dv4l2-tpg-core.c588 int max_rgb, min_rgb, diff_rgb; in color_to_hsv() local
598 max_rgb = max3(r, g, b); in color_to_hsv()
599 *v = max_rgb; in color_to_hsv()
600 if (!max_rgb) { in color_to_hsv()
608 diff_rgb = max_rgb - min_rgb; in color_to_hsv()
610 aux += max_rgb / 2; in color_to_hsv()
611 aux /= max_rgb; in color_to_hsv()
621 if (max_rgb == r) { in color_to_hsv()
624 } else if (max_rgb == g) { in color_to_hsv()