Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/media/platform/vsp1/
Dvsp1_hgo.c66 } else if (hgo->max_rgb) { in vsp1_hgo_frame_end()
158 hgo->max_rgb = hgo->ctrls.max_rgb->cur.val; in hgo_configure_stream()
167 (hgo->max_rgb ? VI6_HGO_MODE_MAXRGB : 0) | in hgo_configure_stream()
199 hgo->ctrls.max_rgb = v4l2_ctrl_new_custom(&hgo->ctrls.handler, in vsp1_hgo_create()
206 hgo->max_rgb = false; in vsp1_hgo_create()
Dvsp1_hgo.h25 struct v4l2_ctrl *max_rgb; member
29 bool max_rgb; member
/Linux-v4.19/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c502 int max_rgb, min_rgb, diff_rgb; in color_to_hsv() local
512 max_rgb = max3(r, g, b); in color_to_hsv()
513 *v = max_rgb; in color_to_hsv()
514 if (!max_rgb) { in color_to_hsv()
522 diff_rgb = max_rgb - min_rgb; in color_to_hsv()
524 aux += max_rgb / 2; in color_to_hsv()
525 aux /= max_rgb; in color_to_hsv()
535 if (max_rgb == r) { in color_to_hsv()
538 } else if (max_rgb == g) { in color_to_hsv()