summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-03-10 10:24:30 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2007-03-10 10:24:30 +0100
commit66f190e4b0941d628ee812ec547e89eeec797307 (patch)
tree79adaff2be24f37b67b5058275b3c79c4d5ff69d /linux
parentb57241d11bd12a147c53051dcd943aef49f905f2 (diff)
downloadmediapointer-dvb-s2-66f190e4b0941d628ee812ec547e89eeec797307.tar.gz
mediapointer-dvb-s2-66f190e4b0941d628ee812ec547e89eeec797307.tar.bz2
Add vsync_field to the union in video_event for VIDEO_EVENT_VSYNC
From: Hans Verkuil <hverkuil@xs4all.nl> 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>
Diffstat (limited to 'linux')
-rw-r--r--linux/include/linux/dvb/video.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/include/linux/dvb/video.h b/linux/include/linux/dvb/video.h
index a96da40c5..0c2a1c7c5 100644
--- a/linux/include/linux/dvb/video.h
+++ b/linux/include/linux/dvb/video.h
@@ -120,6 +120,13 @@ struct video_command {
};
};
+/* FIELD_UNKNOWN can be used if the hardware does not know whether
+ the Vsync is for an odd, even or progressive (i.e. non-interlaced)
+ field. */
+#define VIDEO_VSYNC_FIELD_UNKNOWN (0)
+#define VIDEO_VSYNC_FIELD_ODD (1)
+#define VIDEO_VSYNC_FIELD_EVEN (2)
+#define VIDEO_VSYNC_FIELD_PROGRESSIVE (3)
struct video_event {
int32_t type;
@@ -131,6 +138,7 @@ struct video_event {
union {
video_size_t size;
unsigned int frame_rate; /* in frames per 1000sec */
+ unsigned char vsync_field; /* unknown/odd/even/progressive */
} u;
};