Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
demux.h File Reference
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/list.h>
#include <linux/time.h>
#include <linux/dvb/dmx.h>

Go to the source code of this file.

Data Structures

struct  dmx_ts_feed
 
struct  dmx_section_filter
 
struct  dmx_section_feed
 
struct  dmx_frontend
 
struct  dmx_demux
 

Macros

#define DMX_MAX_FILTER_SIZE   18
 
#define DMX_MAX_SECTION_SIZE   4096
 
#define DMX_MAX_SECFEED_SIZE   (DMX_MAX_SECTION_SIZE + 188)
 
#define TS_PACKET   1 /* send TS packets (188 bytes) to callback (default) */
 
#define TS_PAYLOAD_ONLY
 
#define TS_DECODER   4 /* send stream to built-in decoder (if present) */
 
#define TS_DEMUX
 
#define DMX_TS_PES_AUDIO   DMX_TS_PES_AUDIO0
 
#define DMX_TS_PES_VIDEO   DMX_TS_PES_VIDEO0
 
#define DMX_TS_PES_TELETEXT   DMX_TS_PES_TELETEXT0
 
#define DMX_TS_PES_SUBTITLE   DMX_TS_PES_SUBTITLE0
 
#define DMX_TS_PES_PCR   DMX_TS_PES_PCR0
 
#define DMX_TS_FILTERING   1
 
#define DMX_PES_FILTERING   2
 
#define DMX_SECTION_FILTERING   4
 
#define DMX_MEMORY_BASED_FILTERING   8 /* write() available */
 
#define DMX_CRC_CHECKING   16
 
#define DMX_TS_DESCRAMBLING   32
 
#define DMX_FE_ENTRY(list)   list_entry(list, struct dmx_frontend, connectivity_list)
 

Typedefs

typedef int(* dmx_ts_cb )(const u8 *buffer1, size_t buffer1_length, const u8 *buffer2, size_t buffer2_length, struct dmx_ts_feed *source, enum dmx_success success)
 
typedef int(* dmx_section_cb )(const u8 *buffer1, size_t buffer1_len, const u8 *buffer2, size_t buffer2_len, struct dmx_section_filter *source, enum dmx_success success)
 

Enumerations

enum  dmx_success {
  DMX_OK = 0, DMX_LENGTH_ERROR, DMX_OVERRUN_ERROR, DMX_CRC_ERROR,
  DMX_FRAME_ERROR, DMX_FIFO_ERROR, DMX_MISSED_ERROR
}
 
enum  dmx_ts_pes {
  DMX_TS_PES_AUDIO0, DMX_TS_PES_VIDEO0, DMX_TS_PES_TELETEXT0, DMX_TS_PES_SUBTITLE0,
  DMX_TS_PES_PCR0, DMX_TS_PES_AUDIO1, DMX_TS_PES_VIDEO1, DMX_TS_PES_TELETEXT1,
  DMX_TS_PES_SUBTITLE1, DMX_TS_PES_PCR1, DMX_TS_PES_AUDIO2, DMX_TS_PES_VIDEO2,
  DMX_TS_PES_TELETEXT2, DMX_TS_PES_SUBTITLE2, DMX_TS_PES_PCR2, DMX_TS_PES_AUDIO3,
  DMX_TS_PES_VIDEO3, DMX_TS_PES_TELETEXT3, DMX_TS_PES_SUBTITLE3, DMX_TS_PES_PCR3,
  DMX_TS_PES_OTHER
}
 
enum  dmx_frontend_source {
  DMX_MEMORY_FE, DMX_FRONTEND_0, DMX_FRONTEND_1, DMX_FRONTEND_2,
  DMX_FRONTEND_3, DMX_STREAM_0, DMX_STREAM_1, DMX_STREAM_2,
  DMX_STREAM_3
}
 

Macro Definition Documentation

#define DMX_CRC_CHECKING   16

Definition at line 226 of file demux.h.

#define DMX_FE_ENTRY (   list)    list_entry(list, struct dmx_frontend, connectivity_list)

Definition at line 240 of file demux.h.

#define DMX_MAX_FILTER_SIZE   18

Definition at line 44 of file demux.h.

#define DMX_MAX_SECFEED_SIZE   (DMX_MAX_SECTION_SIZE + 188)

Definition at line 55 of file demux.h.

#define DMX_MAX_SECTION_SIZE   4096

Definition at line 52 of file demux.h.

#define DMX_MEMORY_BASED_FILTERING   8 /* write() available */

Definition at line 225 of file demux.h.

#define DMX_PES_FILTERING   2

Definition at line 223 of file demux.h.

#define DMX_SECTION_FILTERING   4

Definition at line 224 of file demux.h.

#define DMX_TS_DESCRAMBLING   32

Definition at line 227 of file demux.h.

#define DMX_TS_FILTERING   1

Definition at line 222 of file demux.h.

#define DMX_TS_PES_AUDIO   DMX_TS_PES_AUDIO0

Definition at line 116 of file demux.h.

#define DMX_TS_PES_PCR   DMX_TS_PES_PCR0

Definition at line 120 of file demux.h.

#define DMX_TS_PES_SUBTITLE   DMX_TS_PES_SUBTITLE0

Definition at line 119 of file demux.h.

#define DMX_TS_PES_TELETEXT   DMX_TS_PES_TELETEXT0

Definition at line 118 of file demux.h.

#define DMX_TS_PES_VIDEO   DMX_TS_PES_VIDEO0

Definition at line 117 of file demux.h.

#define TS_DECODER   4 /* send stream to built-in decoder (if present) */

Definition at line 81 of file demux.h.

#define TS_DEMUX
Value:
8 /* in case TS_PACKET is set, send the TS to
the demux device, not to the dvr device */

Definition at line 82 of file demux.h.

#define TS_PACKET   1 /* send TS packets (188 bytes) to callback (default) */

Definition at line 79 of file demux.h.

#define TS_PAYLOAD_ONLY
Value:
2 /* in case TS_PACKET is set, only send the TS
payload (<=184 bytes per packet) to callback */

Definition at line 80 of file demux.h.

Typedef Documentation

typedef int(* dmx_section_cb)(const u8 *buffer1, size_t buffer1_len, const u8 *buffer2, size_t buffer2_len, struct dmx_section_filter *source, enum dmx_success success)

Definition at line 184 of file demux.h.

typedef int(* dmx_ts_cb)(const u8 *buffer1, size_t buffer1_length, const u8 *buffer2, size_t buffer2_length, struct dmx_ts_feed *source, enum dmx_success success)

Definition at line 177 of file demux.h.

Enumeration Type Documentation

Enumerator:
DMX_MEMORY_FE 
DMX_FRONTEND_0 
DMX_FRONTEND_1 
DMX_FRONTEND_2 
DMX_FRONTEND_3 
DMX_STREAM_0 
DMX_STREAM_1 
DMX_STREAM_2 
DMX_STREAM_3 

Definition at line 195 of file demux.h.

Enumerator:
DMX_OK 
DMX_LENGTH_ERROR 
DMX_OVERRUN_ERROR 
DMX_CRC_ERROR 
DMX_FRAME_ERROR 
DMX_FIFO_ERROR 
DMX_MISSED_ERROR 

Definition at line 63 of file demux.h.

enum dmx_ts_pes
Enumerator:
DMX_TS_PES_AUDIO0 
DMX_TS_PES_VIDEO0 
DMX_TS_PES_TELETEXT0 
DMX_TS_PES_SUBTITLE0 
DMX_TS_PES_PCR0 
DMX_TS_PES_AUDIO1 
DMX_TS_PES_VIDEO1 
DMX_TS_PES_TELETEXT1 
DMX_TS_PES_SUBTITLE1 
DMX_TS_PES_PCR1 
DMX_TS_PES_AUDIO2 
DMX_TS_PES_VIDEO2 
DMX_TS_PES_TELETEXT2 
DMX_TS_PES_SUBTITLE2 
DMX_TS_PES_PCR2 
DMX_TS_PES_AUDIO3 
DMX_TS_PES_VIDEO3 
DMX_TS_PES_TELETEXT3 
DMX_TS_PES_SUBTITLE3 
DMX_TS_PES_PCR3 
DMX_TS_PES_OTHER 

Definition at line 87 of file demux.h.