STRUCT CONVERSION_MATRIX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct conversion_matrix(9) β€” Kernel API Manual πŸ¦‹

okay so bestie, welcome to the <pink>struct conversion_matrix</pink> page β€” manual name: Kernel API Manual. no cap, this struct is short but it's highkey giving main character energy in the kernel API. πŸ’…

✨ NAME ✨

struct conversion_matrix β€” Matrix to use for a specific encoding and range. that's literally the whole name, and honestly? iconic. πŸŽ€

πŸŽ€ SYNOPSIS πŸŽ€

ngl bestie, the synopsis is short and sweet β€” vibe check passed:

struct conversion_matrix {
    s64 matrix[3][3];
    int y_offset;
 };

πŸ’… Members πŸ’…

  • matrix β€” Conversion matrix from yuv to rgb. It's stored in a row-major manner and is used to compute rgb values from yuv values: [[r],[g],[b]] = matrix * [[y],[u],[v]] OR for yvu formats: [[r],[g],[b]] = matrix * [[y],[v],[u]]. The values of the matrix are signed fixed-point values with 32 bits fractional part. the way that math ate? obsessed. periodt. ✨
  • y_offset β€” Offset to apply on the y value. that's the whole vibe, fr fr. 🫢

🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/vkms/vkms_drv.h and these linked besties (iykyk):


mwah πŸ’‹ this page comes from ./drivers/gpu/drm/vkms, date October 2026, manual label struct conversion_matrix(9) β€” slay your encoding and range, bestie, and bye πŸ«ΆπŸ‘‘

πŸ“¦ where this page comes from