gmerlin
Main Page
Related Pages
Modules
Data Structures
Files
File List
include
gmerlin
filters.h
1
/*****************************************************************
2
* gmerlin - a general purpose multimedia framework and applications
3
*
4
* Copyright (c) 2001 - 2011 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
23
#include <
gavl/gavl.h
>
24
#include <gmerlin/bggavl.h>
25
#include <gmerlin/plugin.h>
26
27
28
41
typedef
struct
bg_audio_filter_chain_s
bg_audio_filter_chain_t
;
42
49
typedef
struct
bg_video_filter_chain_s
bg_video_filter_chain_t
;
50
51
/* Audio */
52
60
bg_audio_filter_chain_t
*
61
bg_audio_filter_chain_create
(
const
bg_gavl_audio_options_t * opt,
62
bg_plugin_registry_t
* plugin_reg);
63
72
const
bg_parameter_info_t
*
73
bg_audio_filter_chain_get_parameters
(
bg_audio_filter_chain_t
* ch);
74
85
void
bg_audio_filter_chain_set_parameter
(
void
* data,
86
const
char
* name,
87
const
bg_parameter_value_t
* val);
88
98
int
bg_audio_filter_chain_need_restart
(
bg_audio_filter_chain_t
* ch);
99
100
101
111
void
bg_audio_filter_chain_connect_input
(
bg_audio_filter_chain_t
* ch,
112
bg_read_audio_func_t
func,
113
void
* priv,
114
int
stream);
115
122
int
bg_audio_filter_chain_init
(
bg_audio_filter_chain_t
* ch,
123
const
gavl_audio_format_t
* in_format,
124
gavl_audio_format_t
* out_format);
125
131
void
bg_audio_filter_chain_set_input_format
(
bg_audio_filter_chain_t
* ch,
132
const
gavl_audio_format_t
* in_format);
133
143
int
bg_audio_filter_chain_set_out_format
(
bg_audio_filter_chain_t
* ch,
144
const
gavl_audio_format_t
* out_format);
145
154
int
bg_audio_filter_chain_read
(
void
* priv,
gavl_audio_frame_t
* frame,
155
int
stream,
156
int
num_samples);
157
162
void
bg_audio_filter_chain_destroy
(
bg_audio_filter_chain_t
* ch);
163
171
void
bg_audio_filter_chain_lock
(
bg_audio_filter_chain_t
* ch);
172
180
void
bg_audio_filter_chain_unlock
(
bg_audio_filter_chain_t
* ch);
181
188
void
bg_audio_filter_chain_reset
(
bg_audio_filter_chain_t
* ch);
189
190
/* Video */
191
199
bg_video_filter_chain_t
*
200
bg_video_filter_chain_create
(
const
bg_gavl_video_options_t * opt,
201
bg_plugin_registry_t
* plugin_reg);
202
211
const
bg_parameter_info_t
*
212
bg_video_filter_chain_get_parameters
(
bg_video_filter_chain_t
* ch);
213
225
void
bg_video_filter_chain_set_parameter
(
void
* data,
const
char
* name,
226
const
bg_parameter_value_t
* val);
227
237
int
bg_video_filter_chain_need_restart
(
bg_video_filter_chain_t
* ch);
238
239
249
void
bg_video_filter_chain_connect_input
(
bg_video_filter_chain_t
* ch,
250
bg_read_video_func_t
func,
251
void
* priv,
int
stream);
252
259
int
bg_video_filter_chain_init
(
bg_video_filter_chain_t
* ch,
260
const
gavl_video_format_t
* in_format,
261
gavl_video_format_t
* out_format);
262
268
void
bg_video_filter_chain_set_input_format
(
bg_video_filter_chain_t
* ch,
269
const
gavl_video_format_t
* in_format);
270
279
int
bg_video_filter_chain_set_out_format
(
bg_video_filter_chain_t
* ch,
280
const
gavl_video_format_t
* out_format);
281
282
290
int
bg_video_filter_chain_read
(
void
* priv,
gavl_video_frame_t
* frame,
291
int
stream);
292
297
void
bg_video_filter_chain_destroy
(
bg_video_filter_chain_t
* ch);
298
306
void
bg_video_filter_chain_lock
(
bg_video_filter_chain_t
* ch);
307
315
void
bg_video_filter_chain_unlock
(
bg_video_filter_chain_t
* ch);
316
323
void
bg_video_filter_chain_reset
(
bg_video_filter_chain_t
* ch);
324
Generated on Wed Jun 13 2012 07:15:45 for gmerlin by
1.8.1