Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 1a595394b241504ff370a8d12ebfcea7 > files > 3676

kernel-doc-3.11.10-100.fc18.noarch.rpm

<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>Appendix&#160;H.&#160;DVB Demux Header File</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="LINUX MEDIA INFRASTRUCTURE API" /><link rel="up" href="dvbapi.html" title="Part&#160;II.&#160;LINUX DVB API" /><link rel="prev" href="ca_h.html" title="Appendix&#160;G.&#160;DVB Conditional Access Header File" /><link rel="next" href="frontend_h.html" title="Appendix&#160;I.&#160;DVB Frontend Header File" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix&#160;H.&#160;DVB Demux Header File</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ca_h.html">Prev</a>&#160;</td><th width="60%" align="center">Part&#160;II.&#160;LINUX DVB API</th><td width="20%" align="right">&#160;<a accesskey="n" href="frontend_h.html">Next</a></td></tr></table><hr /></div><div class="appendix"><div class="titlepage"><div><div><h2 class="title"><a id="dmx_h"></a>Appendix&#160;H.&#160;DVB Demux Header File</h2></div></div></div><pre class="programlisting">
/*
 * dmx.h
 *
 * Copyright (C) 2000 Marcus Metzler &lt;marcus@convergence.de&gt;
 *                  &amp; Ralph  Metzler &lt;ralph@convergence.de&gt;
 *                    for convergence integrated media GmbH
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */

#ifndef _UAPI_DVBDMX_H_
#define _UAPI_DVBDMX_H_

#include &lt;linux/types.h&gt;
#ifndef __KERNEL__
#include &lt;time.h&gt;
#endif


#define DMX_FILTER_SIZE 16

typedef enum
{
        DMX_OUT_DECODER, /* Streaming directly to decoder. */
        DMX_OUT_TAP,     /* Output going to a memory buffer */
                         /* (to be retrieved via the read command).*/
        DMX_OUT_TS_TAP,  /* Output multiplexed into a new TS  */
                         /* (to be retrieved by reading from the */
                         /* logical DVR device).                 */
        DMX_OUT_TSDEMUX_TAP /* Like TS_TAP but retrieved from the DMX device */
} <a class="link" href="dvb_demux.html#dmx-output-t" title="dmx_output_t">dmx_output_t</a>;


typedef enum
{
        DMX_IN_FRONTEND, /* Input from a front-end device.  */
        DMX_IN_DVR       /* Input from the logical DVR device.  */
} <a class="link" href="dvb_demux.html#dmx-input-t" title="dmx_input_t">dmx_input_t</a>;


typedef enum dmx_ts_pes
{
        DMX_PES_AUDIO0,
        DMX_PES_VIDEO0,
        DMX_PES_TELETEXT0,
        DMX_PES_SUBTITLE0,
        DMX_PES_PCR0,

        DMX_PES_AUDIO1,
        DMX_PES_VIDEO1,
        DMX_PES_TELETEXT1,
        DMX_PES_SUBTITLE1,
        DMX_PES_PCR1,

        DMX_PES_AUDIO2,
        DMX_PES_VIDEO2,
        DMX_PES_TELETEXT2,
        DMX_PES_SUBTITLE2,
        DMX_PES_PCR2,

        DMX_PES_AUDIO3,
        DMX_PES_VIDEO3,
        DMX_PES_TELETEXT3,
        DMX_PES_SUBTITLE3,
        DMX_PES_PCR3,

        DMX_PES_OTHER
} <a class="link" href="dvb_demux.html#dmx-pes-type-t" title="dmx_pes_type_t">dmx_pes_type_t</a>;

#define DMX_PES_AUDIO    DMX_PES_AUDIO0
#define DMX_PES_VIDEO    DMX_PES_VIDEO0
#define DMX_PES_TELETEXT DMX_PES_TELETEXT0
#define DMX_PES_SUBTITLE DMX_PES_SUBTITLE0
#define DMX_PES_PCR      DMX_PES_PCR0


typedef struct dmx_filter
{
        __u8  filter[DMX_FILTER_SIZE];
        __u8  mask[DMX_FILTER_SIZE];
        __u8  mode[DMX_FILTER_SIZE];
} <a class="link" href="dvb_demux.html#dmx-filter" title="struct dmx_filter">dmx_filter_t</a>;


struct dmx_sct_filter_params
{
        __u16          pid;
        dmx_filter_t   filter;
        __u32          timeout;
        __u32          flags;
#define DMX_CHECK_CRC       1
#define DMX_ONESHOT         2
#define DMX_IMMEDIATE_START 4
#define DMX_KERNEL_CLIENT   0x8000
};


struct dmx_pes_filter_params
{
        __u16          pid;
        dmx_input_t    input;
        dmx_output_t   output;
        dmx_pes_type_t pes_type;
        __u32          flags;
};

typedef struct <a class="link" href="dvb_demux.html#dmx-caps" title="struct dmx_caps">dmx_caps</a> {
        __u32 caps;
        int num_decoders;
} <a class="link" href="dvb_demux.html#dmx-caps" title="struct dmx_caps">dmx_caps_t</a>;

typedef enum {
        DMX_SOURCE_FRONT0 = 0,
        DMX_SOURCE_FRONT1,
        DMX_SOURCE_FRONT2,
        DMX_SOURCE_FRONT3,
        DMX_SOURCE_DVR0   = 16,
        DMX_SOURCE_DVR1,
        DMX_SOURCE_DVR2,
        DMX_SOURCE_DVR3
} <a class="link" href="dvb_demux.html#dmx-source-t" title="enum dmx_source_t">dmx_source_t</a>;

struct <a class="link" href="dvb_demux.html#dmx-stc" title="struct dmx_stc">dmx_stc</a> {
        unsigned int num;       /* input : which STC? 0..N */
        unsigned int base;      /* output: divisor for stc to get 90 kHz clock */
        __u64 stc;              /* output: stc in 'base'*90 kHz units */
};


#define <a class="link" href="dmx_fcalls.html#DMX_START" title="DMX_START">DMX_START</a>                _IO('o', 41)
#define <a class="link" href="dmx_fcalls.html#DMX_STOP" title="DMX_STOP">DMX_STOP</a>                 _IO('o', 42)
#define <a class="link" href="dmx_fcalls.html#DMX_SET_FILTER" title="DMX_SET_FILTER">DMX_SET_FILTER</a>           _IOW('o', 43, struct dmx_sct_filter_params)
#define <a class="link" href="dmx_fcalls.html#DMX_SET_PES_FILTER" title="DMX_SET_PES_FILTER">DMX_SET_PES_FILTER</a>       _IOW('o', 44, struct dmx_pes_filter_params)
#define <a class="link" href="dmx_fcalls.html#DMX_SET_BUFFER_SIZE" title="DMX_SET_BUFFER_SIZE">DMX_SET_BUFFER_SIZE</a>      _IO('o', 45)
#define <a class="link" href="dmx_fcalls.html#DMX_GET_PES_PIDS" title="DMX_GET_PES_PIDS">DMX_GET_PES_PIDS</a>         _IOR('o', 47, __u16[5])
#define <a class="link" href="dmx_fcalls.html#DMX_GET_CAPS" title="DMX_GET_CAPS">DMX_GET_CAPS</a>             _IOR('o', 48, dmx_caps_t)
#define <a class="link" href="dmx_fcalls.html#DMX_SET_SOURCE" title="DMX_SET_SOURCE">DMX_SET_SOURCE</a>           _IOW('o', 49, dmx_source_t)
#define <a class="link" href="dmx_fcalls.html#DMX_GET_STC" title="DMX_GET_STC">DMX_GET_STC</a>              _IOWR('o', 50, struct dmx_stc)
#define <a class="link" href="dmx_fcalls.html#DMX_ADD_PID" title="DMX_ADD_PID">DMX_ADD_PID</a>              _IOW('o', 51, __u16)
#define <a class="link" href="dmx_fcalls.html#DMX_REMOVE_PID" title="DMX_REMOVE_PID">DMX_REMOVE_PID</a>           _IOW('o', 52, __u16)

#endif /* _UAPI_DVBDMX_H_ */
</pre></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ca_h.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="dvbapi.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="frontend_h.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Appendix&#160;G.&#160;DVB Conditional Access Header File&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Appendix&#160;I.&#160;DVB Frontend Header File</td></tr></table></div></body></html>