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 |
) |
|
| 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 | |
|
) |
| | [static] |
| 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 | |
|
) |
| | |
Variable Documentation
Definition at line 129 of file ts.c.