hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/include/media/v4l2-dv-timings.h
....@@ -10,6 +10,17 @@
1010
1111 #include <linux/videodev2.h>
1212
13
+/**
14
+ * v4l2_calc_timeperframe - helper function to calculate timeperframe based
15
+ * v4l2_dv_timings fields.
16
+ * @t: Timings for the video mode.
17
+ *
18
+ * Calculates the expected timeperframe using the pixel clock value and
19
+ * horizontal/vertical measures. This means that v4l2_dv_timings structure
20
+ * must be correctly and fully filled.
21
+ */
22
+struct v4l2_fract v4l2_calc_timeperframe(const struct v4l2_dv_timings *t);
23
+
1324 /*
1425 * v4l2_dv_timings_presets: list of all dv_timings presets.
1526 */