gmerlin
converters.h
1 /*****************************************************************
2  * gmerlin - a general purpose multimedia framework and applications
3  *
4  * Copyright (c) 2001 - 2012 Members of the Gmerlin project
5  * gmerlin-general@lists.sourceforge.net
6  * http://gmerlin.sourceforge.net
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  * *****************************************************************/
21 
22 #include <gavl/gavl.h>
23 #include <gmerlin/plugin.h>
24 
44 typedef struct bg_audio_converter_s bg_audio_converter_t;
45 
50 typedef struct bg_video_converter_s bg_video_converter_t;
51 
52 /* Audio */
53 
61 
73  const gavl_audio_format_t * in_format,
74  const gavl_audio_format_t * out_format);
75 
84  bg_read_audio_func_t func, void * priv,
85  int stream);
86 
97 int bg_audio_converter_read(void * priv, gavl_audio_frame_t* frame, int stream,
98  int num_samples);
99 
105 
113 
114 /* Video */
115 
123 
135  const gavl_video_format_t * in_format,
136  const gavl_video_format_t * out_format);
137 
146  bg_read_video_func_t func, void * priv,
147  int stream);
148 
158 int bg_video_converter_read(void * priv, gavl_video_frame_t* frame, int stream);
159 
165 
173