History

[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.

Hans Verkuil committed 12 years ago

Commit 273886b1 parent 1c6f3db1 file · +6 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/videodev2.h+6−0
@@ -1642,6 +1642,12 @@ struct v4l2_vbi_format { · 1641 unmodified lines
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 VBI1651/* Sliced VBI
1646 *1652 *
1647 * This implements is a proposal V4L2 API to allow SLICED VBI1653 * This implements is a proposal V4L2 API to allow SLICED VBI