00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <gavl/gavl.h>
00023 #include <gmerlin/plugin.h>
00024
00044 typedef struct bg_audio_converter_s bg_audio_converter_t;
00045
00050 typedef struct bg_video_converter_s bg_video_converter_t;
00051
00052
00053
00060 bg_audio_converter_t * bg_audio_converter_create(const gavl_audio_options_t * opt);
00061
00072 int bg_audio_converter_init(bg_audio_converter_t * cnv,
00073 const gavl_audio_format_t * in_format,
00074 const gavl_audio_format_t * out_format);
00075
00083 void bg_audio_converter_connect_input(bg_audio_converter_t * cnv,
00084 bg_read_audio_func_t func, void * priv,
00085 int stream);
00086
00097 int bg_audio_converter_read(void * priv, gavl_audio_frame_t* frame, int stream,
00098 int num_samples);
00099
00104 void bg_audio_converter_destroy(bg_audio_converter_t * cnv);
00105
00112 void bg_audio_converter_reset(bg_audio_converter_t * cnv);
00113
00114
00115
00122 bg_video_converter_t * bg_video_converter_create(const gavl_video_options_t * opt);
00123
00134 int bg_video_converter_init(bg_video_converter_t * cnv,
00135 const gavl_video_format_t * in_format,
00136 const gavl_video_format_t * out_format);
00137
00145 void bg_video_converter_connect_input(bg_video_converter_t * cnv,
00146 bg_read_video_func_t func, void * priv,
00147 int stream);
00148
00158 int bg_video_converter_read(void * priv, gavl_video_frame_t* frame, int stream);
00159
00164 void bg_video_converter_destroy(bg_video_converter_t * cnv);
00165
00172 void bg_video_converter_reset(bg_video_converter_t * cnv);
00173