gmerlin
Data Fields
bg_recorder_plugin_s Struct Reference

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...
 

Detailed Description

Recorder.

Recording support from hardware devices

Field Documentation

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.

Parameters
privThe handle returned by the create() method
callbacksCallback 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.

Parameters
privThe handle returned by the create() method
formatThe 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.

Parameters
privThe handle returned by the create() method

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