ts.c File Reference

Go to the source code of this file.

Functions

uint16_t get_pid (uint8_t *pid)
int find_pids_pos (uint16_t *vpid, uint16_t *apid, uint16_t *ac3pid, uint8_t *buf, int len, int *vpos, int *apos, int *ac3pos)
int find_pids (uint16_t *vpid, uint16_t *apid, uint16_t *ac3pid, uint8_t *buf, int len)
unsigned int crc32_04c11db7 (const unsigned char *d, int len, unsigned int crc)
static int write_ts_header (int pid, int payload_start, int count, int64_t SCR, uint8_t *obuf, int stuff)
int write_video_ts (uint64_t vpts, uint64_t vdts, uint64_t SCR, uint8_t *buf, int *vlength, uint8_t ptsdts, ringbuffer *vrbuffer)
int write_audio_ts (int n, uint64_t pts, uint8_t *buf, int *alength, uint8_t ptsdts, ringbuffer *arbuffer)
int write_ac3_ts (int n, uint64_t pts, uint8_t *buf, int *alength, uint8_t ptsdts, int nframes, ringbuffer *ac3rbuffer)
void write_ts_patpmt (extdata_t *ext, int extcnt, uint8_t prog_num, uint8_t *buf)

Variables

static unsigned int crc_table [256]


Function Documentation

uint16_t get_pid ( uint8_t *  pid  ) 

Definition at line 42 of file ts.c.

Referenced by find_pids_pos(), and replex_tsp().

int find_pids_pos ( uint16_t *  vpid,
uint16_t *  apid,
uint16_t *  ac3pid,
uint8_t *  buf,
int  len,
int *  vpos,
int *  apos,
int *  ac3pos 
)

Definition at line 52 of file ts.c.

Referenced by find_all_pids_file(), and find_pids().

int find_pids ( uint16_t *  vpid,
uint16_t *  apid,
uint16_t *  ac3pid,
uint8_t *  buf,
int  len 
)

Definition at line 122 of file ts.c.

Referenced by find_pids_file(), and find_pids_stdin().

unsigned int crc32_04c11db7 ( const unsigned char *  d,
int  len,
unsigned int  crc 
)

Definition at line 174 of file ts.c.

Referenced by write_ts_patpmt().

static int write_ts_header ( int  pid,
int  payload_start,
int  count,
int64_t  SCR,
uint8_t *  obuf,
int  stuff 
) [static]

Definition at line 185 of file ts.c.

Referenced by write_ac3_ts(), write_audio_ts(), write_ts_patpmt(), and write_video_ts().

int write_video_ts ( uint64_t  vpts,
uint64_t  vdts,
uint64_t  SCR,
uint8_t *  buf,
int *  vlength,
uint8_t  ptsdts,
ringbuffer vrbuffer 
)

Definition at line 233 of file ts.c.

Referenced by writeout_video().

int write_audio_ts ( int  n,
uint64_t  pts,
uint8_t *  buf,
int *  alength,
uint8_t  ptsdts,
ringbuffer arbuffer 
)

Definition at line 285 of file ts.c.

Referenced by writeout_ext().

int write_ac3_ts ( int  n,
uint64_t  pts,
uint8_t *  buf,
int *  alength,
uint8_t  ptsdts,
int  nframes,
ringbuffer ac3rbuffer 
)

Definition at line 330 of file ts.c.

Referenced by writeout_ext().

void write_ts_patpmt ( extdata_t ext,
int  extcnt,
uint8_t  prog_num,
uint8_t *  buf 
)

Definition at line 382 of file ts.c.

Referenced by setup_multiplex(), and writeout_video().


Variable Documentation

unsigned int crc_table[256] [static]

Definition at line 129 of file ts.c.


Generated on Sat Dec 18 05:15:56 2010 for MythTV by  doxygen 1.5.5