gmerlin
Data Fields
bg_fv_plugin_s Struct Reference

Video 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...
 
int(* need_restart )(void *priv)
 Report, if the plugin must be reinitialized. More...
 
gavl_video_source_t *(* connect )(void *priv, gavl_video_source_t *src, const gavl_video_options_t *opt)
 Connect sources. More...
 

Detailed Description

Video filter plugin.

Field Documentation

bg_plugin_common_t bg_fv_plugin_s::common

Infos and functions common to all plugin types.

void(* bg_fv_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.

int(* bg_fv_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.

gavl_video_source_t*(* bg_fv_plugin_s::connect)(void *priv, gavl_video_source_t *src, const gavl_video_options_t *opt)

Connect sources.

Parameters
privThe handle returned by the create() method
srcVideo source where this filter gets it's frames from
optgavl Options for converting and filtering
Returns
The source to be passed to the subsequent filter

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