Lines Matching full:ratio

380 	struct v4l2_fract ratio = { 1, 1 };  in v4l2_dv_timings_aspect_ratio()  local
384 return ratio; in v4l2_dv_timings_aspect_ratio()
386 return ratio; in v4l2_dv_timings_aspect_ratio()
388 ratio.numerator = t->bt.width * t->bt.picture_aspect.denominator; in v4l2_dv_timings_aspect_ratio()
389 ratio.denominator = t->bt.height * t->bt.picture_aspect.numerator; in v4l2_dv_timings_aspect_ratio()
391 rational_best_approximation(ratio.numerator, ratio.denominator, in v4l2_dv_timings_aspect_ratio()
392 ratio.numerator, ratio.denominator, &n, &d); in v4l2_dv_timings_aspect_ratio()
393 ratio.numerator = n; in v4l2_dv_timings_aspect_ratio()
394 ratio.denominator = d; in v4l2_dv_timings_aspect_ratio()
395 return ratio; in v4l2_dv_timings_aspect_ratio()
559 /* Aspect ratio based on vsync */ in v4l2_detect_cvt()
697 * @aspect - preferred aspect ratio. GTF has no method of determining the
698 * aspect ratio in order to derive the image width from the
700 * the native screen aspect ratio is used for this. If it
820 /** v4l2_calc_aspect_ratio - calculate the aspect ratio based on bytes
825 * Determines the aspect ratio from the EDID.
827 * "Horizontal and Vertical Screen Size or Aspect Ratio"
832 u8 ratio; in v4l2_calc_aspect_ratio() local
843 /* Only one is filled in, so interpret them as a ratio: in v4l2_calc_aspect_ratio()
845 ratio = hor_landscape | vert_portrait; in v4l2_calc_aspect_ratio()
846 /* Change some rounded values into the exact aspect ratio */ in v4l2_calc_aspect_ratio()
847 if (ratio == 79) { in v4l2_calc_aspect_ratio()
850 } else if (ratio == 34) { in v4l2_calc_aspect_ratio()
853 } else if (ratio == 68) { in v4l2_calc_aspect_ratio()
862 /* The aspect ratio is for portrait, so swap numerator and denominator */ in v4l2_calc_aspect_ratio()