drm_fb_xrgb8888_to_rgb565be(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_fb_xrgb8888_to_rgb565be(9) β€” the Kernel API Manual era ✨

okay so bestie, welcome to the Kernel API Manual page for drm_fb_xrgb8888_to_rgb565be β€” it's giving "convert my pixels, but make it big-endian" and honestly? iconic.


🌸 NAME 🌸

drm_fb_xrgb8888_to_rgb565be β€” the glow-up function that converts XRGB8888 into a RGB565|DRM_FORMAT_BIG_ENDIAN clip buffer. no cap, that's literally her whole job 🫢


✨ SYNOPSIS ✨

void drm_fb_xrgb8888_to_rgb565be (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 );

void, bestie. she returns nothing β€” the real ones never need to prove themselves πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dst β€” array of RGB565BE destination buffers. plural, she's an array girlie ✨
  • 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 (they're cozy like that πŸ₯°)
  • src β€” array of XRGB8888 source buffers. the origin story πŸ’œ
  • fb β€” DRM framebuffer. the main character, honestly πŸ‘‘
  • clip β€” the clip rectangle area to copy. boundaries = self care 🌸
  • state β€” transform and conversion state. the vibe check, preserved across the whole operation πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

so like, here's the tea: this function copies parts of a framebuffer over to display memory and converts the color format while it's at it, multitasking queen that she is. Destination and framebuffer formats must match β€” no catfishing allowed, fr fr.

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 β€” like assigned seating but for pixel planes 😌

⚠️ heads up bestie: this function does not apply clipping on dst (i.e. the destination is at the top-left corner). don't come for her about the offset, she simply does not do that πŸ’€

Drivers can use this function for RGB565BE devices that don't support XRGB8888 natively. she's the translator, the bridge, the moment 🌈


⭐ SEE ALSO ⭐

the whole friend group, assembled. iykyk 🧚


and that's the page bestie!! brought to you straight outta ./drivers/gpu/drm, dated October 2026 β€” remember the date, it's giving timestamp slay πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from