STRUCT CONVERSION_MATRIX(9)
π¦ 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):
struct vkms_frame_info(9)struct pixel_argb_u16(9)pixel_write_t(9)enum pixel_read_direction(9)pixel_read_line_t(9)struct vkms_plane_state(9)struct vkms_crtc_state(9)struct vkms_output(9)struct vkms_device(9)vkms_create(9)vkms_destroy(9)vkms_crtc_init(9)vkms_output_init(9)vkms_plane_init(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms