gmerlin
Functions
Defaults saved between sessions

Plugin defaults. More...

Functions

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_tbg_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...
 

Detailed Description

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.

Function Documentation

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.

Parameters
regA plugin registry
typeThe type for which the default will be set
flag_maskA mask of plugin flags
plugin_nameShort name of the plugin

Default plugins are stored for various types (recorders, output and encoders). The default will be stored in the config section.

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.

Parameters
regA plugin registry
typeThe plugin type
flag_maskA 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
regA plugin registry
audio_to_video0 if the audio streams should always go to a separate file, 1 else
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.

Parameters
regA plugin registry
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
regA plugin registry
subtitle_text_to_video0 if the text subtitles should always go to a separate file, 1 else
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.

Parameters
regA plugin registry
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
regA plugin registry
subtitle_overlay_to_video0 if the overay subtitles should always go to a separate file, 1 else
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.

Parameters
regA plugin registry
Returns
0 if the overay subtitles should always go to a separate file, 1 else
void bg_plugin_registry_set_encode_pp ( bg_plugin_registry_t reg,
int  encode_pp 
)

Specify whether postprocessing should be done after encoding.

Parameters
regA plugin registry
encode_pp0 if the overay subtitles should always go to a separate file, 1 else
int bg_plugin_registry_get_encode_pp ( bg_plugin_registry_t reg)

Query whether postprocessing should be done after encoding.

Parameters
regA plugin registry
Returns
0 if the overay subtitles should always go to a separate file, 1 else
void bg_plugin_registry_set_visualize ( bg_plugin_registry_t reg,
int  enable 
)

Specify whether visualizations should be enabled.

Parameters
regA plugin registry
enable1 to enable visualizations, 0 else
int bg_plugin_registry_get_visualize ( bg_plugin_registry_t reg)

Query whether visualizations should be enabled.

Parameters
regA plugin registry
Returns
1 if visualizations should be enabled, 0 else