Lines Matching full:pixel

28 static inline u16 pixel32_to_be16(const uint32_t pixel)  in pixel32_to_be16()  argument
30 return (((pixel >> 3) & 0x001f) | in pixel32_to_be16()
31 ((pixel >> 5) & 0x07e0) | in pixel32_to_be16()
32 ((pixel >> 8) & 0xf800)); in pixel32_to_be16()
35 static inline u16 get_pixel_val16(const uint8_t *pixel, int log_bpp) in get_pixel_val16() argument
39 pixel_val16 = *(const uint16_t *)pixel; in get_pixel_val16()
41 pixel_val16 = pixel32_to_be16(*(const uint32_t *)pixel); in get_pixel_val16()
64 * Rather than 256 pixel commands which are either rl or raw encoded,
69 * compression than 256 pixel raw or rle commands, with similar CPU consumpion.
80 const u8 *pixel = *pixel_start_ptr; in udl_compress_hline16() local
84 while ((pixel_end > pixel) && in udl_compress_hline16()
99 cmd_pixel_start = pixel; in udl_compress_hline16()
102 raw_pixel_start = pixel; in udl_compress_hline16()
104 cmd_pixel_end = pixel + (min3(MAX_CMD_PIXELS + 1UL, in udl_compress_hline16()
105 (unsigned long)(pixel_end - pixel) >> log_bpp, in udl_compress_hline16()
108 pixel_val16 = get_pixel_val16(pixel, log_bpp); in udl_compress_hline16()
110 while (pixel < cmd_pixel_end) { in udl_compress_hline16()
111 const u8 *const start = pixel; in udl_compress_hline16()
117 pixel += bpp; in udl_compress_hline16()
119 while (pixel < cmd_pixel_end) { in udl_compress_hline16()
120 pixel_val16 = get_pixel_val16(pixel, log_bpp); in udl_compress_hline16()
123 pixel += bpp; in udl_compress_hline16()
126 if (unlikely(pixel > start + bpp)) { in udl_compress_hline16()
127 /* go back and fill in raw pixel count */ in udl_compress_hline16()
132 *cmd++ = (((pixel - start) >> log_bpp) - 1) & 0xFF; in udl_compress_hline16()
134 /* Then start another raw pixel span */ in udl_compress_hline16()
135 raw_pixel_start = pixel; in udl_compress_hline16()
140 if (pixel > raw_pixel_start) { in udl_compress_hline16()
142 *raw_pixels_count_byte = ((pixel - raw_pixel_start) >> log_bpp) & 0xFF; in udl_compress_hline16()
148 *cmd_pixels_count_byte = ((pixel - cmd_pixel_start) >> log_bpp) & 0xFF; in udl_compress_hline16()
149 dev_addr += ((pixel - cmd_pixel_start) >> log_bpp) * 2; in udl_compress_hline16()
160 *pixel_start_ptr = pixel; in udl_compress_hline16()
167 * There are 3 copies of every pixel: The front buffer that the fbdev