STRUCT PIXEL_YUV_U16(9)
β¨ struct pixel_yuv_u16(9) β¨
okay so bestie, welcome to Kernel API Manual β today's main character is a little struct from the kernel world and honestly? she's serving π
πΈ NAME πΈ
struct pixel_yuv_u16 β the internal representation of a pixel color. that's it, that's her whole job. no cap, she just holds a color on the inside π
π¦ SYNOPSIS π¦
struct pixel_yuv_u16 {
u16 y, u, v;
};
look at that. three u16s, chillin' in a struct, living their best lives together π«Ά
π Members π
yβ the luma value, stored in 16 bits, without padding, using machine endianness. she's the brightness baddie of the trio βuβ the blue difference chroma value, stored in 16 bits, without padding, using machine endianness. blue chroma said "i'm the moment" πvβ the red difference chroma value, stored in 16 bits, without padding, using machine endianness. red chroma, aka the other half of the chroma duo, also iconic π₯
ngl the "without padding, using machine endianness" part applies to literally all three of them β so don't go assuming anything about byte layout beyond that, bestie. fr fr.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/vkms/tests/vkms_format_test.cβ go read the test file, iykyk π
and that's the whole vibe check, bestie π§π this lil' page came from ./drivers/gpu/drm/vkms/tests, dated October 2026 β slay, periodt πβ¨
π¦ 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