STRUCT ZYNQMP_DISP_FORMAT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct zynqmp_disp_format(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for struct zynqmp_disp_format, and it's literally the little info card that tells you everything about a display subsystem format. no cap, it's giving "format ID card" energy πŸͺͺπŸ’…


🌸 NAME 🌸

struct zynqmp_disp_format β€” display subsystem format information πŸ–₯️✨


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the struct in all its glory, copy it exactly, don't @ me:

struct zynqmp_disp_format {
    u32 drm_fmt;
    u32 bus_fmt;
    u32 buf_fmt;
    bool swap;
    const u32 *sf;
 };

πŸŽ€ Members πŸŽ€

  • drm_fmt β€” the DRM format, aka the 4CC 🎫 (yes, four character code, not a cute nickname)
  • bus_fmt β€” the media bus format 🚌✨
  • buf_fmt β€” the AV buffer format 🧺
  • swap β€” flag to swap R & B for RGB formats, and U & V for YUV formats πŸ”„πŸ’ƒ (this is the "flip it and reverse it" button, but for color components, fr fr)
  • sf β€” scaling factors for color components πŸ“πŸŒˆ (const u32 *, so it's a pointer to them, not the values themselves)

πŸ”₯ SEE ALSO πŸ”₯

bestie there are SO many friends on this list, it's a whole group chat πŸ‘―β€β™€οΈπŸ’¬. First up, the kernel file itself:

  • Kernel file ./drivers/gpu/drm/xlnx/zynqmp_disp.c

and then the whole squad, in order, no gatekeeping:

like, the whole driver showed up to the party πŸŽ‰πŸ‘‘


and that's the page!! πŸ’œ sourced straight from ./drivers/gpu/drm/xlnx, dated October 2026 β€” mwah, go read the code, ily, bye bestie πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from