v4l2_detect_gtf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 as struct v4l2_bt_timings polarities) β€” yes, that exact struct vibe ✨
  • interlaced β€” if this flag is true, 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, then 16:9 will be assumed 🌈
  • cap β€” the v4l2_dv_timings_cap capabilities πŸ’€
  • fmt β€” the resulting timings 🎯
bestie heads-up: GTF is not out here guessing image width from image height, so aspect has to be given explicitly. If it’s not filled in correctly, 16:9 is 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:


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