upipe-av/upipe_avformat_sink.h header reference
Upipe sink module libavformat wrapper More
Header inclusion
Members
Type
Functions
- int upipe_avfsink_get_duration(struct upipe *upipe, uint64_t *duration_p)
- int upipe_avfsink_get_format(struct upipe *upipe, const char **format_p)
- int upipe_avfsink_get_mime(struct upipe *upipe, const char **mime_p)
- struct upipe_mgr * upipe_avfsink_mgr_alloc(void )
- int upipe_avfsink_set_format(struct upipe *upipe, const char *format)
- int upipe_avfsink_set_mime(struct upipe *upipe, const char *mime)
Description
Members detail
This macro is declared in upipe-av/upipe_avformat_sink.h source file, line 39.
This macro is declared in upipe-av/upipe_avformat_sink.h source file, line 38.
This macro is declared in upipe-av/upipe_avformat_sink.h source file, line 31.
This enum is declared in upipe-av/upipe_avformat_sink.h source file, line 43.
This enum extends upipe_command with specific commands for avformat source.
Identifier | Value | Description |
---|---|---|
UPIPE_AVFSINK_SENTINEL | 0 | |
UPIPE_AVFSINK_GET_MIME | 1 | returns the currently configured MIME type (const char **) |
UPIPE_AVFSINK_SET_MIME | 2 | sets the MIME type (const char *) |
UPIPE_AVFSINK_GET_FORMAT | 3 | returns the currently configured format name (const char **) |
UPIPE_AVFSINK_SET_FORMAT | 4 | sets the format name (const char *) |
UPIPE_AVFSINK_GET_DURATION | 5 | returns the current duration (uint64_t *) |
int upipe_avfsink_get_duration(struct upipe *upipe, uint64_t *duration_p)
This function is declared in upipe-av/upipe_avformat_sink.h source file, line 125.
This function returns the current duration.
Parameters list:
- upipe: description structure of the pipe
- duration_p: filled in with the current duration
The return value is an error code
int upipe_avfsink_get_format(struct upipe *upipe, const char **format_p)
This function is declared in upipe-av/upipe_avformat_sink.h source file, line 98.
This function returns the currently configured format.
Parameters list:
- upipe: description structure of the pipe
- format_p: filled in with the currently configured format name
The return value is an error code
int upipe_avfsink_get_mime(struct upipe *upipe, const char **mime_p)
This function is declared in upipe-av/upipe_avformat_sink.h source file, line 72.
This function returns the currently configured MIME type.
Parameters list:
- upipe: description structure of the pipe
- mime_p: filled in with the currently configured MIME type
The return value is an error code
struct upipe_mgr * upipe_avfsink_mgr_alloc(void )
This function is declared in upipe-av/upipe_avformat_sink.h source file, line 62.
This function returns the management structure for all avformat sinks.
The return value is pointer to manager
int upipe_avfsink_set_format(struct upipe *upipe, const char *format)
This function is declared in upipe-av/upipe_avformat_sink.h source file, line 112.
This function sets the format. It only takes effect after the next call to upipe_set_uri.
Parameters list:
- upipe: description structure of the pipe
- format: format name
The return value is an error code
int upipe_avfsink_set_mime(struct upipe *upipe, const char *mime)
This function is declared in upipe-av/upipe_avformat_sink.h source file, line 85.
This function sets the MIME type. It only takes effect after the next call to upipe_set_uri.
Parameters list:
- upipe: description structure of the pipe
- mime: MIME type
The return value is an error code