Lines Matching full:pixel

13  * packed_pixels_offset() - Get the offset of the block containing the pixel at coordinates x/y
16 * @x: The x coordinate of the wanted pixel in the buffer
17 * @y: The y coordinate of the wanted pixel in the buffer
20 * @rem_x: The returned X coordinate of the requested pixel in the block
21 * @rem_y: The returned Y coordinate of the requested pixel in the block
23 * As some pixel formats store multiple pixels in a block (DRM_FORMAT_R* for example), some
25 * whole block, and the coordinate of the requested pixel inside this block.
30 * With this function, the caller just have to extract the correct pixel from the block.
41 * containing the pixel. in packed_pixels_offset()
56 * packed_pixels_addr() - Get the pointer to the block containing the pixel at the given
64 * @rem_x: The returned X coordinate of the requested pixel in the block
65 * @rem_y: The returned Y coordinate of the requested pixel in the block
68 * of the block containing this pixel and the pixel position inside this block.
83 * get_block_step_bytes() - Common helper to compute the correct step value between each pixel block
115 * packed_pixels_addr_1x1() - Get the pointer to the block containing the pixel at the given
144 * The following functions take pixel data (a, r, g, b, pixel, ...) and convert them to
147 * They are used in the `read_line`s functions to avoid duplicate work for some pixel formats.
156 * the best color value in a pixel format with more possibilities. in argb_u16_from_u8888()
185 static struct pixel_argb_u16 argb_u16_from_RGB565(const __le16 *pixel) in argb_u16_from_RGB565() argument
192 u16 rgb_565 = le16_to_cpu(*pixel); in argb_u16_from_RGB565()
206 * The following functions are read_line function for each pixel format supported by VKMS.
211 * These functions are very repetitive, but the innermost pixel loops must be kept inside these
318 * They are used in vkms_writeback_row() to convert and store a pixel from the src_buffer to
349 __le16 *pixel = (__le16 *)out_pixel; in argb_u16_to_ARGB16161616() local
351 pixel[3] = cpu_to_le16(in_pixel->a); in argb_u16_to_ARGB16161616()
352 pixel[2] = cpu_to_le16(in_pixel->r); in argb_u16_to_ARGB16161616()
353 pixel[1] = cpu_to_le16(in_pixel->g); in argb_u16_to_ARGB16161616()
354 pixel[0] = cpu_to_le16(in_pixel->b); in argb_u16_to_ARGB16161616()
359 __le16 *pixel = (__le16 *)out_pixel; in argb_u16_to_XRGB16161616() local
361 pixel[3] = cpu_to_le16(0xffff); in argb_u16_to_XRGB16161616()
362 pixel[2] = cpu_to_le16(in_pixel->r); in argb_u16_to_XRGB16161616()
363 pixel[1] = cpu_to_le16(in_pixel->g); in argb_u16_to_XRGB16161616()
364 pixel[0] = cpu_to_le16(in_pixel->b); in argb_u16_to_XRGB16161616()
369 __le16 *pixel = (__le16 *)out_pixel; in argb_u16_to_RGB565() local
382 *pixel = cpu_to_le16(r << 11 | g << 5 | b); in argb_u16_to_RGB565()
411 * format. The returned pointer is NULL for unsupported pixel formats. The caller must ensure that
436 …pr_err("Pixel format %p4cc is not supported by VKMS planes. This is a kernel bug, atomic check mus… in get_pixel_read_line_function()
444 * The returned pointer is NULL for unsupported pixel formats. The caller must ensure that the
469 …pr_err("Pixel format %p4cc is not supported by VKMS writeback. This is a kernel bug, atomic check … in get_pixel_write_function()