drm_mode_is_420_only(9)
π drm_mode_is_420_only π
okay so bestie, welcome to the Kernel API Manual β yes we're literally in the kernel today, it's giving β¨low-level glamourβ¨ β and this lil function is the one that tells you whether a videomode is only supportable in YCBCR420 output format. that's the whole vibe check. no cap. π
πΈ NAME πΈ
drm_mode_is_420_only β the icon that answers "is this videomode only supported in YCBCR420 output format?" π
like fr fr, that's the question it's asking. not "can it also do 420," only 420. iykyk. π₯
β¨ SYNOPSIS β¨
bool drm_mode_is_420_only (const struct drm_display_info *display ,
const struct drm_display_mode *mode );
she takes two structs, she returns a bool. simple queen behaviour π
π¦ ARGUMENTS π¦
displayβ the display under action π«Ά like, this is the display we're doing the thing to, bestie.modeβ video mode to be tested. yes, this is the one getting the vibe check π
β RETURN β
true if the mode can be supported in YCBCR420 format, false if not. that's it, that's the whole answer. π
ngl, it's a clean yes/no. no maybe, no "it depends," no "let me check with my manager."trueorfalse. periodt. π
π SEE ALSO π
the whole friend group shows up for this one, so let's get the roll call going π«Ά
Kernel file ./drivers/gpu/drm/drm_modes.cβ where the magic lives, literally the source file, go read it bestie πdrm_mode_debug_printmodeline(9)drm_mode_create(9)drm_mode_destroy(9)drm_mode_probed_add(9)drm_analog_tv_mode(9)drm_cvt_mode(9)drm_gtf_mode_complex(9)drm_gtf_mode(9)drm_display_mode_from_videomode(9)drm_display_mode_to_videomode(9)drm_bus_flags_from_videomode(9)of_get_drm_display_mode(9)of_get_drm_panel_display_mode(9)drm_mode_set_name(9)drm_mode_vrefresh(9)drm_mode_get_hv_timing(9)drm_mode_set_crtcinfo(9)drm_mode_copy(9)drm_mode_init(9)drm_mode_duplicate(9)drm_mode_match(9)drm_mode_equal(9)drm_mode_equal_no_clocks(9)drm_mode_equal_no_clocks_no_stereo(9)drm_mode_validate_driver(9)drm_mode_validate_size(9)drm_mode_validate_ycbcr420(9)drm_mode_prune_invalid(9)drm_mode_compare(9)drm_mode_sort(9)drm_connector_list_update(9)drm_mode_parse_command_line_for_connector(9)drm_mode_create_from_cmdline_mode(9)drm_mode_convert_to_umode(9)drm_mode_convert_umode(9)drm_mode_is_420_also(9)β her sister, the "also" one, iconic duo ngl π―drm_mode_is_420(9)β the general-purpose one, main character energy β¨drm_set_preferred_mode(9)
that's 39 links bestie, i counted, she's popular π
that's the whole page!! short and sweet, just like drm_mode_is_420_only herself. love that for us. π
anyway, this lil baddie comes from ./drivers/gpu/drm and the calendar says October 2026, so go off, future queens π§ mwah, see you in the next manpage πππ
π¦ 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