upipe-av/upipe_avformat_source.h header reference
Upipe source module libavformat wrapper More
Header inclusion
Members
Type
- enum upipe_avfsrc_command
Functions
- int upipe_avfsrc_get_option(struct upipe *upipe, const char *option, const char **content_p)
- int upipe_avfsrc_get_time(struct upipe *upipe, uint64_t *time_p)
- struct upipe_mgr * upipe_avfsrc_mgr_alloc(void )
- int upipe_avfsrc_set_option(struct upipe *upipe, const char *option, const char *content)
- int upipe_avfsrc_set_time(struct upipe *upipe, uint64_t time)
Description
Members detail
This macro is declared in upipe-av/upipe_avformat_source.h source file, line 39.
This macro is declared in upipe-av/upipe_avformat_source.h source file, line 38.
This macro is declared in upipe-av/upipe_avformat_source.h source file, line 31.
This enum is declared in upipe-av/upipe_avformat_source.h source file, line 43.
This enum extends upipe_command with specific commands for avformat source.
Identifier | Value | Description |
---|---|---|
UPIPE_AVFSRC_SENTINEL | 0 | |
UPIPE_AVFSRC_GET_OPTION | 1 | returns the content of an avformat option (const char *, const char **) |
UPIPE_AVFSRC_SET_OPTION | 2 | sets the content of an avformat option (const char *, const char *) |
UPIPE_AVFSRC_GET_TIME | 3 | returns the reading time of the currently opened file, in clock units (uint64_t *) |
UPIPE_AVFSRC_SET_TIME | 4 | asks to read at the given time (uint64_t) |
int upipe_avfsrc_get_option(struct upipe *upipe, const char *option, const char **content_p)
This function is declared in upipe-av/upipe_avformat_source.h source file, line 74.
This function returns the content of an avformat option.
Parameters list:
- upipe: description structure of the pipe
- option: name of the option
- content_p: filled in with the content of the option
The return value is an error code
int upipe_avfsrc_get_time(struct upipe *upipe, uint64_t *time_p)
This function is declared in upipe-av/upipe_avformat_source.h source file, line 102.
This function returns the reading time of the currently opened URL.
Parameters list:
- upipe: description structure of the pipe
- time_p: filled in with the reading time, in clock units
The return value is an error code
struct upipe_mgr * upipe_avfsrc_mgr_alloc(void )
This function is declared in upipe-av/upipe_avformat_source.h source file, line 62.
This function returns the management structure for all avformat sources.
The return value is pointer to manager
int upipe_avfsrc_set_option(struct upipe *upipe, const char *option, const char *content)
This function is declared in upipe-av/upipe_avformat_source.h source file, line 90.
This function sets the content of an avformat option. It only takes effect after the next call to upipe_set_uri.
Parameters list:
- upipe: description structure of the pipe
- option: name of the option
- content: content of the option, or NULL to delete it
The return value is an error code
int upipe_avfsrc_set_time(struct upipe *upipe, uint64_t time)
This function is declared in upipe-av/upipe_avformat_source.h source file, line 114.
This function asks to read at the given time.
Parameters list:
- upipe: description structure of the pipe
- time: new reading time, in clock units
The return value is an error code