upipe-modules/upipe_buffer.h header reference

Upipe buffer module More

Header inclusion  

Members  

Types  

Functions  

Description  

The buffer pipe directly forwards the input uref if it can. When the output upump is blocked by the output pipe, the buffer pipe still accepts the input uref until the maximum size is reached.

Members detail  

#define UPIPE_BUFFER_SIGNATURE  

This macro is declared in upipe-modules/upipe_buffer.h source file, line 42.

#define _UPIPE_MODULES_UPIPE_BUFFER_H_  

This macro is declared in upipe-modules/upipe_buffer.h source file, line 35.

enum upipe_buffer_command  

This enum is declared in upipe-modules/upipe_buffer.h source file, line 46.

This enum extends upipe_command with specific buffer commands.

IdentifierValueDescription
UPIPE_BUFFER_SENTINELUPIPE_CONTROL_LOCAL
UPIPE_BUFFER_SET_MAX_SIZEunknownset the maximum retained size in octet (uint64_t)
UPIPE_BUFFER_GET_MAX_SIZEunknownget the maximum retained size in octet (uint64_t *)
UPIPE_BUFFER_SET_LOWunknownset the low limit in octet (uint64_t)
UPIPE_BUFFER_GET_LOWunknownget the low limit in octet (uint64_t *)
UPIPE_BUFFER_SET_HIGHunknownset the high limit in octet (uint64_t)
UPIPE_BUFFER_GET_HIGHunknownget the high limit in octet (uint64_t *)

const char * upipe_buffer_command_str(int command)  

This function is declared in upipe-modules/upipe_buffer.h source file, line 69.

This function converts enum upipe_buffer_command to a string.

Parameter list:

  • command: command to convert

The return value is a string or NULL if invalid

enum upipe_buffer_event  

This enum is declared in upipe-modules/upipe_buffer.h source file, line 186.

This enum extends uprobe_event with specific buffer events.

IdentifierValueDescription
UPROBE_BUFFER_SENTINELUPROBE_LOCAL
UPROBE_BUFFER_UPDATEunknownupipe buffer state changed

const char * upipe_buffer_event_str(int event)  

This function is declared in upipe-modules/upipe_buffer.h source file, line 199.

This function converts enum upipe_buffer_event to a string.

Parameter list:

  • event: event to convert

The return value is a string or NULL if invalid

int upipe_buffer_get_high_limit(struct upipe *upipe, uint64_t *high_limit_p)  

This function is declared in upipe-modules/upipe_buffer.h source file, line 155.

This function gets the high limit size in octet.

Parameter list:

  • upipe: description structure of the pipe
  • high_limit_p: a point to the high limit size in octet

The return value is an error code

int upipe_buffer_get_low_limit(struct upipe *upipe, uint64_t *low_limit_p)  

This function is declared in upipe-modules/upipe_buffer.h source file, line 129.

This function gets the low limit size in octet.

Parameter list:

  • upipe: description structure of the pipe
  • low_limit_p: a point to the low limit size in octet

The return value is an error code

int upipe_buffer_get_max_size(struct upipe *upipe, uint64_t *max_size_p)  

This function is declared in upipe-modules/upipe_buffer.h source file, line 90.

This function gets the maximum retained size in octet.

Parameter list:

  • upipe: description structure of the pipe
  • max_size_p: a pointer to the size

The return value is an error code

struct upipe_mgr * upipe_buffer_mgr_alloc(void )  

This function is declared in upipe-modules/upipe_buffer.h source file, line 211.

This function return the buffer pipe manager.

The return value is a pointer to the manager

int upipe_buffer_set_high_limit(struct upipe *upipe, uint64_t high_limit)  

This function is declared in upipe-modules/upipe_buffer.h source file, line 142.

This function sets the high limit size in octet.

Parameter list:

  • upipe: description structure of the pipe
  • high_limit: the high limit size in octet

The return value is an error code

int upipe_buffer_set_low_limit(struct upipe *upipe, uint64_t low_limit)  

This function is declared in upipe-modules/upipe_buffer.h source file, line 116.

This function sets the low limit size in octet.

Parameter list:

  • upipe: description structure of the pipe
  • low_limit: the low limit size in octet

The return value is an error code

int upipe_buffer_set_max_size(struct upipe *upipe, uint64_t max_size)  

This function is declared in upipe-modules/upipe_buffer.h source file, line 103.

This function sets the maximum retained size in octet.

Parameter list:

  • upipe: description structure of the pipe
  • max_size: the maximum size in octet

The return value is an error code

enum upipe_buffer_state  

This enum is declared in upipe-modules/upipe_buffer.h source file, line 161.

This enum is the buffer pipe states.

IdentifierValueDescription
UPIPE_BUFFER_LOW0under the low limit
UPIPE_BUFFER_MIDDLE1between low and high limit
UPIPE_BUFFER_HIGH2above high limit

const char * upipe_buffer_state_str(enum upipe_buffer_state s)  

This function is declared in upipe-modules/upipe_buffer.h source file, line 176.

This function converts enum upipe_buffer_state to a string.

Parameter list:

  • s: buffer state

The return value is a string or NULL if invalid

Valid XHTML 1.0 StrictGenerated by cmassiot on Fri Feb 2 23:57:18 2018 using MkDoc