diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/videodev2.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index fec0c205f38b..437f1b0f8937 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h | |||
| @@ -1057,6 +1057,16 @@ struct v4l2_bt_timings { | |||
| 1057 | or used depends on the hardware. */ | 1057 | or used depends on the hardware. */ |
| 1058 | #define V4L2_DV_FL_HALF_LINE (1 << 3) | 1058 | #define V4L2_DV_FL_HALF_LINE (1 << 3) |
| 1059 | 1059 | ||
| 1060 | /* A few useful defines to calculate the total blanking and frame sizes */ | ||
| 1061 | #define V4L2_DV_BT_BLANKING_WIDTH(bt) \ | ||
| 1062 | (bt->hfrontporch + bt->hsync + bt->hbackporch) | ||
| 1063 | #define V4L2_DV_BT_FRAME_WIDTH(bt) \ | ||
| 1064 | (bt->width + V4L2_DV_BT_BLANKING_WIDTH(bt)) | ||
| 1065 | #define V4L2_DV_BT_BLANKING_HEIGHT(bt) \ | ||
| 1066 | (bt->vfrontporch + bt->vsync + bt->vbackporch + \ | ||
| 1067 | bt->il_vfrontporch + bt->il_vsync + bt->il_vbackporch) | ||
| 1068 | #define V4L2_DV_BT_FRAME_HEIGHT(bt) \ | ||
| 1069 | (bt->height + V4L2_DV_BT_BLANKING_HEIGHT(bt)) | ||
| 1060 | 1070 | ||
| 1061 | /** struct v4l2_dv_timings - DV timings | 1071 | /** struct v4l2_dv_timings - DV timings |
| 1062 | * @type: the type of the timings | 1072 | * @type: the type of the timings |
