Hi, I'd like to add this patch to dvb-kernel's linux/dvb/video.h, so userspace programs can adjust video system settings (PAL/NTSC) depending on the frame rate and video size. I think it won't break binary compatibility. The frame rate values are taken from ITU-T Rec. H.262 (2000 E) Table 6-4. May I proceed? Regards, Andreas
? video_event.diff Index: linux/dvb/video.h =================================================================== RCS file: /cvs/linuxtv/dvb-kernel/linux/include/linux/dvb/video.h,v retrieving revision 1.3 diff -u -r1.3 video.h --- linux/dvb/video.h 22 Apr 2003 13:19:06 -0000 1.3 +++ linux/dvb/video.h 19 Dec 2003 23:06:59 -0000 @@ -64,6 +64,17 @@ } video_size_t; typedef enum { + VIDEO_FRAME_RATE_23_976, + VIDEO_FRAME_RATE_24, + VIDEO_FRAME_RATE_25, + VIDEO_FRAME_RATE_29_97, + VIDEO_FRAME_RATE_30, + VIDEO_FRAME_RATE_50, + VIDEO_FRAME_RATE_59_94, + VIDEO_FRAME_RATE_60 +} video_frame_rate_t; + +typedef enum { VIDEO_SOURCE_DEMUX, /* Select the demux as the main source */ VIDEO_SOURCE_MEMORY /* If this source is selected, the stream comes from the user through the write @@ -80,10 +91,12 @@ struct video_event { int32_t type; -#define VIDEO_EVENT_SIZE_CHANGED 1 +#define VIDEO_EVENT_SIZE_CHANGED 1 +#define VIDEO_EVENT_FRAME_RATE_CHANGED 2 time_t timestamp; union { video_size_t size; + video_frame_rate_t frame_rate; } u; }; @@ -194,6 +207,7 @@ #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) +#define VIDEO_GET_FRAME_RATE _IOR('o', 56, video_frame_rate_t) #endif /*_DVBVIDEO_H_*/
Attachment:
signature.asc
Description: This is a digitally signed message part