upipe-modules/upipe_rate_limit.h header reference

Upipe rate limit module More

Header inclusion [link] 

Members [link] 

Type [link] 

Functions [link] 

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.

IdentifierValueDescription
UPIPE_RATE_LIMIT_SENTINEL0x8000
UPIPE_RATE_LIMIT_SET_LIMIT1set the rate limit (uint64_t) in octet per second
UPIPE_RATE_LIMIT_GET_LIMIT2get the rate limit (uint64_t *) in octet per second
UPIPE_RATE_LIMIT_SET_DURATION3set the window (uint64_t) in clock tick
UPIPE_RATE_LIMIT_GET_DURATION4get 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

int upipe_rate_limit_get_duration(struct upipe *upipe, uint64_t *duration_p) [link] 

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

int upipe_rate_limit_get_limit(struct upipe *upipe, uint64_t *rate_limit_p) [link] 

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

struct upipe_mgr * upipe_rate_limit_mgr_alloc(void ) [link] 

This function is declared in upipe-modules/upipe_rate_limit.h source file, line 124.

This function returns the rate limit pipe manager.

int upipe_rate_limit_set_duration(struct upipe *upipe, uint64_t duration) [link] 

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

int upipe_rate_limit_set_limit(struct upipe *upipe, uint64_t rate_limit) [link] 

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

Valid XHTML 1.0 StrictGenerated by cmassiot on Sun Dec 14 18:31:17 2025 using MkDoc