get_convers..._to_argb_u16(9)
π 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β aDRM_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β aDRM_COLOR_*value; this is what you're obtaining a conversion matrix for. β¨rangeβ aDRM_COLOR_*_RANGEvalue; 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:
- Kernel file:
./drivers/gpu/drm/vkms/vkms_formats.c packed_pixels_offset(9)packed_pixels_addr(9)get_block_step_bytes(9)packed_pixels_addr_1x1(9)get_subsampling(9)get_subsampling_offset(9)READ_LINE(9)READ_LINE_ARGB8888(9)READ_LINE_le16161616(9)READ_LINE_YUV_SEMIPLANAR(9)vkms_writeback_row(9)get_pixel_read_line_function(9)swap_uv_columns(9)get_pixel_write_function(9)
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
- 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