Lines Matching full:257
80 * The 257 is the "conversion ratio". This number is obtained by the in ARGB8888_to_argb_u16()
85 out_pixel->a = (u16)src_pixels[3] * 257; in ARGB8888_to_argb_u16()
86 out_pixel->r = (u16)src_pixels[2] * 257; in ARGB8888_to_argb_u16()
87 out_pixel->g = (u16)src_pixels[1] * 257; in ARGB8888_to_argb_u16()
88 out_pixel->b = (u16)src_pixels[0] * 257; in ARGB8888_to_argb_u16()
94 out_pixel->r = (u16)src_pixels[2] * 257; in XRGB8888_to_argb_u16()
95 out_pixel->g = (u16)src_pixels[1] * 257; in XRGB8888_to_argb_u16()
96 out_pixel->b = (u16)src_pixels[0] * 257; in XRGB8888_to_argb_u16()
187 dst_pixels[3] = DIV_ROUND_CLOSEST(in_pixel->a, 257); in argb_u16_to_ARGB8888()
188 dst_pixels[2] = DIV_ROUND_CLOSEST(in_pixel->r, 257); in argb_u16_to_ARGB8888()
189 dst_pixels[1] = DIV_ROUND_CLOSEST(in_pixel->g, 257); in argb_u16_to_ARGB8888()
190 dst_pixels[0] = DIV_ROUND_CLOSEST(in_pixel->b, 257); in argb_u16_to_ARGB8888()
196 dst_pixels[2] = DIV_ROUND_CLOSEST(in_pixel->r, 257); in argb_u16_to_XRGB8888()
197 dst_pixels[1] = DIV_ROUND_CLOSEST(in_pixel->g, 257); in argb_u16_to_XRGB8888()
198 dst_pixels[0] = DIV_ROUND_CLOSEST(in_pixel->b, 257); in argb_u16_to_XRGB8888()