drm_format_...sampling_422(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_format_info_is_yuv_sampling_422 ✨

okay so real talk, bestie β€” we're deep in the Kernel API Manual today (drm_format_...sampling_422(9), for the record πŸ’…) and this little function is genuinely one of the cutest vibe checks in all of DRM. it does exactly one thing and it does it flawlessly. obsessed.

🌸 NAME 🌸

drm_format_info_is_yuv_sampling_422 β€” it checks that the format info matches a YUV format with 4:2:2 sub-sampling πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

bool drm_format_info_is_yuv_sampling_422 (const struct drm_format_info
*info );

πŸ’– ARGUMENTS πŸ’–

  • info β€” the format info, obviously πŸ’β€β™€οΈ like, the actual struct drm_format_info you want to interrogate. it's the only thing she needs.

⭐ RETURN ⭐

A boolean, bestie β€” a whole bool β€” indicating whether the format info matches a YUV format with 4:2:2 sub-sampling. that's it. that's the tea. no side quests, no surprises, just a yes-or-no and she's out 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

okay so if you're going down the rabbit hole (and honestly? iconic of you), here's the whole friend group 🌈 β€” Kernel file ./include/drm/drm_fourcc.h, DRM_FORMAT_MAX_PLANES(9), struct drm_format_info(9), drm_format_info_is_yuv_packed(9), drm_format_info_is_yuv_semiplanar(9), drm_format_info_is_yuv_planar(9), drm_format_info_is_yuv_sampling_410(9), drm_format_info_is_yuv_sampling_411(9), drm_format_info_is_yuv_sampling_420(9), drm_format_info_is_yuv_sampling_444(9), drm_format_info_plane_width(9), drm_format_info_plane_height(9) πŸ’œ


and that's the whole page, fr fr πŸ’€ β€” brought to you by the fine folks at ./include/drm, dated October 2026. go check your sampling, bestie, 4:2:2 is serving πŸ“βœ¨

πŸ“¦ where this page comes from