v4l2_calc_aspect_ratio(9) calculate the aspect ratio based on bytes 0x15 and 0x16 from the EDID.

SYNOPSIS

struct v4l2_fract v4l2_calc_aspect_ratio(u8 hor_landscape, u8 vert_portrait);

ARGUMENTS

hor_landscape

byte 0x15 from the EDID.

vert_portrait

byte 0x16 from the EDID.

DESCRIPTION

Determines the aspect ratio from the EDID. See VESA Enhanced EDID standard, release A, rev 2, section 3.6.2: "Horizontal and Vertical Screen Size or Aspect Ratio"

COPYRIGHT