Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
av7110_av.c File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include "av7110.h"
#include "av7110_hw.h"
#include "av7110_av.h"
#include "av7110_ipack.h"

Go to the source code of this file.

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 PTS_DTS_FLAGS   0xC0
 
#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 FREE_COND_TS   (dvb_ringbuffer_free(rb) >= 4096)
 
#define FREE_COND
 
#define MIN_IFRAME   400000
 

Functions

int av7110_record_cb (struct dvb_filter_pes2ts *p2t, u8 *buf, size_t len)
 
int av7110_av_start_record (struct av7110 *av7110, int av, struct dvb_demux_feed *dvbdmxfeed)
 
int av7110_av_start_play (struct av7110 *av7110, int av)
 
int av7110_av_stop (struct av7110 *av7110, int av)
 
int av7110_pes_play (void *dest, struct dvb_ringbuffer *buf, int dlen)
 
int av7110_set_volume (struct av7110 *av7110, int volleft, int volright)
 
int av7110_set_vidmode (struct av7110 *av7110, enum av7110_video_mode mode)
 
void av7110_p2t_init (struct av7110_p2t *p, struct dvb_demux_feed *feed)
 
void av7110_p2t_write (u8 const *buf, long int length, u16 pid, struct av7110_p2t *p)
 
int av7110_write_to_decoder (struct dvb_demux_feed *feed, const u8 *buf, size_t len)
 
void dvb_video_add_event (struct av7110 *av7110, struct video_event *event)
 
int av7110_av_register (struct av7110 *av7110)
 
void av7110_av_unregister (struct av7110 *av7110)
 
int av7110_av_init (struct av7110 *av7110)
 
void av7110_av_exit (struct av7110 *av7110)
 

Macro Definition Documentation

#define ADAP_EXT_FLAG   0x01

Definition at line 82 of file av7110_av.c.

#define ADAPT_FIELD   0x20

Definition at line 70 of file av7110_av.c.

#define AUDIO_STREAM_E   0xDF

Definition at line 48 of file av7110_av.c.

#define AUDIO_STREAM_S   0xC0

Definition at line 47 of file av7110_av.c.

#define COUNT_MASK   0x0F

Definition at line 72 of file av7110_av.c.

#define DISCON_IND   0x80

Definition at line 75 of file av7110_av.c.

#define DSM_CC_STREAM   0xF2

Definition at line 53 of file av7110_av.c.

#define ECM_STREAM   0xF0

Definition at line 51 of file av7110_av.c.

#define EMM_STREAM   0xF1

Definition at line 52 of file av7110_av.c.

#define ES_PRI_IND   0x20

Definition at line 77 of file av7110_av.c.

#define FREE_COND
Value:
(dvb_ringbuffer_free(&av7110->avout) >= 20 * 1024 && \
dvb_ringbuffer_free(&av7110->aout) >= 20 * 1024)

Definition at line 481 of file av7110_av.c.

#define FREE_COND_TS   (dvb_ringbuffer_free(rb) >= 4096)

Definition at line 443 of file av7110_av.c.

#define ISO13522_STREAM   0xF3

Definition at line 54 of file av7110_av.c.

#define LTW_FLAG   0x80

Definition at line 85 of file av7110_av.c.

#define MIN_IFRAME   400000

Definition at line 1034 of file av7110_av.c.

#define OPCR_FLAG   0x08

Definition at line 79 of file av7110_av.c.

#define PADDING_STREAM   0xBE

Definition at line 45 of file av7110_av.c.

#define PAY_START   0x40

Definition at line 64 of file av7110_av.c.

#define PAYLOAD   0x10

Definition at line 71 of file av7110_av.c.

#define PCR_FLAG   0x10

Definition at line 78 of file av7110_av.c.

#define PID_MASK_HI   0x1F

Definition at line 66 of file av7110_av.c.

#define PIECE_RATE   0x40

Definition at line 86 of file av7110_av.c.

#define PRIVATE_STREAM1   0xBD

Definition at line 44 of file av7110_av.c.

#define PRIVATE_STREAM2   0xBF

Definition at line 46 of file av7110_av.c.

#define PROG_STREAM_DIR   0xFF

Definition at line 55 of file av7110_av.c.

#define PROG_STREAM_MAP   0xBC

Definition at line 43 of file av7110_av.c.

#define PTS_DTS   0xC0

Definition at line 61 of file av7110_av.c.

#define PTS_DTS_FLAGS   0xC0

Definition at line 57 of file av7110_av.c.

#define PTS_ONLY   0x80

Definition at line 60 of file av7110_av.c.

#define RAND_ACC_IND   0x40

Definition at line 76 of file av7110_av.c.

#define SEAM_SPLICE   0x20

Definition at line 87 of file av7110_av.c.

#define SPLICE_FLAG   0x04

Definition at line 80 of file av7110_av.c.

#define TRANS_ERROR   0x80

Definition at line 63 of file av7110_av.c.

#define TRANS_PRIO   0x20

Definition at line 65 of file av7110_av.c.

#define TRANS_PRIV   0x02

Definition at line 81 of file av7110_av.c.

#define TRANS_SCRMBL1   0x80

Definition at line 68 of file av7110_av.c.

#define TRANS_SCRMBL2   0x40

Definition at line 69 of file av7110_av.c.

#define TS_SIZE   188

Definition at line 62 of file av7110_av.c.

#define VIDEO_STREAM_E   0xEF

Definition at line 50 of file av7110_av.c.

#define VIDEO_STREAM_S   0xE0

Definition at line 49 of file av7110_av.c.

Function Documentation

void av7110_av_exit ( struct av7110 av7110)

Definition at line 1622 of file av7110_av.c.

int av7110_av_init ( struct av7110 av7110)

Definition at line 1596 of file av7110_av.c.

int av7110_av_register ( struct av7110 av7110)

Definition at line 1558 of file av7110_av.c.

int av7110_av_start_play ( struct av7110 av7110,
int  av 
)

Definition at line 165 of file av7110_av.c.

int av7110_av_start_record ( struct av7110 av7110,
int  av,
struct dvb_demux_feed dvbdmxfeed 
)

Definition at line 119 of file av7110_av.c.

int av7110_av_stop ( struct av7110 av7110,
int  av 
)

Definition at line 199 of file av7110_av.c.

void av7110_av_unregister ( struct av7110 av7110)

Definition at line 1590 of file av7110_av.c.

void av7110_p2t_init ( struct av7110_p2t p,
struct dvb_demux_feed feed 
)

Definition at line 579 of file av7110_av.c.

void av7110_p2t_write ( u8 const buf,
long int  length,
u16  pid,
struct av7110_p2t p 
)

Definition at line 646 of file av7110_av.c.

int av7110_pes_play ( void dest,
struct dvb_ringbuffer buf,
int  dlen 
)

Definition at line 237 of file av7110_av.c.

int av7110_record_cb ( struct dvb_filter_pes2ts p2t,
u8 buf,
size_t  len 
)

Definition at line 95 of file av7110_av.c.

int av7110_set_vidmode ( struct av7110 av7110,
enum av7110_video_mode  mode 
)

Definition at line 334 of file av7110_av.c.

int av7110_set_volume ( struct av7110 av7110,
int  volleft,
int  volright 
)

Definition at line 283 of file av7110_av.c.

int av7110_write_to_decoder ( struct dvb_demux_feed feed,
const u8 buf,
size_t  len 
)

Definition at line 851 of file av7110_av.c.

void dvb_video_add_event ( struct av7110 av7110,
struct video_event event 
)

Definition at line 882 of file av7110_av.c.