Mailing List archive

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

[linux-dvb] Re: V4 API STC compare






> Anyway, I would:
>
> enum dvb_dmx_event_type {
>            DVB_DMX_RECORDING_EVENT,
>            DVB_DMX_STC_COMPARE_EVENT
> };
> struct dvb_dmx_stc_trigger {
>            int enable;                         // enable STC compare
event
>            uint64_t stc;                       // 33-bit / 90kHz
> };
> struct dvb_dmx_event {
>         enum dvb_dmx_event_type type;
>         union {
>                 struct {
>                         enum dvb_dmx_recording_event_type event;
>                         uint64_t bytes; /* still not clearly defined */
>                 } recording;
>                        uint64_t stc;           // when
DVB_DMX_STC_COMPARE_EVENT was queued
>         };
> };
> #define DMX_SET_STC_TRIGGER _IOW(DVB_IOCTL_BASE, 0x4d, struct
dvb_dmx_stc_trigger)
> #define DMX_GET_EVENT _IOR(DVB_IOCTL_BASE, 0x4e, struct dmx_event)
>
>
> The DVB_DMX_CLR_STC_COMPARE operation would be done by
DMX_SET_STC_TRIGGER
> with "enable" == 0.


> OK?

This looks good!

Rob : ^ )






-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index