get_subsampling_offset(9)
π get_subsampling_offset β Kernel API Manual β¨
okay so bestie, you're looking at get_subsampling_offset(9) and honestly? she's a little icon. this function hands you back an offset that keeps the chroma siting consistent no matter what x_start and y_start you rolled up with. like, the vibes stay aligned. periodt. π
πΈ NAME πΈ
get_subsampling_offset β an offset for keeping the chroma siting consistent regardless of x_start and y_start values π¦
β¨ SYNOPSIS β¨
int get_subsampling_offset (enum pixel_read_direction direction , int x_start , int y_start );
like yes, she returns an int, and yes, that's three whole arguments. we love a signature that eats. π
π«Ά ARGUMENTS π«Ά
directionβ the direction of the reading, so this offset can be computed properly. it's giving "which way are we going" energy. π§x_startβ the x coordinate of the starting point of the readed line πy_startβ the y coordinate of the starting point of the readed line π
ngl the original really does say "readed line" and honestly? she said what she said. keeping it fr fr. π
π SEE ALSO π
the whole friend group, no cap. go say hi:
- Kernel file
./drivers/gpu/drm/vkms/vkms_formats.cβ her home address π packed_pixels_offset(9)packed_pixels_addr(9)get_block_step_bytes(9)packed_pixels_addr_1x1(9)get_subsampling(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)
like, the crossover episode everyone asked for. π₯π
mwah π this page lives in ./drivers/gpu/drm/vkms and she was stamped October 2026 β go off, queen. βπ
π¦ 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