drm_fb_argb8888_to_argb4444(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

Okurrr bestie, welcome to the Kernel API Manual page for drm_fb_argb8888_to_argb4444(9) ✨

drm_fb_argb8888_to_argb4444 β€” Convert ARGB8888 to ARGB4444 clip buffer πŸ’…


🌸 SYNOPSIS 🌸

void drm_fb_argb8888_to_argb4444 (struct iosys_map *dst , const unsigned
       int *dst_pitch , const struct iosys_map *src , const struct
       drm_framebuffer *fb , const struct drm_rect *clip , struct
       drm_format_conv_state *state );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dst β€” Array of ARGB4444 destination buffers πŸ’–
  • dst_pitch β€” Array of numbers of bytes between the start of two consecutive scanlines within dst; can be NULL if scanlines are stored next to each other.
  • src β€” Array of ARGB8888 source buffer ✨
  • fb β€” DRM framebuffer πŸŽ€
  • clip β€” Clip rectangle area to copy 🌈
  • state β€” Transform and conversion state 🫢

πŸ’œ DESCRIPTION πŸ’œ

So here’s the vibe: this function copies parts of a framebuffer to display memory and converts the color format during the process. Literally doing the most, respectfully πŸ‘‘

The parameters dst, dst_pitch and src refer to arrays. Each array must have at least as many entries as there are planes in fb's format. Each entry stores the value for the format's respective color plane at the same index. No cap, that part matters 🧚

Heads up bestie: this function does not apply clipping on dst β€” i.e. the destination is at the top-left corner. So don’t expect it to slide the destination around for you πŸ’€

Drivers can use this function for ARGB4444 devices that don't support ARGB8888 natively. It’s giving β€œformat translator for the hardware that didn’t get the upgrade” πŸ˜­πŸ’–


⭐ SEE ALSO ⭐

Kernel file ./drivers/gpu/drm/drm_format_helper.c


Catch you later, bestie πŸ’œ β€” source/version location is ./drivers/gpu/drm, dated October 2026. Periodt βœ¨πŸŽ€

πŸ“¦ where this page comes from