Lines Matching refs:bv
526 unsigned char rv, gv, bv; /* RGB components */ in ibmcam_parse_lines() local
538 bv = 0; /* Yellow marker */ in ibmcam_parse_lines()
542 bv = 0xFF; /* Cyan marker */ in ibmcam_parse_lines()
568 rv = gv = bv = y; in ibmcam_parse_lines()
592 YUV_TO_RGB_BY_THE_BOOK(y, u, v, rv, gv, bv); in ibmcam_parse_lines()
607 RGB24_PUTPIXEL(frame, i, frame->curline, rv, gv, bv); in ibmcam_parse_lines()
609 *f++ = bv; in ibmcam_parse_lines()
727 int y, rv, gv, bv; /* RGB components */ in ibmcam_model2_320x240_parse_lines() local
734 bv = 0; /* Yellow marker */ in ibmcam_model2_320x240_parse_lines()
738 bv = 0xFF; /* Cyan marker */ in ibmcam_model2_320x240_parse_lines()
771 bv = lb[j + 0]; in ibmcam_model2_320x240_parse_lines()
773 y = (rv + gv + bv) / 3; /* Brightness (badly calculated) */ in ibmcam_model2_320x240_parse_lines()
776 rv = gv = bv = y; in ibmcam_model2_320x240_parse_lines()
782 bv -= y; in ibmcam_model2_320x240_parse_lines()
787 bv = (bv * color_corr) / 128; in ibmcam_model2_320x240_parse_lines()
792 bv += y; in ibmcam_model2_320x240_parse_lines()
797 RESTRICT_TO_RANGE(bv, 0, 255); in ibmcam_model2_320x240_parse_lines()
801 RGB24_PUTPIXEL(frame, i, frame->curline, rv, gv, bv); in ibmcam_model2_320x240_parse_lines()
905 int y, rv, gv, bv; /* RGB components */ in ibmcam_model3_parse_lines() local
923 YUV_TO_RGB_BY_THE_BOOK(y, u, v, rv, gv, bv); in ibmcam_model3_parse_lines()
924 RGB24_PUTPIXEL(frame, i, rw, rv, gv, bv); /* Done by deinterlacing now */ in ibmcam_model3_parse_lines()
1009 int rv, gv, bv; /* RGB components */ in ibmcam_model4_128x96_parse_lines() local
1014 bv = data_bv[j]; in ibmcam_model4_128x96_parse_lines()
1017 y = rv + gv + bv; in ibmcam_model4_128x96_parse_lines()
1021 rv = gv = bv = (unsigned char) y; in ibmcam_model4_128x96_parse_lines()
1024 rv = gv = bv = 0; in ibmcam_model4_128x96_parse_lines()
1026 RGB24_PUTPIXEL(frame, i, frame->curline, rv, gv, bv); in ibmcam_model4_128x96_parse_lines()
1557 unsigned short i, j, bv[3]; in ibmcam_set_brightness() local
1558 bv[0] = bv[1] = bv[2] = uvd->vpic.brightness >> 10; in ibmcam_set_brightness()
1559 if (bv[0] == (uvd->vpic_old.brightness >> 10)) in ibmcam_set_brightness()
1561 uvd->vpic_old.brightness = bv[0]; in ibmcam_set_brightness()
1564 ibmcam_Packet_Format1(uvd, bright_3x[j], bv[j]); in ibmcam_set_brightness()