Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
dvb_filter.h File Reference
#include <linux/slab.h>
#include "demux.h"

Go to the source code of this file.

Data Structures

struct  dvb_filter_pes2ts
 
struct  ipack
 
struct  dvb_video_info
 
struct  mpg_picture
 
struct  dvb_audio_info
 

Macros

#define PROG_STREAM_MAP   0xBC
 
#define PRIVATE_STREAM1   0xBD
 
#define PADDING_STREAM   0xBE
 
#define PRIVATE_STREAM2   0xBF
 
#define AUDIO_STREAM_S   0xC0
 
#define AUDIO_STREAM_E   0xDF
 
#define VIDEO_STREAM_S   0xE0
 
#define VIDEO_STREAM_E   0xEF
 
#define ECM_STREAM   0xF0
 
#define EMM_STREAM   0xF1
 
#define DSM_CC_STREAM   0xF2
 
#define ISO13522_STREAM   0xF3
 
#define PROG_STREAM_DIR   0xFF
 
#define DVB_PICTURE_START   0x00
 
#define DVB_USER_START   0xb2
 
#define DVB_SEQUENCE_HEADER   0xb3
 
#define DVB_SEQUENCE_ERROR   0xb4
 
#define DVB_EXTENSION_START   0xb5
 
#define DVB_SEQUENCE_END   0xb7
 
#define DVB_GOP_START   0xb8
 
#define DVB_EXCEPT_SLICE   0xb0
 
#define SEQUENCE_EXTENSION   0x01
 
#define SEQUENCE_DISPLAY_EXTENSION   0x02
 
#define PICTURE_CODING_EXTENSION   0x08
 
#define QUANT_MATRIX_EXTENSION   0x03
 
#define PICTURE_DISPLAY_EXTENSION   0x07
 
#define I_FRAME   0x01
 
#define B_FRAME   0x02
 
#define P_FRAME   0x03
 
#define INIT_HORIZONTAL_SIZE   720
 
#define INIT_VERTICAL_SIZE   576
 
#define INIT_ASPECT_RATIO   0x02
 
#define INIT_FRAME_RATE   0x03
 
#define INIT_DISP_HORIZONTAL_SIZE   540
 
#define INIT_DISP_VERTICAL_SIZE   576
 
#define PTS_DTS_FLAGS   0xC0
 
#define ESCR_FLAG   0x20
 
#define ES_RATE_FLAG   0x10
 
#define DSM_TRICK_FLAG   0x08
 
#define ADD_CPY_FLAG   0x04
 
#define PES_CRC_FLAG   0x02
 
#define PES_EXT_FLAG   0x01
 
#define PTS_ONLY   0x80
 
#define PTS_DTS   0xC0
 
#define TS_SIZE   188
 
#define TRANS_ERROR   0x80
 
#define PAY_START   0x40
 
#define TRANS_PRIO   0x20
 
#define PID_MASK_HI   0x1F
 
#define TRANS_SCRMBL1   0x80
 
#define TRANS_SCRMBL2   0x40
 
#define ADAPT_FIELD   0x20
 
#define PAYLOAD   0x10
 
#define COUNT_MASK   0x0F
 
#define DISCON_IND   0x80
 
#define RAND_ACC_IND   0x40
 
#define ES_PRI_IND   0x20
 
#define PCR_FLAG   0x10
 
#define OPCR_FLAG   0x08
 
#define SPLICE_FLAG   0x04
 
#define TRANS_PRIV   0x02
 
#define ADAP_EXT_FLAG   0x01
 
#define LTW_FLAG   0x80
 
#define PIECE_RATE   0x40
 
#define SEAM_SPLICE   0x20
 
#define MAX_PLENGTH   0xFFFF
 
#define MMAX_PLENGTH   (256*MAX_PLENGTH)
 
#define IPACKS   2048
 
#define OFF_SIZE   4
 
#define FIRST_FIELD   0
 
#define SECOND_FIELD   1
 
#define VIDEO_FRAME_PICTURE   0x03
 

Typedefs

typedef intdvb_filter_pes2ts_cb_t )(void *, unsigned char *)
 

Functions

void dvb_filter_pes2ts_init (struct dvb_filter_pes2ts *p2ts, unsigned short pid, dvb_filter_pes2ts_cb_t *cb, void *priv)
 
int dvb_filter_pes2ts (struct dvb_filter_pes2ts *p2ts, unsigned char *pes, int len, int payload_start)
 
int dvb_filter_get_ac3info (u8 *mbuf, int count, struct dvb_audio_info *ai, int pr)
 

Macro Definition Documentation

#define ADAP_EXT_FLAG   0x01

Definition at line 119 of file dvb_filter.h.

#define ADAPT_FIELD   0x20

Definition at line 107 of file dvb_filter.h.

#define ADD_CPY_FLAG   0x04

Definition at line 91 of file dvb_filter.h.

#define AUDIO_STREAM_E   0xDF

Definition at line 49 of file dvb_filter.h.

#define AUDIO_STREAM_S   0xC0

Definition at line 48 of file dvb_filter.h.

#define B_FRAME   0x02

Definition at line 74 of file dvb_filter.h.

#define COUNT_MASK   0x0F

Definition at line 109 of file dvb_filter.h.

#define DISCON_IND   0x80

Definition at line 112 of file dvb_filter.h.

#define DSM_CC_STREAM   0xF2

Definition at line 54 of file dvb_filter.h.

#define DSM_TRICK_FLAG   0x08

Definition at line 90 of file dvb_filter.h.

#define DVB_EXCEPT_SLICE   0xb0

Definition at line 65 of file dvb_filter.h.

#define DVB_EXTENSION_START   0xb5

Definition at line 62 of file dvb_filter.h.

#define DVB_GOP_START   0xb8

Definition at line 64 of file dvb_filter.h.

#define DVB_PICTURE_START   0x00

Definition at line 58 of file dvb_filter.h.

#define DVB_SEQUENCE_END   0xb7

Definition at line 63 of file dvb_filter.h.

#define DVB_SEQUENCE_ERROR   0xb4

Definition at line 61 of file dvb_filter.h.

#define DVB_SEQUENCE_HEADER   0xb3

Definition at line 60 of file dvb_filter.h.

#define DVB_USER_START   0xb2

Definition at line 59 of file dvb_filter.h.

#define ECM_STREAM   0xF0

Definition at line 52 of file dvb_filter.h.

#define EMM_STREAM   0xF1

Definition at line 53 of file dvb_filter.h.

#define ES_PRI_IND   0x20

Definition at line 114 of file dvb_filter.h.

#define ES_RATE_FLAG   0x10

Definition at line 89 of file dvb_filter.h.

#define ESCR_FLAG   0x20

Definition at line 88 of file dvb_filter.h.

#define FIRST_FIELD   0

Definition at line 171 of file dvb_filter.h.

#define I_FRAME   0x01

Definition at line 73 of file dvb_filter.h.

#define INIT_ASPECT_RATIO   0x02

Definition at line 80 of file dvb_filter.h.

#define INIT_DISP_HORIZONTAL_SIZE   540

Definition at line 82 of file dvb_filter.h.

#define INIT_DISP_VERTICAL_SIZE   576

Definition at line 83 of file dvb_filter.h.

#define INIT_FRAME_RATE   0x03

Definition at line 81 of file dvb_filter.h.

#define INIT_HORIZONTAL_SIZE   720

Definition at line 78 of file dvb_filter.h.

#define INIT_VERTICAL_SIZE   576

Definition at line 79 of file dvb_filter.h.

#define IPACKS   2048

Definition at line 131 of file dvb_filter.h.

#define ISO13522_STREAM   0xF3

Definition at line 55 of file dvb_filter.h.

#define LTW_FLAG   0x80

Definition at line 122 of file dvb_filter.h.

#define MAX_PLENGTH   0xFFFF

Definition at line 127 of file dvb_filter.h.

#define MMAX_PLENGTH   (256*MAX_PLENGTH)

Definition at line 128 of file dvb_filter.h.

#define OFF_SIZE   4

Definition at line 170 of file dvb_filter.h.

#define OPCR_FLAG   0x08

Definition at line 116 of file dvb_filter.h.

#define P_FRAME   0x03

Definition at line 75 of file dvb_filter.h.

#define PADDING_STREAM   0xBE

Definition at line 46 of file dvb_filter.h.

#define PAY_START   0x40

Definition at line 101 of file dvb_filter.h.

#define PAYLOAD   0x10

Definition at line 108 of file dvb_filter.h.

#define PCR_FLAG   0x10

Definition at line 115 of file dvb_filter.h.

#define PES_CRC_FLAG   0x02

Definition at line 92 of file dvb_filter.h.

#define PES_EXT_FLAG   0x01

Definition at line 93 of file dvb_filter.h.

#define PICTURE_CODING_EXTENSION   0x08

Definition at line 69 of file dvb_filter.h.

#define PICTURE_DISPLAY_EXTENSION   0x07

Definition at line 71 of file dvb_filter.h.

#define PID_MASK_HI   0x1F

Definition at line 103 of file dvb_filter.h.

#define PIECE_RATE   0x40

Definition at line 123 of file dvb_filter.h.

#define PRIVATE_STREAM1   0xBD

Definition at line 45 of file dvb_filter.h.

#define PRIVATE_STREAM2   0xBF

Definition at line 47 of file dvb_filter.h.

#define PROG_STREAM_DIR   0xFF

Definition at line 56 of file dvb_filter.h.

#define PROG_STREAM_MAP   0xBC

Definition at line 44 of file dvb_filter.h.

#define PTS_DTS   0xC0

Definition at line 97 of file dvb_filter.h.

#define PTS_DTS_FLAGS   0xC0

Definition at line 87 of file dvb_filter.h.

#define PTS_ONLY   0x80

Definition at line 96 of file dvb_filter.h.

#define QUANT_MATRIX_EXTENSION   0x03

Definition at line 70 of file dvb_filter.h.

#define RAND_ACC_IND   0x40

Definition at line 113 of file dvb_filter.h.

#define SEAM_SPLICE   0x20

Definition at line 124 of file dvb_filter.h.

#define SECOND_FIELD   1

Definition at line 172 of file dvb_filter.h.

#define SEQUENCE_DISPLAY_EXTENSION   0x02

Definition at line 68 of file dvb_filter.h.

#define SEQUENCE_EXTENSION   0x01

Definition at line 67 of file dvb_filter.h.

#define SPLICE_FLAG   0x04

Definition at line 117 of file dvb_filter.h.

#define TRANS_ERROR   0x80

Definition at line 100 of file dvb_filter.h.

#define TRANS_PRIO   0x20

Definition at line 102 of file dvb_filter.h.

#define TRANS_PRIV   0x02

Definition at line 118 of file dvb_filter.h.

#define TRANS_SCRMBL1   0x80

Definition at line 105 of file dvb_filter.h.

#define TRANS_SCRMBL2   0x40

Definition at line 106 of file dvb_filter.h.

#define TS_SIZE   188

Definition at line 99 of file dvb_filter.h.

#define VIDEO_FRAME_PICTURE   0x03

Definition at line 173 of file dvb_filter.h.

#define VIDEO_STREAM_E   0xEF

Definition at line 51 of file dvb_filter.h.

#define VIDEO_STREAM_S   0xE0

Definition at line 50 of file dvb_filter.h.

Typedef Documentation

typedef int( dvb_filter_pes2ts_cb_t)(void *, unsigned char *)

Definition at line 28 of file dvb_filter.h.

Function Documentation

int dvb_filter_get_ac3info ( u8 mbuf,
int  count,
struct dvb_audio_info ai,
int  pr 
)

Definition at line 345 of file dvb_filter.c.

int dvb_filter_pes2ts ( struct dvb_filter_pes2ts p2ts,
unsigned char pes,
int  len,
int  payload_start 
)

Definition at line 570 of file dvb_filter.c.

void dvb_filter_pes2ts_init ( struct dvb_filter_pes2ts p2ts,
unsigned short  pid,
dvb_filter_pes2ts_cb_t cb,
void priv 
)

Definition at line 556 of file dvb_filter.c.