upipe-modules/upipe_rtp_prepend.h header reference
Upipe rtp module to prepend rtp header to uref blocks More
Header inclusion [link]
Members [link]
Types [link]
Functions [link]
- int upipe_rtp_prepend_get_clockrate(struct upipe *upipe, uint32_t *clockrate_p)
- int upipe_rtp_prepend_get_ts_sync(struct upipe *upipe, enum upipe_rtp_prepend_ts_sync *sync_p)
- int upipe_rtp_prepend_get_type(struct upipe *upipe, uint8_t *type_p)
- struct upipe_mgr * upipe_rtp_prepend_mgr_alloc(void )
- int upipe_rtp_prepend_set_clockrate(struct upipe *upipe, uint32_t clockrate)
- int upipe_rtp_prepend_set_ts_sync(struct upipe *upipe, enum upipe_rtp_prepend_ts_sync sync)
- int upipe_rtp_prepend_set_type(struct upipe *upipe, uint8_t type)
Description [link]
Upipe rtp module to prepend rtp header to uref blocks
Members detail [link]
#define UPIPE_RTP_PREPEND_SIGNATURE [link]
This macro is declared in upipe-modules/upipe_rtp_prepend.h source file, line 40.
#define _UPIPE_MODULES_UPIPE_RTP_PREPEND_H_ [link]
This macro is declared in upipe-modules/upipe_rtp_prepend.h source file, line 31.
enum upipe_rtp_prepend_command [link]
This enum is declared in upipe-modules/upipe_rtp_prepend.h source file, line 44.
This enum extends upipe_command with specific commands for rtp_prepend pipes.
| Identifier | Value | Description |
|---|---|---|
| UPIPE_RTP_PREPEND_SENTINEL | 0x8000 | |
| UPIPE_RTP_PREPEND_SET_TYPE | 1 | set rtp type/clockrate (uint8_t) |
| UPIPE_RTP_PREPEND_GET_TYPE | 2 | set rtp type/clockrate (uint8_t*) |
| UPIPE_RTP_PREPEND_SET_CLOCKRATE | 3 | overwrite rtp clock rate (uint32_t) |
| UPIPE_RTP_PREPEND_GET_CLOCKRATE | 4 | get current rtp clock rate value (uint32_t*) |
| UPIPE_RTP_PREPEND_SET_TS_SYNC | 5 | overwrite rtp timestamp sync (enum upipe_rtp_prepend_ts_sync) |
| UPIPE_RTP_PREPEND_GET_TS_SYNC | 6 | get rtp timestamp sync (enum upipe_rtp_prepend_ts_sync *) |
This function is declared in upipe-modules/upipe_rtp_prepend.h source file, line 109.
This function get the current RTP clock rate value.
Parameter list:
- upipe: description structure of the pipe
- clockrate_p: rtp clock rate value
The return value is an error code
int upipe_rtp_prepend_get_ts_sync(struct upipe *upipe, enum upipe_rtp_prepend_ts_sync *sync_p) [link]
This function is declared in upipe-modules/upipe_rtp_prepend.h source file, line 145.
This function get the current timestamps sync clock.
Parameter list:
- upipe: description structure of the pipe
- sync_p: current timestamps sync clock
The return value is an error code
This function is declared in upipe-modules/upipe_rtp_prepend.h source file, line 69.
This function returns the configured RTP type.
Parameter list:
- upipe: description structure of the pipe
- type_p: rtp type
The return value is an error code
This function is declared in upipe-modules/upipe_rtp_prepend.h source file, line 154.
This function returns the management structure for rtp_prepend pipes.
The return value is pointer to manager
This function is declared in upipe-modules/upipe_rtp_prepend.h source file, line 96.
This function overwrite the RTP clock rate value.
Parameter list:
- upipe: description structure of the pipe
- clockrate: rtp timestamp and clock rate (optional, set according to rfc 3551 if null)
The return value is an error code
int upipe_rtp_prepend_set_ts_sync(struct upipe *upipe, enum upipe_rtp_prepend_ts_sync sync) [link]
This function is declared in upipe-modules/upipe_rtp_prepend.h source file, line 131.
This function overwrite the timestamps sync clock.
Parameter list:
- upipe: description structure of the pipe
- sync: timestamp sync clock
The return value is an error code
This function is declared in upipe-modules/upipe_rtp_prepend.h source file, line 82.
This function sets the RTP type.
Parameter list:
- upipe: description structure of the pipe
- type: rtp payload type
The return value is an error code
enum upipe_rtp_prepend_ts_sync [link]
This enum is declared in upipe-modules/upipe_rtp_prepend.h source file, line 115.
This enum timestamps sync clock values.
| Identifier | Value | Description |
|---|---|---|
| UPIPE_RTP_PREPEND_TS_SYNC_CR | 0 | timestamps sync on cr clock |
| UPIPE_RTP_PREPEND_TS_SYNC_PTS | 1 | timestamps sync on pts clock |