Lines Matching full:pixel

29 static inline u16 pixel32_to_be16(const uint32_t pixel)  in pixel32_to_be16()  argument
31 return (((pixel >> 3) & 0x001f) | in pixel32_to_be16()
32 ((pixel >> 5) & 0x07e0) | in pixel32_to_be16()
33 ((pixel >> 8) & 0xf800)); in pixel32_to_be16()
36 static inline u16 get_pixel_val16(const uint8_t *pixel, int log_bpp) in get_pixel_val16() argument
40 pixel_val16 = *(const uint16_t *)pixel; in get_pixel_val16()
42 pixel_val16 = pixel32_to_be16(*(const uint32_t *)pixel); in get_pixel_val16()
65 * Rather than 256 pixel commands which are either rl or raw encoded,
70 * compression than 256 pixel raw or rle commands, with similar CPU consumpion.
81 const u8 *pixel = *pixel_start_ptr; in udl_compress_hline16() local
85 while ((pixel_end > pixel) && in udl_compress_hline16()
100 cmd_pixel_start = pixel; in udl_compress_hline16()
103 raw_pixel_start = pixel; in udl_compress_hline16()
105 cmd_pixel_end = pixel + (min3(MAX_CMD_PIXELS + 1UL, in udl_compress_hline16()
106 (unsigned long)(pixel_end - pixel) >> log_bpp, in udl_compress_hline16()
109 pixel_val16 = get_pixel_val16(pixel, log_bpp); in udl_compress_hline16()
111 while (pixel < cmd_pixel_end) { in udl_compress_hline16()
112 const u8 *const start = pixel; in udl_compress_hline16()
118 pixel += bpp; in udl_compress_hline16()
120 while (pixel < cmd_pixel_end) { in udl_compress_hline16()
121 pixel_val16 = get_pixel_val16(pixel, log_bpp); in udl_compress_hline16()
124 pixel += bpp; in udl_compress_hline16()
127 if (unlikely(pixel > start + bpp)) { in udl_compress_hline16()
128 /* go back and fill in raw pixel count */ in udl_compress_hline16()
133 *cmd++ = (((pixel - start) >> log_bpp) - 1) & 0xFF; in udl_compress_hline16()
135 /* Then start another raw pixel span */ in udl_compress_hline16()
136 raw_pixel_start = pixel; in udl_compress_hline16()
141 if (pixel > raw_pixel_start) { in udl_compress_hline16()
143 *raw_pixels_count_byte = ((pixel - raw_pixel_start) >> log_bpp) & 0xFF; in udl_compress_hline16()
149 *cmd_pixels_count_byte = ((pixel - cmd_pixel_start) >> log_bpp) & 0xFF; in udl_compress_hline16()
150 dev_addr += ((pixel - cmd_pixel_start) >> log_bpp) * 2; in udl_compress_hline16()
161 *pixel_start_ptr = pixel; in udl_compress_hline16()
168 * There are 3 copies of every pixel: The front buffer that the fbdev