Lines Matching refs:pix_ptr
138 const uint16_t *pix_ptr; in sdl_display_write_rgb565() local
146 pix_ptr = (const uint16_t *)buf + in sdl_display_write_rgb565()
148 rgb565 = sys_be16_to_cpu(*pix_ptr); in sdl_display_write_rgb565()
164 const uint16_t *pix_ptr; in sdl_display_write_bgr565() local
171 pix_ptr = (const uint16_t *)buf + in sdl_display_write_bgr565()
173 pixel = (((*pix_ptr >> 11) & 0x1F) * 255 / 31) << 16; in sdl_display_write_bgr565()
174 pixel |= (((*pix_ptr >> 5) & 0x3F) * 255 / 63) << 8; in sdl_display_write_bgr565()
175 pixel |= (*pix_ptr & 0x1F) * 255 / 31; in sdl_display_write_bgr565()
289 const uint32_t *pix_ptr; in sdl_display_read_rgb888() local
297 pix_ptr = (const uint32_t *)read_buf + ((h_idx * desc->pitch) + w_idx); in sdl_display_read_rgb888()
298 *buf8 = (*pix_ptr & 0xFF0000) >> 16; in sdl_display_read_rgb888()
300 *buf8 = (*pix_ptr & 0xFF00) >> 8; in sdl_display_read_rgb888()
302 *buf8 = (*pix_ptr & 0xFF); in sdl_display_read_rgb888()
315 const uint32_t *pix_ptr; in sdl_display_read_rgb565() local
323 pix_ptr = (const uint32_t *)read_buf + ((h_idx * desc->pitch) + w_idx); in sdl_display_read_rgb565()
324 pixel = (*pix_ptr & 0xF80000) >> 8; in sdl_display_read_rgb565()
325 pixel |= (*pix_ptr & 0x00FC00) >> 5; in sdl_display_read_rgb565()
326 pixel |= (*pix_ptr & 0x0000F8) >> 3; in sdl_display_read_rgb565()
340 const uint32_t *pix_ptr; in sdl_display_read_bgr565() local
348 pix_ptr = (const uint32_t *)read_buf + ((h_idx * desc->pitch) + w_idx); in sdl_display_read_bgr565()
349 pixel = (*pix_ptr & 0xF80000) >> 8; in sdl_display_read_bgr565()
350 pixel |= (*pix_ptr & 0x00FC00) >> 5; in sdl_display_read_bgr565()
351 pixel |= (*pix_ptr & 0x0000F8) >> 3; in sdl_display_read_bgr565()
366 const uint32_t *pix_ptr; in sdl_display_read_mono() local
379 pix_ptr = (const uint32_t *)read_buf + in sdl_display_read_mono()
381 if ((*pix_ptr)) { in sdl_display_read_mono()