Lines Matching refs:pixel
431 const uint16_t *pixel = *pixel_start_ptr; in dlfb_compress_hline() local
435 while ((pixel_end > pixel) && in dlfb_compress_hline()
443 *pixel == *(u16 *)((u8 *)pixel + back_buffer_offset)) { in dlfb_compress_hline()
444 pixel++; in dlfb_compress_hline()
457 cmd_pixel_start = pixel; in dlfb_compress_hline()
460 raw_pixel_start = pixel; in dlfb_compress_hline()
462 cmd_pixel_end = pixel + min3(MAX_CMD_PIXELS + 1UL, in dlfb_compress_hline()
463 (unsigned long)(pixel_end - pixel), in dlfb_compress_hline()
468 while (cmd_pixel_end - 1 > pixel && in dlfb_compress_hline()
473 while (pixel < cmd_pixel_end) { in dlfb_compress_hline()
474 const uint16_t * const repeating_pixel = pixel; in dlfb_compress_hline()
475 u16 pixel_value = *pixel; in dlfb_compress_hline()
479 *(u16 *)((u8 *)pixel + back_buffer_offset) = pixel_value; in dlfb_compress_hline()
481 pixel++; in dlfb_compress_hline()
483 if (unlikely((pixel < cmd_pixel_end) && in dlfb_compress_hline()
484 (*pixel == pixel_value))) { in dlfb_compress_hline()
491 *(u16 *)((u8 *)pixel + back_buffer_offset) = pixel_value; in dlfb_compress_hline()
492 pixel++; in dlfb_compress_hline()
493 } while ((pixel < cmd_pixel_end) && in dlfb_compress_hline()
494 (*pixel == pixel_value)); in dlfb_compress_hline()
497 *cmd++ = ((pixel - repeating_pixel) - 1) & 0xFF; in dlfb_compress_hline()
500 raw_pixel_start = pixel; in dlfb_compress_hline()
505 if (pixel > raw_pixel_start) { in dlfb_compress_hline()
507 *raw_pixels_count_byte = (pixel-raw_pixel_start) & 0xFF; in dlfb_compress_hline()
513 *cmd_pixels_count_byte = (pixel - cmd_pixel_start) & 0xFF; in dlfb_compress_hline()
514 dev_addr += (u8 *)pixel - (u8 *)cmd_pixel_start; in dlfb_compress_hline()
525 *pixel_start_ptr = pixel; in dlfb_compress_hline()