upipe-ts/upipe_ts_sync.h header reference

Upipe module syncing on a transport stream More

Header inclusion  

Members  

Type  

Functions  

Description  

Upipe module syncing on a transport stream

Members detail  

#define UPIPE_TS_SYNC_SIGNATURE  

This macro is declared in upipe-ts/upipe_ts_sync.h source file, line 33.

#define _UPIPE_TS_UPIPE_TS_SYNC_H_  

This macro is declared in upipe-ts/upipe_ts_sync.h source file, line 26.

enum upipe_ts_sync_command  

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.

IdentifierValueDescription
UPIPE_TS_SYNC_SENTINEL0
UPIPE_TS_SYNC_GET_SIZE1returns the configured size of TS packets (int *)
UPIPE_TS_SYNC_SET_SIZE2sets the configured size of TS packets (int)
UPIPE_TS_SYNC_GET_SYNC3returns the configured number of packets to synchronize with (int *)
UPIPE_TS_SYNC_SET_SYNC4sets 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

Valid XHTML 1.0 StrictGenerated by cmassiot on Thu Nov 6 12:15:30 2014 using MkDoc