Typedefs | |
| typedef struct bgav_options_s | bgav_options_t |
| Opaque option container. | |
| typedef void(* | bgav_log_callback )(void *data, bgav_log_level_t level, const char *log_domain, const char *message) |
| Function to be called for loggins messages. | |
| typedef void(* | bgav_name_change_callback )(void *data, const char *name) |
| Function to be called if the track name changes. | |
| typedef void(* | bgav_metadata_change_callback )(void *data, const bgav_metadata_t *metadata) |
| Function to be called if the metadata change. | |
| typedef void(* | bgav_buffer_callback )(void *data, float percentage) |
| Function to be called if the input module is buffering data. | |
| typedef int(* | bgav_user_pass_callback )(void *data, const char *resource, char **username, char **password) |
| Function to be called if the input module needs authentication data. | |
| typedef void(* | bgav_aspect_callback )(void *data, int stream, int pixel_width, int pixel_height) |
| Function to be called if a change of the aspect ratio was detected. | |
| typedef void(* | bgav_index_callback )(void *data, float percentage) |
| Function to be called periodically while an index is built. | |
Enumerations | |
| enum | bgav_log_level_t { BGAV_LOG_DEBUG = (1<<0), BGAV_LOG_WARNING = (1<<1), BGAV_LOG_ERROR = (1<<2), BGAV_LOG_INFO = (1<<3) } |
Enumeration for log levels. More... | |
Functions | |
| BGAV_PUBLIC bgav_options_t * | bgav_get_options (bgav_t *bgav) |
| Get the options of a decoder instance. | |
| BGAV_PUBLIC bgav_options_t * | bgav_options_create () |
| Create an options container. | |
| BGAV_PUBLIC void | bgav_options_destroy (bgav_options_t *opt) |
| Destroy option cotainer. | |
| BGAV_PUBLIC void | bgav_options_copy (bgav_options_t *dst, const bgav_options_t *src) |
| Copy options. | |
| BGAV_PUBLIC void | bgav_options_set_connect_timeout (bgav_options_t *opt, int timeout) |
| Set connect timeout. | |
| BGAV_PUBLIC void | bgav_options_set_read_timeout (bgav_options_t *opt, int timeout) |
| Set read timeout. | |
| BGAV_PUBLIC void | bgav_options_set_rtp_port_base (bgav_options_t *b, int p) |
| Set RTP port pase. | |
| BGAV_PUBLIC void | bgav_options_set_rtp_try_tcp (bgav_options_t *b, int enable) |
| Try TCP before UDP. | |
| BGAV_PUBLIC void | bgav_options_set_network_bandwidth (bgav_options_t *opt, int bandwidth) |
| Set network bandwidth. | |
| BGAV_PUBLIC void | bgav_options_set_network_buffer_size (bgav_options_t *opt, int size) |
| Set network buffer size. | |
| BGAV_PUBLIC void | bgav_options_set_http_use_proxy (bgav_options_t *opt, int enable) |
| Set proxy usage. | |
| BGAV_PUBLIC void | bgav_options_set_http_proxy_host (bgav_options_t *opt, const char *host) |
| Set proxy host. | |
| BGAV_PUBLIC void | bgav_options_set_http_proxy_port (bgav_options_t *opt, int port) |
| Set proxy port. | |
| BGAV_PUBLIC void | bgav_options_set_http_proxy_auth (bgav_options_t *opt, int enable) |
| Enable or disable proxy authentication. | |
| BGAV_PUBLIC void | bgav_options_set_http_proxy_user (bgav_options_t *opt, const char *user) |
| Set proxy username. | |
| BGAV_PUBLIC void | bgav_options_set_http_proxy_pass (bgav_options_t *opt, const char *pass) |
| Set proxy password. | |
| BGAV_PUBLIC void | bgav_options_set_http_shoutcast_metadata (bgav_options_t *opt, int enable) |
| Enable or disable shoutcast metadata streaming. | |
| BGAV_PUBLIC void | bgav_options_set_ftp_anonymous (bgav_options_t *opt, int enable) |
| Enable or disable anonymous ftp login. | |
| BGAV_PUBLIC void | bgav_options_set_ftp_anonymous_password (bgav_options_t *opt, const char *pass) |
| Set anonymous password. | |
| BGAV_PUBLIC void | bgav_options_set_default_subtitle_encoding (bgav_options_t *opt, const char *encoding) |
| Set default subtitle encoding. | |
| BGAV_PUBLIC void | bgav_options_set_audio_dynrange (bgav_options_t *opt, int audio_dynrange) |
| Enable dynamic range control. | |
| BGAV_PUBLIC void | bgav_options_set_sample_accurate (bgav_options_t *opt, int enable) |
| Try to be sample accurate. | |
| BGAV_PUBLIC void | bgav_options_set_cache_time (bgav_options_t *opt, int t) |
| Set the index creation time for caching. | |
| BGAV_PUBLIC void | bgav_options_set_cache_size (bgav_options_t *opt, int s) |
| Set the maximum total size of the index cache. | |
| BGAV_PUBLIC void | bgav_options_set_seek_subtitles (bgav_options_t *opt, int seek_subtitles) |
| Enable external subtitle files. | |
| BGAV_PUBLIC void | bgav_options_set_pp_level (bgav_options_t *opt, int pp_level) |
| Set postprocessing level. | |
| BGAV_PUBLIC void | bgav_options_set_postprocessing_level (bgav_options_t *opt, float pp_level) |
| Set postprocessing level. | |
| BGAV_PUBLIC void | bgav_options_set_threads (bgav_options_t *opt, int threads) |
| Set number of threads. | |
| BGAV_PUBLIC void | bgav_options_set_dvb_channels_file (bgav_options_t *opt, const char *file) |
| Set DVB channels file. | |
| BGAV_PUBLIC void | bgav_options_set_prefer_ffmpeg_demuxers (bgav_options_t *opt, int prefer) |
| Preference of ffmpeg demultiplexers. | |
| BGAV_PUBLIC void | bgav_options_set_dv_datetime (bgav_options_t *opt, int datetime) |
| Exports the date and time as timecode field of DV streams. | |
| BGAV_PUBLIC void | bgav_options_set_shrink (bgav_options_t *opt, int factor) |
| Shrink factor. | |
| BGAV_PUBLIC void | bgav_options_set_vdpau (bgav_options_t *opt, int vdpau) |
| VDPAU acceleration. | |
| BGAV_PUBLIC void | bgav_options_set_log_callback (bgav_options_t *opt, bgav_log_callback callback, void *data) |
| Set the callback for log messages. | |
| BGAV_PUBLIC void | bgav_options_set_log_level (bgav_options_t *opt, int level) |
| Set the verbosity for log messages. | |
| BGAV_PUBLIC void | bgav_options_set_name_change_callback (bgav_options_t *opt, bgav_name_change_callback callback, void *data) |
| Set the callback for name change events. | |
| BGAV_PUBLIC void | bgav_options_set_metadata_change_callback (bgav_options_t *opt, bgav_metadata_change_callback callback, void *data) |
| Set the callback for metadata change events. | |
| BGAV_PUBLIC void | bgav_options_set_buffer_callback (bgav_options_t *opt, bgav_buffer_callback callback, void *data) |
| Set the callback for buffering notification. | |
| BGAV_PUBLIC void | bgav_options_set_user_pass_callback (bgav_options_t *opt, bgav_user_pass_callback callback, void *data) |
| Set the callback for user authentication. | |
| BGAV_PUBLIC void | bgav_options_set_aspect_callback (bgav_options_t *opt, bgav_aspect_callback callback, void *data) |
| Set aspect ratio change callback. | |
| BGAV_PUBLIC void | bgav_options_set_index_callback (bgav_options_t *opt, bgav_index_callback callback, void *data) |
| Set index build callback. | |
These functions are used to configure a decoder and to set callback functions. After you created a bgav_t object, get it's options with bgav_get_options. All options are returned in an option container (bgav_options_t), and the bgav_options_set_* functions allow you to change single options. As an alternative, you can create an independent option container with bgav_options_create, change it as you like and use bgav_options_copy to copy them to the container you got with bgav_get_options.
All options become valid with (and should not be changed after) the call to one of the bgav_open* functions.
| typedef struct bgav_options_s bgav_options_t |
Opaque option container.
| typedef void(* bgav_log_callback)(void *data, bgav_log_level_t level, const char *log_domain, const char *message) |
Function to be called for loggins messages.
| data | The data you passed to bgav_options_set_log_callback.
|
| typedef void(* bgav_name_change_callback)(void *data, const char *name) |
Function to be called if the track name changes.
| data | The data you passed to bgav_options_set_name_change_callback.
|
| typedef void(* bgav_metadata_change_callback)(void *data, const bgav_metadata_t *metadata) |
Function to be called if the metadata change.
| data | The data you passed to bgav_options_set_metadata_change_callback.
|
| typedef void(* bgav_buffer_callback)(void *data, float percentage) |
Function to be called if the input module is buffering data.
| data | The data you passed to bgav_options_set_buffer_callback.
|
| typedef int(* bgav_user_pass_callback)(void *data, const char *resource, char **username, char **password) |
Function to be called if the input module needs authentication data.
| data | The data you passed to bgav_options_set_user_pass_callback.
|
| typedef void(* bgav_aspect_callback)(void *data, int stream, int pixel_width, int pixel_height) |
Function to be called if a change of the aspect ratio was detected.
| data | The data you passed to bgav_options_set_aspect_callback.
|
| typedef void(* bgav_index_callback)(void *data, float percentage) |
Function to be called periodically while an index is built.
| data | The data you passed to bgav_options_set_index_callback.
|
| enum bgav_log_level_t |
Enumeration for log levels.
These will be called from within log callbacks
| BGAV_PUBLIC bgav_options_t* bgav_get_options | ( | bgav_t * | bgav | ) |
Get the options of a decoder instance.
| BGAV_PUBLIC bgav_options_t* bgav_options_create | ( | ) |
Create an options container.
To pass the options to a decoder structure, use bgav_get_options and bgav_options_copy.
| BGAV_PUBLIC void bgav_options_destroy | ( | bgav_options_t * | opt | ) |
Destroy option cotainer.
| opt | option cotainer |
| BGAV_PUBLIC void bgav_options_copy | ( | bgav_options_t * | dst, | |
| const bgav_options_t * | src | |||
| ) |
Copy options.
| dst | Destination
|
| BGAV_PUBLIC void bgav_options_set_connect_timeout | ( | bgav_options_t * | opt, | |
| int | timeout | |||
| ) |
Set connect timeout.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_read_timeout | ( | bgav_options_t * | opt, | |
| int | timeout | |||
| ) |
Set read timeout.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_rtp_port_base | ( | bgav_options_t * | b, | |
| int | p | |||
| ) |
Set RTP port pase.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_rtp_try_tcp | ( | bgav_options_t * | b, | |
| int | enable | |||
| ) |
Try TCP before UDP.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_network_bandwidth | ( | bgav_options_t * | opt, | |
| int | bandwidth | |||
| ) |
Set network bandwidth.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_network_buffer_size | ( | bgav_options_t * | opt, | |
| int | size | |||
| ) |
Set network buffer size.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_http_use_proxy | ( | bgav_options_t * | opt, | |
| int | enable | |||
| ) |
Set proxy usage.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_http_proxy_host | ( | bgav_options_t * | opt, | |
| const char * | host | |||
| ) |
Set proxy host.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_http_proxy_port | ( | bgav_options_t * | opt, | |
| int | port | |||
| ) |
Set proxy port.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_http_proxy_auth | ( | bgav_options_t * | opt, | |
| int | enable | |||
| ) |
Enable or disable proxy authentication.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_http_proxy_user | ( | bgav_options_t * | opt, | |
| const char * | user | |||
| ) |
Set proxy username.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_http_proxy_pass | ( | bgav_options_t * | opt, | |
| const char * | pass | |||
| ) |
Set proxy password.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_http_shoutcast_metadata | ( | bgav_options_t * | opt, | |
| int | enable | |||
| ) |
Enable or disable shoutcast metadata streaming.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_ftp_anonymous | ( | bgav_options_t * | opt, | |
| int | enable | |||
| ) |
Enable or disable anonymous ftp login.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_ftp_anonymous_password | ( | bgav_options_t * | opt, | |
| const char * | pass | |||
| ) |
Set anonymous password.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_default_subtitle_encoding | ( | bgav_options_t * | opt, | |
| const char * | encoding | |||
| ) |
Set default subtitle encoding.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_audio_dynrange | ( | bgav_options_t * | opt, | |
| int | audio_dynrange | |||
| ) |
Enable dynamic range control.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_sample_accurate | ( | bgav_options_t * | opt, | |
| int | enable | |||
| ) |
Try to be sample accurate.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_cache_time | ( | bgav_options_t * | opt, | |
| int | t | |||
| ) |
Set the index creation time for caching.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_cache_size | ( | bgav_options_t * | opt, | |
| int | s | |||
| ) |
Set the maximum total size of the index cache.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_seek_subtitles | ( | bgav_options_t * | opt, | |
| int | seek_subtitles | |||
| ) |
Enable external subtitle files.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_pp_level | ( | bgav_options_t * | opt, | |
| int | pp_level | |||
| ) |
Set postprocessing level.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_postprocessing_level | ( | bgav_options_t * | opt, | |
| float | pp_level | |||
| ) |
Set postprocessing level.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_threads | ( | bgav_options_t * | opt, | |
| int | threads | |||
| ) |
Set number of threads.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_dvb_channels_file | ( | bgav_options_t * | opt, | |
| const char * | file | |||
| ) |
Set DVB channels file.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_prefer_ffmpeg_demuxers | ( | bgav_options_t * | opt, | |
| int | prefer | |||
| ) |
Preference of ffmpeg demultiplexers.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_dv_datetime | ( | bgav_options_t * | opt, | |
| int | datetime | |||
| ) |
Exports the date and time as timecode field of DV streams.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_shrink | ( | bgav_options_t * | opt, | |
| int | factor | |||
| ) |
Shrink factor.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_vdpau | ( | bgav_options_t * | opt, | |
| int | vdpau | |||
| ) |
VDPAU acceleration.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_log_callback | ( | bgav_options_t * | opt, | |
| bgav_log_callback | callback, | |||
| void * | data | |||
| ) |
Set the callback for log messages.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_log_level | ( | bgav_options_t * | opt, | |
| int | level | |||
| ) |
Set the verbosity for log messages.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_name_change_callback | ( | bgav_options_t * | opt, | |
| bgav_name_change_callback | callback, | |||
| void * | data | |||
| ) |
Set the callback for name change events.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_metadata_change_callback | ( | bgav_options_t * | opt, | |
| bgav_metadata_change_callback | callback, | |||
| void * | data | |||
| ) |
Set the callback for metadata change events.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_buffer_callback | ( | bgav_options_t * | opt, | |
| bgav_buffer_callback | callback, | |||
| void * | data | |||
| ) |
Set the callback for buffering notification.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_user_pass_callback | ( | bgav_options_t * | opt, | |
| bgav_user_pass_callback | callback, | |||
| void * | data | |||
| ) |
Set the callback for user authentication.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_aspect_callback | ( | bgav_options_t * | opt, | |
| bgav_aspect_callback | callback, | |||
| void * | data | |||
| ) |
Set aspect ratio change callback.
| opt | Option container
|
| BGAV_PUBLIC void bgav_options_set_index_callback | ( | bgav_options_t * | opt, | |
| bgav_index_callback | callback, | |||
| void * | data | |||
| ) |
Set index build callback.
| opt | Option container
|
1.6.3