|
gmerlin
|
Video filter plugin. More...
#include <plugin.h>
Data Fields | |
| bg_plugin_common_t | common |
| Infos and functions common to all plugin types. | |
| gavl_video_options_t *(* | get_options )(void *priv) |
| Get gavl options. | |
| void(* | connect_input_port )(void *priv, bg_read_video_func_t func, void *data, int stream, int port) |
| Set input callback. | |
| void(* | set_input_format )(void *priv, gavl_video_format_t *format, int port) |
| Set input format. | |
| void(* | reset )(void *priv) |
| Reset. | |
| void(* | get_output_format )(void *priv, gavl_video_format_t *format) |
| Get output format. | |
| int(* | need_restart )(void *priv) |
| Report, if the plugin must be reinitialized. | |
| bg_read_video_func_t | read_video |
| Read a video frame from the plugin. | |
Video filter plugin.
Infos and functions common to all plugin types.
| gavl_video_options_t*(* bg_fv_plugin_s::get_options)(void *priv) |
Get gavl options.
| priv | The handle returned by the create() method |
This optional function returns the gavl options. You can configure them like you do it in plain gavl.
| void(* bg_fv_plugin_s::connect_input_port)(void *priv, bg_read_video_func_t func, void *data, int stream, int port) |
Set input callback.
| priv | The handle returned by the create() method |
| func | The function to call |
| data | The private handle to pass to func |
| stream | The stream argument to pass to func |
| port | The input port of the plugin |
| void(* bg_fv_plugin_s::set_input_format)(void *priv, gavl_video_format_t *format, int port) |
Set input format.
| priv | The handle returned by the create() method |
| format | Format |
| port | The input port of the plugin |
| void(* bg_fv_plugin_s::reset)(void *priv) |
Reset.
| priv | The handle returned by the create() method |
Optional, resets internal state, as if no frame has been processed before.
| void(* bg_fv_plugin_s::get_output_format)(void *priv, gavl_video_format_t *format) |
Get output format.
| priv | The handle returned by the create() method |
| format | Returns the output format |
These must be called after init().
| int(* bg_fv_plugin_s::need_restart)(void *priv) |
Report, if the plugin must be reinitialized.
| priv | The handle returned by the create() method |
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.
Read a video frame from the plugin.
1.7.3