Home
last modified time | relevance | path

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

/openbmc/linux/drivers/media/usb/gspca/
H A Dcpia1.c1006 #define COMPGAIN(base, curexp, newexp) \ in set_flicker()
1007 (u8) ((((float) base - 128.0) * ((float) curexp / (float) newexp)) + 128.5) in set_flicker()
1008 #define EXP_FROM_COMP(basecomp, curcomp, curexp) \ in set_flicker()
1009 (u16)((float)curexp * (float)(u8)(curcomp + 128) / \ in set_flicker()
1013 #define COMPGAIN(base, curexp, newexp) \ in set_flicker() argument
1014 (u8)(128 + (((u32)(2*(base-128)*curexp + newexp)) / (2 * newexp))) in set_flicker()
1015 #define EXP_FROM_COMP(basecomp, curcomp, curexp) \ in set_flicker() argument
1016 (u16)(((u32)(curexp * (u8)(curcomp + 128)) / (u8)(basecomp - 128))) in set_flicker()