STRUCT ROM_CURVE_CAPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so welcome to the struct rom_curve_caps(9) page, bestie β€” it's Kernel API Manual content but we're doing it with main-character energy. This struct is literally the predefined transfer function caps for degamma and regamma, and it is lowkey adorable because it's just a tiny pile of bitfields. πŸ¦‹


✨ NAME ✨

struct rom_curve_caps β€” predefined transfer function caps for degamma and regamma. periodt. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

It's giving tiny bitfield struct, no cap. Behold, exactly:

       struct rom_curve_caps {
           uint16_t srgb : 1;
           uint16_t bt2020 : 1;
           uint16_t gamma2_2 : 1;
           uint16_t pq : 1;
           uint16_t hlg : 1;
        };

🌸 Members 🌸

  • srgb β€” RGB color space transfer func.
  • bt2020 β€” BT.2020 transfer func.
  • gamma2_2 β€” standard gamma.
  • pq β€” perceptual quantizer transfer function.
  • hlg β€” hybrid log–gamma transfer function.

In the synopsis they're all uint16_t bitfields with : 1, so every member is literally one tiny bit of caps. πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/gpu/drm/amd/display/dc/dc.h β€” and the whole squad is:

xoxo, your kernel bestie β€” source/version: ./drivers/gpu/drm/amd/display/dc, dated October 2026 πŸ’–πŸ«Ά

πŸ“¦ where this page comes from