aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-07-18 01:58:41 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-21 23:40:14 -0400
commit273886b4f71a1a960a3625833df2f037efffab45 (patch)
treecf4936a733026b703c4c4f4339bab01cb8700dde /include/uapi/linux
parent1c6f3db04fb470736d759d98a477541162e27fe2 (diff)
[media] videodev2.h: add defines for the VBI field start lines
While working with raw and sliced VBI support in several applications I noticed that you really need to know the start linenumbers for each video field in order to correctly convert the start line numbers reported by v4l2_vbi_format to the line numbers used in v4l2_sliced_vbi_format. This patch adds four defines that specify the start lines for each field for both 525 and 625 line standards. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/videodev2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 8fc4822c7883..5fd42027877a 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -1642,6 +1642,12 @@ struct v4l2_vbi_format {
1642#define V4L2_VBI_UNSYNC (1 << 0) 1642#define V4L2_VBI_UNSYNC (1 << 0)
1643#define V4L2_VBI_INTERLACED (1 << 1) 1643#define V4L2_VBI_INTERLACED (1 << 1)
1644 1644
1645/* ITU-R start lines for each field */
1646#define V4L2_VBI_ITU_525_F1_START (1)
1647#define V4L2_VBI_ITU_525_F2_START (264)
1648#define V4L2_VBI_ITU_625_F1_START (1)
1649#define V4L2_VBI_ITU_625_F2_START (314)
1650
1645/* Sliced VBI 1651/* Sliced VBI
1646 * 1652 *
1647 * This implements is a proposal V4L2 API to allow SLICED VBI 1653 * This implements is a proposal V4L2 API to allow SLICED VBI