|
gmerlin
|
Recorder. More...
#include <plugin.h>
Data Fields | |
| bg_plugin_common_t | common |
| Infos and functions common to all plugin types. More... | |
| void(* | set_callbacks )(void *priv, bg_recorder_callbacks_t *callbacks) |
| Set callbacks. More... | |
| int(* | open )(void *priv, gavl_audio_format_t *audio_format, gavl_video_format_t *video_format) |
| Open plugin. More... | |
| bg_read_audio_func_t | read_audio |
| Read audio samples. More... | |
| bg_read_video_func_t | read_video |
| Read video frame. More... | |
| void(* | close )(void *priv) |
| Close plugin. More... | |
Recorder.
Recording support from hardware devices
| bg_plugin_common_t bg_recorder_plugin_s::common |
Infos and functions common to all plugin types.
| void(* bg_recorder_plugin_s::set_callbacks)(void *priv, bg_recorder_callbacks_t *callbacks) |
Set callbacks.
| priv | The handle returned by the create() method |
| callbacks | Callback structure initialized by the caller before |
Set callback functions, which will be called by the plugin. Defining as well as calling this function is optional. Any of the members of callbacks can be NULL.
| int(* bg_recorder_plugin_s::open)(void *priv, gavl_audio_format_t *audio_format, gavl_video_format_t *video_format) |
Open plugin.
| priv | The handle returned by the create() method |
| format | The desired format |
The format will be changed to the nearest format, which is supported by the plugin. To convert the source format to the output format, use a gavl_audio_converter_t
| bg_read_audio_func_t bg_recorder_plugin_s::read_audio |
Read audio samples.
| bg_read_video_func_t bg_recorder_plugin_s::read_video |
Read video frame.
| void(* bg_recorder_plugin_s::close)(void *priv) |
Close plugin.
| priv | The handle returned by the create() method |
1.8.5