]> Pileus Git - ~andy/linux/blobdiff - include/media/v4l2-common.h
[media] v4l2-common: add CVT and GTF detection functions
[~andy/linux] / include / media / v4l2-common.h
index 447f4b6b716c16e8fa178e45b091f00026514f35..1a0b2db4c5d318c80b135d5a69b7f4b34659327c 100644 (file)
@@ -216,4 +216,13 @@ bool v4l_match_dv_timings(const struct v4l2_dv_timings *t1,
                          const struct v4l2_dv_timings *t2,
                          unsigned pclock_delta);
 
+bool v4l2_detect_cvt(unsigned frame_height, unsigned hfreq, unsigned vsync,
+               u32 polarities, struct v4l2_dv_timings *fmt);
+
+bool v4l2_detect_gtf(unsigned frame_height, unsigned hfreq, unsigned vsync,
+               u32 polarities, struct v4l2_fract aspect,
+               struct v4l2_dv_timings *fmt);
+
+struct v4l2_fract v4l2_calc_aspect_ratio(u8 hor_landscape, u8 vert_portrait);
+
 #endif /* V4L2_COMMON_H_ */