packed_pixels_addr_1x1(9)
π packed_pixels_addr_1x1(9) π
okay bestie, so this is a page from the Kernel API Manual, and it's literally about grabbing a pointer to the block that holds the pixel at whatever coordinates you hand it. cute concept, honestly.
β¨ NAME β¨
packed_pixels_addr_1x1 β get the pointer to the block containing the pixel at the given coordinates π―
πΈ SYNOPSIS πΈ
void packed_pixels_addr_1x1 (const struct vkms_frame_info *frame_info ,
int x , int y , int plane_index , u8 **addr );
that's the whole signature, no notes π
π ARGUMENTS π
frame_infoβ buffer metadata, aka the vibe check info about your buffer ποΈxβ the x (width) coordinate inside the planeyβ the y (height) coordinate inside the planeplane_indexβ the index of the plane πaddrβ the returned pointer, yes it's a double pointer, yes that's the whole point, she returns by reference π
π¦ DESCRIPTION π¦
okay so here's the tea: this function can only be used with format where block_h == block_w == 1. like, that's the entire rule. no cap. if your block isn't 1Γ1, this is not the function for you, bestie π
fr fr, that constraint is the whole personality of this function β don't come at her with your chunky blocks.
π SEE ALSO π
kernel file ./drivers/gpu/drm/vkms/vkms_formats.c β that's where she lives π
and the whole friend group, all here, all iconic:
packed_pixels_offset(9)packed_pixels_addr(9)get_block_step_bytes(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_conversion_matrix_to_argb_u16(9)get_pixel_write_function(9)
periodt. π β¨
π«Ά that's the page!! sourced straight from ./drivers/gpu/drm/vkms, dated October 2026, and yeah the whole thing is filed under packed_pixels_addr_1x1(9) in case you need to find her again. mwah ππ
π¦ 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