upipe-modules/upipe_rate_limit.h header reference
Upipe rate limit module More
Header inclusion [link]
Members [link]
Type [link]
Functions [link]
- const char * upipe_rate_limit_command_str(int command)
- int upipe_rate_limit_get_duration(struct upipe *upipe, uint64_t *duration_p)
- int upipe_rate_limit_get_limit(struct upipe *upipe, uint64_t *rate_limit_p)
- struct upipe_mgr * upipe_rate_limit_mgr_alloc(void )
- int upipe_rate_limit_set_duration(struct upipe *upipe, uint64_t duration)
- int upipe_rate_limit_set_limit(struct upipe *upipe, uint64_t rate_limit)
Description [link]
Upipe rate limit module
Members detail [link]
#define UPIPE_RATE_LIMIT_SIGNATURE [link]
This macro is declared in upipe-modules/upipe_rate_limit.h source file, line 35.
#define _UPIPE_MODULES_UPIPE_RATE_LIMIT_H_ [link]
This macro is declared in upipe-modules/upipe_rate_limit.h source file, line 28.
enum upipe_rate_limit_command [link]
This enum is declared in upipe-modules/upipe_rate_limit.h source file, line 41.
This enum extends enum upipe_command with specific commands for rate limit pipe.
| Identifier | Value | Description |
|---|---|---|
| UPIPE_RATE_LIMIT_SENTINEL | 0x8000 | |
| UPIPE_RATE_LIMIT_SET_LIMIT | 1 | set the rate limit (uint64_t) in octet per second |
| UPIPE_RATE_LIMIT_GET_LIMIT | 2 | get the rate limit (uint64_t *) in octet per second |
| UPIPE_RATE_LIMIT_SET_DURATION | 3 | set the window (uint64_t) in clock tick |
| UPIPE_RATE_LIMIT_GET_DURATION | 4 | get the window (uint64_t *) in clock tick |
const char * upipe_rate_limit_command_str(int command) [link]
This function is declared in upipe-modules/upipe_rate_limit.h source file, line 60.
This function converts enum upipe_rate_limit_command to a string.
Parameter list:
- command: command to convert
The return value is a string of NULL if invalid
This function is declared in upipe-modules/upipe_rate_limit.h source file, line 118.
This function gets the rate limit window.
Parameter list:
- upipe: description structure of the pipe
- duration_p: pointer filled with the window duration in clock tick
The return value is an error code
This function is declared in upipe-modules/upipe_rate_limit.h source file, line 92.
This function gets the rate limit.
Parameter list:
- upipe: description structure of the pipe
- rate_limit_p: a pointer to the rate limit to get in octet per second
The return value is an error code
This function is declared in upipe-modules/upipe_rate_limit.h source file, line 124.
This function returns the rate limit pipe manager.
This function is declared in upipe-modules/upipe_rate_limit.h source file, line 105.
This function sets the rate limit window.
Parameter list:
- upipe: description structure of the pipe
- duration: window duration in clock tick
The return value is an error code
This function is declared in upipe-modules/upipe_rate_limit.h source file, line 79.
This function sets the rate limit.
Parameter list:
- upipe: description structure of the pipe
- rate_limit: the rate limit in octet per second
The return value is an error code