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.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -1642,6 +1642,12 @@ struct v4l2_vbi_format { · 1641 unmodified lines | ||
| 1642 | 1642 | #define V4L2_VBI_UNSYNC (1 << 0) |
| 1643 | 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 | 1651 | /* Sliced VBI |
| 1646 | 1652 | * |
| 1647 | 1653 | * This implements is a proposal V4L2 API to allow SLICED VBI |