23 #include <gmerlin/plugin.h>
struct gavl_audio_options_s gavl_audio_options_t
struct bg_audio_converter_s bg_audio_converter_t
Audio converter.
Definition: converters.h:44
void bg_audio_converter_destroy(bg_audio_converter_t *cnv)
Destroy an audio converter and free all associated memory.
struct gavl_video_options_s gavl_video_options_t
int bg_audio_converter_init(bg_audio_converter_t *cnv, const gavl_audio_format_t *in_format, const gavl_audio_format_t *out_format)
Initialize an audio converter.
bg_audio_converter_t * bg_audio_converter_create(const gavl_audio_options_t *opt)
Create an audio converter.
int bg_video_converter_init(bg_video_converter_t *cnv, const gavl_video_format_t *in_format, const gavl_video_format_t *out_format)
Initialize a video converter.
void bg_audio_converter_reset(bg_audio_converter_t *cnv)
Reset an audio converter as if no samples have been processed since initialization.
int bg_video_converter_read(void *priv, gavl_video_frame_t *frame, int stream)
Read a video frame from a video converter.
bg_video_converter_t * bg_video_converter_create(const gavl_video_options_t *opt)
Create a video converter.
int bg_audio_converter_read(void *priv, gavl_audio_frame_t *frame, int stream, int num_samples)
Read samples from an audio converter.
void bg_video_converter_connect_input(bg_video_converter_t *cnv, bg_read_video_func_t func, void *priv, int stream)
Set input callback of a video converter.
int(* bg_read_video_func_t)(void *priv, gavl_video_frame_t *frame, int stream)
Generic prototype for reading video.
Definition: plugin.h:90
void bg_video_converter_destroy(bg_video_converter_t *cnv)
Destroy a video converter and free all associated memory.
int(* bg_read_audio_func_t)(void *priv, gavl_audio_frame_t *frame, int stream, int num_samples)
Generic prototype for reading audio.
Definition: plugin.h:75
void bg_video_converter_reset(bg_video_converter_t *cnv)
Reset a video converter as if no samples have been processed since initialization.
struct bg_video_converter_s bg_video_converter_t
Video converter.
Definition: converters.h:50
void bg_audio_converter_connect_input(bg_audio_converter_t *cnv, bg_read_audio_func_t func, void *priv, int stream)
Set input callback of an audio converter.