diff options
author | Johannes Stezenbach <devnull@localhost> | 2003-04-22 13:19:05 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2003-04-22 13:19:05 +0000 |
commit | e4b81e505a1aee843073badd3062488776aecfa0 (patch) | |
tree | 15a0ccc7e599b1d0371c2e67522e4e9473f99c4b /linux/include | |
parent | fb1f8cef99947775eaab5a571de9a79ddad04888 (diff) | |
download | mediapointer-dvb-s2-e4b81e505a1aee843073badd3062488776aecfa0.tar.gz mediapointer-dvb-s2-e4b81e505a1aee843073badd3062488776aecfa0.tar.bz2 |
As announced last week:
Video API change for VIDEO_EVENT_SIZE_CHANGED and VIDEO_GET_SIZE ioctl,
and VIDEO_FORMAT_221_1.
Implemented video events for VIDEO_EVENT_SIZE_CHANGED (use poll(2) with
POLLPRI) and ioctl VIDEO_GET_SIZE.
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/linux/dvb/video.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/linux/include/linux/dvb/video.h b/linux/include/linux/dvb/video.h index 24353a722..a8b6008e7 100644 --- a/linux/include/linux/dvb/video.h +++ b/linux/include/linux/dvb/video.h @@ -33,8 +33,9 @@ typedef enum { - VIDEO_FORMAT_4_3, /* Select 4:3 format */ - VIDEO_FORMAT_16_9 /* Select 16:9 format. */ + VIDEO_FORMAT_4_3, /* Select 4:3 format */ + VIDEO_FORMAT_16_9, /* Select 16:9 format. */ + VIDEO_FORMAT_221_1 /* 2.21:1 */ } video_format_t; @@ -56,6 +57,11 @@ typedef enum { VIDEO_CENTER_CUT_OUT /* use center cut out format */ } video_displayformat_t; +typedef struct { + int w; + int h; + video_format_t aspect_ratio; +} video_size_t; typedef enum { VIDEO_SOURCE_DEMUX, /* Select the demux as the main source */ @@ -74,10 +80,11 @@ typedef enum { struct video_event { int32_t type; +#define VIDEO_EVENT_SIZE_CHANGED 1 time_t timestamp; - union { - video_format_t video_format; - } u; + union { + video_size_t size; + } u; }; @@ -186,6 +193,7 @@ typedef uint16_t video_attributes_t; #define VIDEO_SET_SPU_PALETTE _IOW('o', 51, video_spu_palette_t) #define VIDEO_GET_NAVI _IOR('o', 52, video_navi_pack_t) #define VIDEO_SET_ATTRIBUTES _IO('o', 53) +#define VIDEO_GET_SIZE _IOR('o', 55, video_size_t) #endif /*_DVBVIDEO_H_*/ |