upipe-ts/upipe_ts_mux.h header reference
Upipe higher-level module muxing elementary streams in a TS More
Header inclusion
Members
Types
- enum upipe_ts_mux_command
- enum upipe_ts_mux_mgr_command
- enum upipe_ts_mux_mode
Functions
- int upipe_ts_mux_get_conformance(struct upipe *upipe, enum upipe_ts_conformance *conformance_p)
- int upipe_ts_mux_get_mode(struct upipe *upipe, enum upipe_ts_mux_mode *mode_p)
- int upipe_ts_mux_get_mtu(struct upipe *upipe, unsigned int *mtu_p)
- int upipe_ts_mux_get_octetrate(struct upipe *upipe, uint64_t *octetrate_p)
- int upipe_ts_mux_get_padding_octetrate(struct upipe *upipe, uint64_t *octetrate_p)
- int upipe_ts_mux_get_pat_interval(struct upipe *upipe, uint64_t *interval_p)
- int upipe_ts_mux_get_pcr_interval(struct upipe *upipe, uint64_t *interval_p)
- int upipe_ts_mux_get_pmt_interval(struct upipe *upipe, uint64_t *interval_p)
- int upipe_ts_mux_get_version(struct upipe *upipe, unsigned int *version_p)
- struct upipe_mgr * upipe_ts_mux_mgr_alloc(void )
- int upipe_ts_mux_mgr_get_ts_agg_mgr(struct upipe_mgr *mgr, struct upipe_mgr *p)
- int upipe_ts_mux_mgr_get_ts_encaps_mgr(struct upipe_mgr *mgr, struct upipe_mgr *p)
- int upipe_ts_mux_mgr_get_ts_join_mgr(struct upipe_mgr *mgr, struct upipe_mgr *p)
- int upipe_ts_mux_mgr_get_ts_pese_mgr(struct upipe_mgr *mgr, struct upipe_mgr *p)
- int upipe_ts_mux_mgr_get_ts_psig_mgr(struct upipe_mgr *mgr, struct upipe_mgr *p)
- int upipe_ts_mux_mgr_get_ts_psii_mgr(struct upipe_mgr *mgr, struct upipe_mgr *p)
- int upipe_ts_mux_mgr_set_ts_agg_mgr(struct upipe_mgr *mgr, struct upipe_mgr *m)
- int upipe_ts_mux_mgr_set_ts_encaps_mgr(struct upipe_mgr *mgr, struct upipe_mgr *m)
- int upipe_ts_mux_mgr_set_ts_join_mgr(struct upipe_mgr *mgr, struct upipe_mgr *m)
- int upipe_ts_mux_mgr_set_ts_pese_mgr(struct upipe_mgr *mgr, struct upipe_mgr *m)
- int upipe_ts_mux_mgr_set_ts_psig_mgr(struct upipe_mgr *mgr, struct upipe_mgr *m)
- int upipe_ts_mux_mgr_set_ts_psii_mgr(struct upipe_mgr *mgr, struct upipe_mgr *m)
- int upipe_ts_mux_set_conformance(struct upipe *upipe, enum upipe_ts_conformance conformance)
- int upipe_ts_mux_set_mode(struct upipe *upipe, enum upipe_ts_mux_mode mode)
- int upipe_ts_mux_set_mtu(struct upipe *upipe, unsigned int mtu)
- int upipe_ts_mux_set_octetrate(struct upipe *upipe, uint64_t octetrate)
- int upipe_ts_mux_set_padding_octetrate(struct upipe *upipe, uint64_t octetrate)
- int upipe_ts_mux_set_pat_interval(struct upipe *upipe, uint64_t interval)
- int upipe_ts_mux_set_pcr_interval(struct upipe *upipe, uint64_t interval)
- int upipe_ts_mux_set_pmt_interval(struct upipe *upipe, uint64_t interval)
- int upipe_ts_mux_set_version(struct upipe *upipe, unsigned int version)
Description
Members detail
This macro is declared in upipe-ts/upipe_ts_mux.h source file, line 36.
This macro is declared in upipe-ts/upipe_ts_mux.h source file, line 343.
This macro is declared in upipe-ts/upipe_ts_mux.h source file, line 361.
This macro is declared in upipe-ts/upipe_ts_mux.h source file, line 35.
This macro is declared in upipe-ts/upipe_ts_mux.h source file, line 34.
This macro is declared in upipe-ts/upipe_ts_mux.h source file, line 26.
This enum is declared in upipe-ts/upipe_ts_mux.h source file, line 50.
This enum extends upipe_command with specific commands for ts mux.
Identifier | Value | Description |
---|---|---|
UPIPE_TS_MUX_SENTINEL | 0 | |
UPIPE_TS_MUX_GET_CONFORMANCE | 1 | returns the current conformance (int *) |
UPIPE_TS_MUX_SET_CONFORMANCE | 2 | sets the conformance (int) |
UPIPE_TS_MUX_GET_PAT_INTERVAL | 3 | returns the current PAT interval (uint64_t *) |
UPIPE_TS_MUX_SET_PAT_INTERVAL | 4 | sets the PAT interval (uint64_t) |
UPIPE_TS_MUX_GET_PMT_INTERVAL | 5 | returns the current PMT interval (uint64_t *) |
UPIPE_TS_MUX_SET_PMT_INTERVAL | 6 | sets the PMT interval (uint64_t) |
UPIPE_TS_MUX_GET_PCR_INTERVAL | 7 | returns the current PCR interval (uint64_t *) |
UPIPE_TS_MUX_SET_PCR_INTERVAL | 8 | sets the PCR interval (uint64_t) |
UPIPE_TS_MUX_GET_OCTETRATE | 9 | returns the current mux octetrate (uint64_t *) |
UPIPE_TS_MUX_SET_OCTETRATE | 10 | sets the mux octetrate (uint64_t) |
UPIPE_TS_MUX_GET_PADDING_OCTETRATE | 11 | returns the current padding octetrate (uint64_t *) |
UPIPE_TS_MUX_SET_PADDING_OCTETRATE | 12 | sets the padding octetrate (uint64_t) |
UPIPE_TS_MUX_GET_MODE | 13 | returns the current mode (int *) |
UPIPE_TS_MUX_SET_MODE | 14 | sets the mode (int) |
UPIPE_TS_MUX_GET_MTU | 15 | returns the configured MTU (unsigned int *) |
UPIPE_TS_MUX_SET_MTU | 16 | sets the MTU (unsigned int) |
UPIPE_TS_MUX_GET_VERSION | 17 | returns the current version number of the table (unsigned int *) |
UPIPE_TS_MUX_SET_VERSION | 18 | sets the version number of the table (unsigned int) |
int upipe_ts_mux_get_conformance(struct upipe *upipe, enum upipe_ts_conformance *conformance_p)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 101.
This function returns the current conformance mode. It cannot return UPIPE_TS_CONFORMANCE_AUTO.
Parameters list:
- upipe: description structure of the pipe
- conformance_p: filled in with the conformance
The return value is an error code
int upipe_ts_mux_get_mode(struct upipe *upipe, enum upipe_ts_mux_mode *mode_p)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 263.
This function returns the current mode. It may also be called on upipe_ts_aggregate.
Parameters list:
- upipe: description structure of the pipe
- mode_p: filled in with the mode
The return value is an error code
int upipe_ts_mux_get_mtu(struct upipe *upipe, unsigned int *mtu_p)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 289.
This function returns the configured mtu of TS packets. It may also be called on upipe_ts_aggregate.
Parameters list:
- upipe: description structure of the pipe
- mtu_p: filled in with the configured mtu, in octets
The return value is an error code
int upipe_ts_mux_get_octetrate(struct upipe *upipe, uint64_t *octetrate_p)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 209.
This function returns the current mux octetrate. It may also be called on upipe_ts_aggregate.
Parameters list:
- upipe: description structure of the pipe
- octetrate_p: filled in with the octetrate
The return value is an error code
int upipe_ts_mux_get_padding_octetrate(struct upipe *upipe, uint64_t *octetrate_p)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 236.
This function returns the current padding octetrate.
Parameters list:
- upipe: description structure of the pipe
- octetrate_p: filled in with the octetrate
The return value is an error code
int upipe_ts_mux_get_pat_interval(struct upipe *upipe, uint64_t *interval_p)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 128.
This function returns the current PAT interval.
Parameters list:
- upipe: description structure of the pipe
- interval_p: filled in with the interval
The return value is an error code
int upipe_ts_mux_get_pcr_interval(struct upipe *upipe, uint64_t *interval_p)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 182.
This function returns the current PCR interval.
Parameters list:
- upipe: description structure of the pipe
- interval_p: filled in with the interval
The return value is an error code
int upipe_ts_mux_get_pmt_interval(struct upipe *upipe, uint64_t *interval_p)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 155.
This function returns the current PMT interval.
Parameters list:
- upipe: description structure of the pipe
- interval_p: filled in with the interval
The return value is an error code
int upipe_ts_mux_get_version(struct upipe *upipe, unsigned int *version_p)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 316.
This function returns the current version of the PSI table. It may also be called on upipe_ts_psi_generator.
Parameters list:
- upipe: description structure of the pipe
- version_p: filled in with the version
The return value is an error code
struct upipe_mgr * upipe_ts_mux_mgr_alloc(void )
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 339.
This function returns the management structure for all ts_mux pipes.
The return value is pointer to manager
This enum is declared in upipe-ts/upipe_ts_mux.h source file, line 342.
This enum is a list of specific commands for ts mux managers.
Identifier | Value | Description |
---|---|---|
UPIPE_TS_MUX_MGR_GET_TS_AGG_MGR | 0 | returns the current manager for ts_agg subpipes (struct upipe_mgr **) |
UPIPE_TS_MUX_MGR_SET_TS_AGG_MGR | 1 | sets the manager for ts_agg subpipes (struct upipe_mgr *) |
UPIPE_TS_MUX_MGR_GET_TS_JOIN_MGR | 2 | returns the current manager for ts_join subpipes (struct upipe_mgr **) |
UPIPE_TS_MUX_MGR_SET_TS_JOIN_MGR | 3 | sets the manager for ts_join subpipes (struct upipe_mgr *) |
UPIPE_TS_MUX_MGR_GET_TS_ENCAPS_MGR | 4 | returns the current manager for ts_encaps subpipes (struct upipe_mgr **) |
UPIPE_TS_MUX_MGR_SET_TS_ENCAPS_MGR | 5 | sets the manager for ts_encaps subpipes (struct upipe_mgr *) |
UPIPE_TS_MUX_MGR_GET_TS_PESE_MGR | 6 | returns the current manager for ts_pese subpipes (struct upipe_mgr **) |
UPIPE_TS_MUX_MGR_SET_TS_PESE_MGR | 7 | sets the manager for ts_pese subpipes (struct upipe_mgr *) |
UPIPE_TS_MUX_MGR_GET_TS_PSIG_MGR | 8 | returns the current manager for ts_psig subpipes (struct upipe_mgr **) |
UPIPE_TS_MUX_MGR_SET_TS_PSIG_MGR | 9 | sets the manager for ts_psig subpipes (struct upipe_mgr *) |
UPIPE_TS_MUX_MGR_GET_TS_PSII_MGR | 10 | returns the current manager for ts_psii subpipes (struct upipe_mgr **) |
UPIPE_TS_MUX_MGR_SET_TS_PSII_MGR | 11 | sets the manager for ts_psii subpipes (struct upipe_mgr *) |
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 391.
This function returns the current manager for ts_agg subpipes.
Parameters list:
- mgr: pointer to manager
- p: filled in with the ts_agg manager
The return value is an error code
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 392.
This function returns the current manager for ts_encaps subpipes.
Parameters list:
- mgr: pointer to manager
- p: filled in with the ts_encaps manager
The return value is an error code
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 390.
This function returns the current manager for ts_join subpipes.
Parameters list:
- mgr: pointer to manager
- p: filled in with the ts_join manager
The return value is an error code
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 393.
This function returns the current manager for ts_pese subpipes.
Parameters list:
- mgr: pointer to manager
- p: filled in with the ts_pese manager
The return value is an error code
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 394.
This function returns the current manager for ts_psig subpipes.
Parameters list:
- mgr: pointer to manager
- p: filled in with the ts_psig manager
The return value is an error code
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 395.
This function returns the current manager for ts_psii subpipes.
Parameters list:
- mgr: pointer to manager
- p: filled in with the ts_psii manager
The return value is an error code
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 391.
This function sets the manager for ts_agg subpipes.
Parameters list:
- mgr: pointer to manager
- m: pointer to ts_agg manager
The return value is an error code
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 392.
This function sets the manager for ts_encaps subpipes.
Parameters list:
- mgr: pointer to manager
- m: pointer to ts_encaps manager
The return value is an error code
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 390.
This function sets the manager for ts_join subpipes.
Parameters list:
- mgr: pointer to manager
- m: pointer to ts_join manager
The return value is an error code
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 393.
This function sets the manager for ts_pese subpipes.
Parameters list:
- mgr: pointer to manager
- m: pointer to ts_pese manager
The return value is an error code
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 394.
This function sets the manager for ts_psig subpipes.
Parameters list:
- mgr: pointer to manager
- m: pointer to ts_psig manager
The return value is an error code
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 395.
This function sets the manager for ts_psii subpipes.
Parameters list:
- mgr: pointer to manager
- m: pointer to ts_psii manager
The return value is an error code
This enum is declared in upipe-ts/upipe_ts_mux.h source file, line 40.
This enum defines the modes of multiplexing, by order of strictness.
Identifier | Value | Description |
---|---|---|
UPIPE_TS_MUX_MODE_VBR | 0 | variable octetrate |
UPIPE_TS_MUX_MODE_CAPPED | 1 | capped octetrate, drop extra packets |
UPIPE_TS_MUX_MODE_CBR | 2 | constant octetrate, drop extra packets |
int upipe_ts_mux_set_conformance(struct upipe *upipe, enum upipe_ts_conformance conformance)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 115.
This function sets the conformance mode.
Parameters list:
- upipe: description structure of the pipe
- conformance: conformance mode
The return value is an error code
int upipe_ts_mux_set_mode(struct upipe *upipe, enum upipe_ts_mux_mode mode)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 276.
This function sets the mode. It may also be called on upipe_ts_aggregate.
Parameters list:
- upipe: description structure of the pipe
- mode: new mode
The return value is an error code
int upipe_ts_mux_set_mtu(struct upipe *upipe, unsigned int mtu)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 302.
This function sets the configured mtu of TS packets. It may also be called on upipe_ts_aggregate.
Parameters list:
- upipe: description structure of the pipe
- mtu: configured mtu, in octets
The return value is an error code
int upipe_ts_mux_set_octetrate(struct upipe *upipe, uint64_t octetrate)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 222.
This function sets the mux octetrate. It may also be called on upipe_ts_aggregate.
Parameters list:
- upipe: description structure of the pipe
- octetrate: new octetrate
The return value is an error code
int upipe_ts_mux_set_padding_octetrate(struct upipe *upipe, uint64_t octetrate)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 249.
This function sets the padding octetrate.
Parameters list:
- upipe: description structure of the pipe
- octetrate: new octetrate
The return value is an error code
int upipe_ts_mux_set_pat_interval(struct upipe *upipe, uint64_t interval)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 142.
This function sets the PAT interval. It takes effect at the end of the current period.
Parameters list:
- upipe: description structure of the pipe
- interval: new interval
The return value is an error code
int upipe_ts_mux_set_pcr_interval(struct upipe *upipe, uint64_t interval)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 195.
This function sets the PCR interval. It may also be called on a program subpipe.
Parameters list:
- upipe: description structure of the pipe
- interval: new interval
The return value is an error code
int upipe_ts_mux_set_pmt_interval(struct upipe *upipe, uint64_t interval)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 169.
This function sets the PMT interval. It takes effect at the end of the current period. It may also be called on a program subpipe.
Parameters list:
- upipe: description structure of the pipe
- interval: new interval
The return value is an error code
int upipe_ts_mux_set_version(struct upipe *upipe, unsigned int version)
This function is declared in upipe-ts/upipe_ts_mux.h source file, line 330.
This function sets the version of the PSI table. It may also be called on upipe_ts_psi_generator.
Parameters list:
- upipe: description structure of the pipe
- version: new version
The return value is an error code