Lines Matching full:aspect

368 		pr_info("%s: picture aspect (hor:vert): %u:%u\n", dev_prefix,  in v4l2_print_dv_timings()
562 /* Aspect ratio based on vsync */ in v4l2_detect_cvt()
703 * @aspect - preferred aspect ratio. GTF has no method of determining the
704 * aspect ratio in order to derive the image width from the
706 * the native screen aspect ratio is used for this. If it
720 struct v4l2_fract aspect, in v4l2_detect_gtf() argument
755 if (aspect.numerator == 0 || aspect.denominator == 0) { in v4l2_detect_gtf()
756 aspect.numerator = 16; in v4l2_detect_gtf()
757 aspect.denominator = 9; in v4l2_detect_gtf()
759 image_width = ((image_height * aspect.numerator) / aspect.denominator); in v4l2_detect_gtf()
832 /** v4l2_calc_aspect_ratio - calculate the aspect ratio based on bytes
837 * Determines the aspect ratio from the EDID.
839 * "Horizontal and Vertical Screen Size or Aspect Ratio"
843 struct v4l2_fract aspect = { 16, 9 }; in v4l2_calc_aspect_ratio() local
848 return aspect; in v4l2_calc_aspect_ratio()
851 aspect.numerator = hor_landscape; in v4l2_calc_aspect_ratio()
852 aspect.denominator = vert_portrait; in v4l2_calc_aspect_ratio()
853 return aspect; in v4l2_calc_aspect_ratio()
858 /* Change some rounded values into the exact aspect ratio */ in v4l2_calc_aspect_ratio()
860 aspect.numerator = 16; in v4l2_calc_aspect_ratio()
861 aspect.denominator = 9; in v4l2_calc_aspect_ratio()
863 aspect.numerator = 4; in v4l2_calc_aspect_ratio()
864 aspect.denominator = 3; in v4l2_calc_aspect_ratio()
866 aspect.numerator = 15; in v4l2_calc_aspect_ratio()
867 aspect.denominator = 9; in v4l2_calc_aspect_ratio()
869 aspect.numerator = hor_landscape + 99; in v4l2_calc_aspect_ratio()
870 aspect.denominator = 100; in v4l2_calc_aspect_ratio()
873 return aspect; in v4l2_calc_aspect_ratio()
874 /* The aspect ratio is for portrait, so swap numerator and denominator */ in v4l2_calc_aspect_ratio()
875 swap(aspect.denominator, aspect.numerator); in v4l2_calc_aspect_ratio()
876 return aspect; in v4l2_calc_aspect_ratio()