Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/media/platform/renesas/vsp1/
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()
Dvsp1_hgo.h25 struct v4l2_ctrl *max_rgb; member
29 bool max_rgb; member
/linux-6.1.9/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c556 int max_rgb, min_rgb, diff_rgb; in color_to_hsv() local
566 max_rgb = max3(r, g, b); in color_to_hsv()
567 *v = max_rgb; in color_to_hsv()
568 if (!max_rgb) { in color_to_hsv()
576 diff_rgb = max_rgb - min_rgb; in color_to_hsv()
578 aux += max_rgb / 2; in color_to_hsv()
579 aux /= max_rgb; in color_to_hsv()
589 if (max_rgb == r) { in color_to_hsv()
592 } else if (max_rgb == g) { in color_to_hsv()