Lines Matching full:257
154 * The 257 is the "conversion ratio". This number is obtained by the in argb_u16_from_u8888()
159 out_pixel.a = (u16)a * 257; in argb_u16_from_u8888()
160 out_pixel.r = (u16)r * 257; in argb_u16_from_u8888()
161 out_pixel.g = (u16)g * 257; in argb_u16_from_u8888()
162 out_pixel.b = (u16)b * 257; in argb_u16_from_u8888()
333 out_pixel[3] = DIV_ROUND_CLOSEST(in_pixel->a, 257); in argb_u16_to_ARGB8888()
334 out_pixel[2] = DIV_ROUND_CLOSEST(in_pixel->r, 257); in argb_u16_to_ARGB8888()
335 out_pixel[1] = DIV_ROUND_CLOSEST(in_pixel->g, 257); in argb_u16_to_ARGB8888()
336 out_pixel[0] = DIV_ROUND_CLOSEST(in_pixel->b, 257); in argb_u16_to_ARGB8888()
342 out_pixel[2] = DIV_ROUND_CLOSEST(in_pixel->r, 257); in argb_u16_to_XRGB8888()
343 out_pixel[1] = DIV_ROUND_CLOSEST(in_pixel->g, 257); in argb_u16_to_XRGB8888()
344 out_pixel[0] = DIV_ROUND_CLOSEST(in_pixel->b, 257); in argb_u16_to_XRGB8888()