upipe-ts/upipe_ts_sync.h header reference
Upipe module syncing on a transport stream More
Header inclusion
Members
Type
Functions
- bool upipe_ts_sync_get_size(struct upipe *upipe, int *size_p)
- bool upipe_ts_sync_get_sync(struct upipe *upipe, int *sync_p)
- struct upipe_mgr * upipe_ts_sync_mgr_alloc(void )
- bool upipe_ts_sync_set_size(struct upipe *upipe, int size)
- bool upipe_ts_sync_set_sync(struct upipe *upipe, int sync)
Description
Members detail
This macro is declared in upipe-ts/upipe_ts_sync.h source file, line 33.
This macro is declared in upipe-ts/upipe_ts_sync.h source file, line 26.
This enum is declared in upipe-ts/upipe_ts_sync.h source file, line 37.
This enum extends upipe_command with specific commands for ts sync.
Identifier | Value | Description |
---|---|---|
UPIPE_TS_SYNC_SENTINEL | 0 | |
UPIPE_TS_SYNC_GET_SIZE | 1 | returns the configured size of TS packets (int *) |
UPIPE_TS_SYNC_SET_SIZE | 2 | sets the configured size of TS packets (int) |
UPIPE_TS_SYNC_GET_SYNC | 3 | returns the configured number of packets to synchronize with (int *) |
UPIPE_TS_SYNC_SET_SYNC | 4 | sets the configured number of packets to synchronize with (int) |
bool upipe_ts_sync_get_size(struct upipe *upipe, int *size_p)
This function is declared in upipe-ts/upipe_ts_sync.h source file, line 63.
This function returns the configured size of TS packets.
Parameters list:
- upipe: description structure of the pipe
- size_p: filled in with the configured size, in octets
The return value is false in case of error
bool upipe_ts_sync_get_sync(struct upipe *upipe, int *sync_p)
This function is declared in upipe-ts/upipe_ts_sync.h source file, line 93.
This function returns the configured number of packets to synchronize with.
Parameters list:
- upipe: description structure of the pipe
- sync_p: filled in with number of packets
The return value is false in case of error
struct upipe_mgr * upipe_ts_sync_mgr_alloc(void )
This function is declared in upipe-ts/upipe_ts_sync.h source file, line 54.
This function returns the management structure for all ts_sync pipes.
The return value is pointer to manager
bool upipe_ts_sync_set_size(struct upipe *upipe, int size)
This function is declared in upipe-ts/upipe_ts_sync.h source file, line 81.
This function sets the configured size of TS packets. Common values are:
size (in octets) | description |
---|---|
188 | standard size of TS packets according to ISO/IEC 13818-1 |
196 | TS packet followed by an 8-octet timestamp or checksum |
204 | TS packet followed by a 16-octet checksum |
Parameters list:
- upipe: description structure of the pipe
- size: configured size, in octets
The return value is false in case of error
bool upipe_ts_sync_set_sync(struct upipe *upipe, int sync)
This function is declared in upipe-ts/upipe_ts_sync.h source file, line 107.
This function sets the configured number of packets to synchronize with. The higher the value, the slower the synchronization, but the fewer false positives.
Parameters list:
- upipe: description structure of the pipe
- sync: number of packets
The return value is false in case of error