| .. | .. |
|---|
| 10 | 10 | |
|---|
| 11 | 11 | #include <linux/videodev2.h> |
|---|
| 12 | 12 | |
|---|
| 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 | + |
|---|
| 13 | 24 | /* |
|---|
| 14 | 25 | * v4l2_dv_timings_presets: list of all dv_timings presets. |
|---|
| 15 | 26 | */ |
|---|