Plugin defaults.
More...
|
void | bg_plugin_registry_set_default (bg_plugin_registry_t *reg, bg_plugin_type_t type, uint32_t flag_mask, const char *plugin_name) |
| Set the default for a particular plugin type. More...
|
|
const bg_plugin_info_t * | bg_plugin_registry_get_default (bg_plugin_registry_t *reg, bg_plugin_type_t type, uint32_t flag_mask) |
| Set the default for a particular plugin type. More...
|
|
void | bg_plugin_registry_set_encode_audio_to_video (bg_plugin_registry_t *reg, int audio_to_video) |
| Specify whether audio should be encoded into the same file as the video if possible. More...
|
|
int | bg_plugin_registry_get_encode_audio_to_video (bg_plugin_registry_t *reg) |
| Query whether audio should be encoded into the same file as the video if possible. More...
|
|
void | bg_plugin_registry_set_encode_subtitle_text_to_video (bg_plugin_registry_t *reg, int subtitle_text_to_video) |
| Specify whether text subtitles should be encoded into the same file as the video if possible. More...
|
|
int | bg_plugin_registry_get_encode_subtitle_text_to_video (bg_plugin_registry_t *reg) |
| Query whether text subtitles should be encoded into the same file as the video if possible. More...
|
|
void | bg_plugin_registry_set_encode_subtitle_overlay_to_video (bg_plugin_registry_t *reg, int subtitle_overlay_to_video) |
| Specify whether overlay subtitles should be encoded into the same file as the video if possible. More...
|
|
int | bg_plugin_registry_get_encode_subtitle_overlay_to_video (bg_plugin_registry_t *reg) |
| Query whether overlay subtitles should be encoded into the same file as the video if possible. More...
|
|
void | bg_plugin_registry_set_encode_pp (bg_plugin_registry_t *reg, int encode_pp) |
| Specify whether postprocessing should be done after encoding. More...
|
|
int | bg_plugin_registry_get_encode_pp (bg_plugin_registry_t *reg) |
| Query whether postprocessing should be done after encoding. More...
|
|
void | bg_plugin_registry_set_visualize (bg_plugin_registry_t *reg, int enable) |
| Specify whether visualizations should be enabled. More...
|
|
int | bg_plugin_registry_get_visualize (bg_plugin_registry_t *reg) |
| Query whether visualizations should be enabled. More...
|
|
Plugin defaults.
The registry stores a complete plugin setup for any kind of application. This includes the default plugins (see bg_plugin_registry_get_default and bg_plugin_registry_set_default), their parameters, as well as flags, whether encoded streams should be multiplexed or not. It's up the the application if these informations are used or not.
These infos play no role inside the registry, but they are saved and reloaded between sessions.
Set the default for a particular plugin type.
- Parameters
-
reg | A plugin registry |
type | The type for which the default will be set |
flag_mask | A mask of plugin flags |
plugin_name | Short name of the plugin |
Default plugins are stored for various types (recorders, output and encoders). The default will be stored in the config section.
Set the default for a particular plugin type.
- Parameters
-
reg | A plugin registry |
type | The plugin type |
flag_mask | A mask of plugin flags |
- Returns
- A plugin info or NULL
Note, that the registry does not store a default input plugin.
void bg_plugin_registry_set_encode_audio_to_video |
( |
bg_plugin_registry_t * |
reg, |
|
|
int |
audio_to_video |
|
) |
| |
Specify whether audio should be encoded into the same file as the video if possible.
- Parameters
-
reg | A plugin registry |
audio_to_video | 0 if the audio streams should always go to a separate file, 1 else |
Query whether audio should be encoded into the same file as the video if possible.
- Parameters
-
- Returns
- 0 if the audio streams should always go to a separate file, 1 else
void bg_plugin_registry_set_encode_subtitle_text_to_video |
( |
bg_plugin_registry_t * |
reg, |
|
|
int |
subtitle_text_to_video |
|
) |
| |
Specify whether text subtitles should be encoded into the same file as the video if possible.
- Parameters
-
reg | A plugin registry |
subtitle_text_to_video | 0 if the text subtitles should always go to a separate file, 1 else |
Query whether text subtitles should be encoded into the same file as the video if possible.
- Parameters
-
- Returns
- 0 if the text subtitles should always go to a separate file, 1 else
void bg_plugin_registry_set_encode_subtitle_overlay_to_video |
( |
bg_plugin_registry_t * |
reg, |
|
|
int |
subtitle_overlay_to_video |
|
) |
| |
Specify whether overlay subtitles should be encoded into the same file as the video if possible.
- Parameters
-
reg | A plugin registry |
subtitle_overlay_to_video | 0 if the overay subtitles should always go to a separate file, 1 else |
Query whether overlay subtitles should be encoded into the same file as the video if possible.
- Parameters
-
- Returns
- 0 if the overay subtitles should always go to a separate file, 1 else
Specify whether postprocessing should be done after encoding.
- Parameters
-
reg | A plugin registry |
encode_pp | 0 if the overay subtitles should always go to a separate file, 1 else |
Query whether postprocessing should be done after encoding.
- Parameters
-
- Returns
- 0 if the overay subtitles should always go to a separate file, 1 else
Specify whether visualizations should be enabled.
- Parameters
-
reg | A plugin registry |
enable | 1 to enable visualizations, 0 else |
Query whether visualizations should be enabled.
- Parameters
-
- Returns
- 1 if visualizations should be enabled, 0 else