v4l2_detect_gtf(9)
okay so bestie, this is v4l2_detect_gtf(9) from the Kernel API Manual, and itβs giving βcan I tell if these timings are GTF?β energy πΈ no cap, we are keeping every single argument and detail, periodt.
NAME β¨
v4l2_detect_gtf β detect if the given timings follow the GTF standard π
SYNOPSIS π
bestie, hereβs the whole signature, exactly as it is:
bool v4l2_detect_gtf (unsigned int frame_height , unsigned int hfreq ,
unsigned int vsync , u32 polarities , bool interlaced , struct
v4l2_fract aspect , const struct v4l2_dv_timings_cap *cap , struct
v4l2_dv_timings *fmt );
ARGUMENTS π
okay, argument-by-argument, letβs go:
frame_heightβ the total height of the frame (including blanking) in lines. literally the whole vertical situation, blanking included πhfreqβ the horizontal frequency in Hz. hz-coded, iykyk β‘vsyncβ the height of the vertical sync in lines π¦polaritiesβ the horizontal and vertical polarities (same asstruct v4l2_bt_timings polarities) β yes, that exact struct vibe β¨interlacedβ if this flag istrue, it indicates interlaced format πaspectβ preferred aspect ratio. GTF has no method of determining the aspect ratio in order to derive the image width from the image height, so it has to be passed explicitly. Usually the native screen aspect ratio is used for this. If it is not filled in correctly, then16:9will be assumed πcapβ thev4l2_dv_timings_capcapabilities πfmtβ the resulting timings π―
bestie heads-up: GTF is not out here guessing image width from image height, soaspecthas to be given explicitly. If itβs not filled in correctly,16:9is assumed π
DESCRIPTION π¦
This function will attempt to detect if the given values correspond to a valid GTF format. If so, then it will return true, and fmt will be filled in with the found GTF timings. no cap β thatβs the whole plot, and it ate π
SEE ALSO π
Kernel file: ./include/media/v4l2-dv-timings.h β thatβs the source file, bestie π«Ά
and the whole reference squad, in order:
v4l2_calc_timeperframe(9)v4l2_check_dv_timings_fnc(9)v4l2_valid_dv_timings(9)v4l2_enum_dv_timings_cap(9)v4l2_find_dv_timings_cap(9)v4l2_find_dv_timings_cea861_vic(9)v4l2_match_dv_timings(9)v4l2_print_dv_timings(9)v4l2_detect_cvt(9)v4l2_calc_aspect_ratio(9)v4l2_dv_timings_aspect_ratio(9)can_reduce_fps(9)struct v4l2_hdmi_colorimetry(9)
mwah π β the footerβs source is ./include/media, the date is October 2026, and the page is v4l2_detect_gtf(9). bye bestie, go detect those timings π«Ά
π¦ 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