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...
 
gavl_video_options_t *(* get_options )(void *priv)
 Get gavl options. More...
 
void(* connect_input_port )(void *priv, bg_read_video_func_t func, void *data, int stream, int port)
 Set input callback. More...
 
void(* set_input_format )(void *priv, gavl_video_format_t *format, int port)
 Set input format. More...
 
void(* reset )(void *priv)
 Reset. More...
 
void(* get_output_format )(void *priv, gavl_video_format_t *format)
 Get output format. More...
 
int(* need_restart )(void *priv)
 Report, if the plugin must be reinitialized. More...
 
bg_read_video_func_t read_video
 Read a video frame from the plugin. More...
 

Detailed Description

Video filter plugin.

Field Documentation

§ common

bg_plugin_common_t bg_fv_plugin_s::common

Infos and functions common to all plugin types.

§ get_options

gavl_video_options_t*(* bg_fv_plugin_s::get_options) (void *priv)

Get gavl options.

Parameters
privThe handle returned by the create() method
Returns
Video conversion options

This optional function returns the gavl options. You can configure them like you do it in plain gavl.

§ connect_input_port

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.

Parameters
privThe handle returned by the create() method
funcThe function to call
dataThe private handle to pass to func
streamThe stream argument to pass to func
portThe input port of the plugin

§ set_input_format

void(* bg_fv_plugin_s::set_input_format) (void *priv, gavl_video_format_t *format, int port)

Set input format.

Parameters
privThe handle returned by the create() method
formatFormat
portThe input port of the plugin

§ reset

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.

§ get_output_format

void(* bg_fv_plugin_s::get_output_format) (void *priv, gavl_video_format_t *format)

Get output format.

Parameters
privThe handle returned by the create() method
formatReturns the output format

These must be called after init().

§ need_restart

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.

§ read_video

bg_read_video_func_t bg_fv_plugin_s::read_video

Read a video frame from the plugin.


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