• Home
  • Raw
  • Download

Lines Matching refs:pixel

68 static inline u16 pixel32_to_be16(const uint32_t pixel)  in pixel32_to_be16()  argument
70 return (((pixel >> 3) & 0x001f) | in pixel32_to_be16()
71 ((pixel >> 5) & 0x07e0) | in pixel32_to_be16()
72 ((pixel >> 8) & 0xf800)); in pixel32_to_be16()
75 static inline u16 get_pixel_val16(const uint8_t *pixel, int log_bpp) in get_pixel_val16() argument
79 pixel_val16 = *(const uint16_t *)pixel; in get_pixel_val16()
81 pixel_val16 = pixel32_to_be16(*(const uint32_t *)pixel); in get_pixel_val16()
120 const u8 *pixel = *pixel_start_ptr; in udl_compress_hline16() local
124 while ((pixel_end > pixel) && in udl_compress_hline16()
139 cmd_pixel_start = pixel; in udl_compress_hline16()
142 raw_pixel_start = pixel; in udl_compress_hline16()
144 cmd_pixel_end = pixel + (min3(MAX_CMD_PIXELS + 1UL, in udl_compress_hline16()
145 (unsigned long)(pixel_end - pixel) >> log_bpp, in udl_compress_hline16()
148 pixel_val16 = get_pixel_val16(pixel, log_bpp); in udl_compress_hline16()
150 while (pixel < cmd_pixel_end) { in udl_compress_hline16()
151 const u8 *const start = pixel; in udl_compress_hline16()
157 pixel += bpp; in udl_compress_hline16()
159 while (pixel < cmd_pixel_end) { in udl_compress_hline16()
160 pixel_val16 = get_pixel_val16(pixel, log_bpp); in udl_compress_hline16()
163 pixel += bpp; in udl_compress_hline16()
166 if (unlikely(pixel > start + bpp)) { in udl_compress_hline16()
172 *cmd++ = (((pixel - start) >> log_bpp) - 1) & 0xFF; in udl_compress_hline16()
175 raw_pixel_start = pixel; in udl_compress_hline16()
180 if (pixel > raw_pixel_start) { in udl_compress_hline16()
182 *raw_pixels_count_byte = ((pixel - raw_pixel_start) >> log_bpp) & 0xFF; in udl_compress_hline16()
188 *cmd_pixels_count_byte = ((pixel - cmd_pixel_start) >> log_bpp) & 0xFF; in udl_compress_hline16()
189 dev_addr += ((pixel - cmd_pixel_start) >> log_bpp) * 2; in udl_compress_hline16()
200 *pixel_start_ptr = pixel; in udl_compress_hline16()