Re: [PATCH] DVB: add AUDIO_GET_PTS and VIDEO_GET_PTS ioctls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 16, 2006, Andreas Oberritter wrote:
> From: Andreas Oberritter <obi@xxxxxxxxxxx>
> 
> Add two new ioctls to read the 33 bit presentation time stamp from audio
> and video devices as defined in ITU T-REC-H.222.0 and ISO/IEC 13818-1.
> 
> Signed-off-by: Andreas Oberritter <obi@xxxxxxxxxxx>
> ---
> 
> Mauro, please add this patch to your repository after Johannes has
> ack'ed it.

Acked-by: Johannes Stezenbach <js@xxxxxxxxxxx>


> diff -r 9e6d8cdea895 linux/include/linux/dvb/audio.h
> --- a/linux/include/linux/dvb/audio.h	Mon Feb 13 12:19:59 2006 -0200
> +++ b/linux/include/linux/dvb/audio.h	Thu Feb 16 19:56:43 2006 +0100
> @@ -121,4 +121,17 @@ typedef uint16_t audio_attributes_t;
>  #define AUDIO_SET_ATTRIBUTES       _IOW('o', 17, audio_attributes_t)
>  #define AUDIO_SET_KARAOKE          _IOW('o', 18, audio_karaoke_t)
>  
> +/**
> + * AUDIO_GET_PTS
> + *
> + * Read the 33 bit presentation time stamp as defined
> + * in ITU T-REC-H.222.0 / ISO/IEC 13818-1.
> + *
> + * The PTS should belong to the currently played
> + * frame if possible, but may also be a value close to it
> + * like the PTS of the last decoded frame or the last PTS
> + * extracted by the PES parser.
> + */
> +#define AUDIO_GET_PTS              _IOR('o', 19, __u64)
> +
>  #endif /* _DVBAUDIO_H_ */
> diff -r 9e6d8cdea895 linux/include/linux/dvb/video.h
> --- a/linux/include/linux/dvb/video.h	Mon Feb 13 12:19:59 2006 -0200
> +++ b/linux/include/linux/dvb/video.h	Thu Feb 16 19:56:43 2006 +0100
> @@ -200,4 +200,17 @@ typedef uint16_t video_attributes_t;
>  #define VIDEO_GET_SIZE             _IOR('o', 55, video_size_t)
>  #define VIDEO_GET_FRAME_RATE       _IOR('o', 56, unsigned int)
>  
> +/**
> + * VIDEO_GET_PTS
> + *
> + * Read the 33 bit presentation time stamp as defined
> + * in ITU T-REC-H.222.0 / ISO/IEC 13818-1.
> + *
> + * The PTS should belong to the currently played
> + * frame if possible, but may also be a value close to it
> + * like the PTS of the last decoded frame or the last PTS
> + * extracted by the PES parser.
> + */
> +#define VIDEO_GET_PTS              _IOR('o', 57, __u64)
> +
>  #endif /*_DVBVIDEO_H_*/
> 
> 
> 

_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux