gmerlin
Data Fields
bg_fa_plugin_s Struct Reference

Audio filter plugin. More...

#include <plugin.h>

Data Fields

bg_plugin_common_t common
 Infos and functions common to all plugin types. More...
 
void(* reset )(void *priv)
 Reset. More...
 
gavl_audio_source_t *(* connect )(void *priv, gavl_audio_source_t *, const gavl_audio_options_t *opt)
 Connect sources. More...
 
int(* need_restart )(void *priv)
 Report, if the plugin must be reinitialized. More...
 

Detailed Description

Audio filter plugin.

Field Documentation

bg_plugin_common_t bg_fa_plugin_s::common

Infos and functions common to all plugin types.

void(* bg_fa_plugin_s::reset) (void *priv)

Reset.

Parameters
privThe handle returned by the create() method

Optional, resets internal state, as if no frame has been processed before.

gavl_audio_source_t*(* bg_fa_plugin_s::connect) (void *priv, gavl_audio_source_t *, const gavl_audio_options_t *opt)

Connect sources.

Parameters
privThe handle returned by the create() method
srcVideo source where this filter gets it's frames from
Returns
1 The source to be passed to the subsequent filter

This can be implemented as a replacement for connect_input_port, set_input_format and get_output_format read_video.

int(* bg_fa_plugin_s::need_restart) (void *priv)

Report, if the plugin must be reinitialized.

Parameters
privThe handle returned by the create() method
Returns
1 if the plugin must be reinitialized, 0 else

Optional, must be called after set_parameter() to check, if the filter must be reinitialized. Note, that the input and output formats can be changed in this case as well.


The documentation for this struct was generated from the following file: