|
MythTV master
|
#include <algorithm>#include <array>#include <cstdint>#include <cstdio>#include <cstdlib>#include <cstring>#include <winsock2.h>#include "ts.h"#include "element.h"#include "pes.h"#include "libmythbase/mythlogging.h"Go to the source code of this file.
Functions | |
| uint16_t | get_pid (const 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) |
| static unsigned int | crc32_04c11db7 (const unsigned char *d, int len, unsigned int crc) |
| static int | write_ts_header (uint16_t 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 const std::array< const uint32_t, 256 > | crc_table |
|
static |
Definition at line 180 of file ts.cpp.
Referenced by write_ts_patpmt().
Definition at line 128 of file ts.cpp.
Referenced by find_pids_file(), and find_pids_stdin().
| 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 58 of file ts.cpp.
Referenced by find_all_pids_file(), and find_pids().
| uint16_t get_pid | ( | const uint8_t * | pid | ) |
Definition at line 48 of file ts.cpp.
Referenced by find_pids_pos(), and replex_tsp().
| int write_ac3_ts | ( | int | n, |
| uint64_t | pts, | ||
| uint8_t * | buf, | ||
| int * | alength, | ||
| uint8_t | ptsdts, | ||
| int | nframes, | ||
| ringbuffer * | ac3rbuffer | ||
| ) |
Definition at line 331 of file ts.cpp.
Referenced by writeout_ext().
| int write_audio_ts | ( | int | n, |
| uint64_t | pts, | ||
| uint8_t * | buf, | ||
| int * | alength, | ||
| uint8_t | ptsdts, | ||
| ringbuffer * | arbuffer | ||
| ) |
Definition at line 288 of file ts.cpp.
Referenced by writeout_ext().
|
static |
Definition at line 190 of file ts.cpp.
Referenced by write_ac3_ts(), write_audio_ts(), write_ts_patpmt(), and write_video_ts().
| void write_ts_patpmt | ( | extdata_t * | ext, |
| int | extcnt, | ||
| uint8_t | prog_num, | ||
| uint8_t * | buf | ||
| ) |
Definition at line 381 of file ts.cpp.
Referenced by setup_multiplex(), and writeout_video().
| 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.cpp.
Referenced by writeout_video().
|
static |
Definition at line 135 of file ts.cpp.
Referenced by crc32_04c11db7().