get_convers..._to_argb_u16(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_convers..._to_argb_u16(9) πŸ’…

Okay bestie, welcome to the Kernel API Manual page for get_convers..._to_argb_u16(9) β€” yes, the header abbreviates it like that, and yes, the full name is spelled out below. This one is lowkey iconic: it retrieves the correct yuv to rgb conversion matrix for a given encoding and range. That's the whole plot. πŸŽ€


✨ NAME ✨

get_conversion_matrix_to_argb_u16 β€” retrieve the correct yuv to rgb conversion matrix for a given encoding and range. Slay. πŸ’–

✨ SYNOPSIS ✨

Here's the signature, copied exactly so nobody comes for me:

void get_conversion_matrix_to_argb_u16 (u32 format , enum
       drm_color_encoding encoding , enum drm_color_range range , struct
       conversion_matrix *matrix );

πŸŽ€ ARGUMENTS πŸŽ€

  • format β€” a DRM_FORMAT_* value, and it's the one you're obtaining a conversion function for (see [drm_fourcc.h]). Go peep the header if you need the format lore. πŸ¦‹
  • encoding β€” a DRM_COLOR_* value; this is what you're obtaining a conversion matrix for. ✨
  • range β€” a DRM_COLOR_*_RANGE value; also for obtaining that conversion matrix. 🌸
  • matrix β€” pointer to store the value into. That's the storage spot, bestie. πŸ“₯

🌈 SEE ALSO 🌈

The whole squad, fr fr:


Later, bestie 🫢 β€” source/version: ./drivers/gpu/drm/vkms; dated October 2026; and the page header is get_convers..._to_argb_u16(9). πŸ’œ

πŸ“¦ where this page comes from