aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-03-10 04:24:30 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-27 14:44:23 -0400
commit43d0dfcfc654fa18b6dd91b9483273b44112997f (patch)
treed61e2405bac19c16e76021d4027935785edb0ca7 /include
parent5332bdbe9aae9e1a8fc5daaca6c75f05bc37d310 (diff)
V4L/DVB (5402): Add vsync_field to the union in video_event for VIDEO_EVENT_VSYNC
VIDEO_EVENT_VSYNC needs to tell the application which field it was that received a VSYNC (odd/even/progressive). The vsync_field was added to the union in video_event for this purpose. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/dvb/video.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/dvb/video.h b/include/linux/dvb/video.h
index a96da40c50f5..0c2a1c7c50a6 100644
--- a/include/linux/dvb/video.h
+++ b/include/linux/dvb/video.h
@@ -120,6 +120,13 @@ struct video_command {
120 }; 120 };
121}; 121};
122 122
123/* FIELD_UNKNOWN can be used if the hardware does not know whether
124 the Vsync is for an odd, even or progressive (i.e. non-interlaced)
125 field. */
126#define VIDEO_VSYNC_FIELD_UNKNOWN (0)
127#define VIDEO_VSYNC_FIELD_ODD (1)
128#define VIDEO_VSYNC_FIELD_EVEN (2)
129#define VIDEO_VSYNC_FIELD_PROGRESSIVE (3)
123 130
124struct video_event { 131struct video_event {
125 int32_t type; 132 int32_t type;
@@ -131,6 +138,7 @@ struct video_event {
131 union { 138 union {
132 video_size_t size; 139 video_size_t size;
133 unsigned int frame_rate; /* in frames per 1000sec */ 140 unsigned int frame_rate; /* in frames per 1000sec */
141 unsigned char vsync_field; /* unknown/odd/even/progressive */
134 } u; 142 } u;
135}; 143};
136 144