blob: dd2ca91ef28e516b93629b98b8084ee9e1b1e15a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/*
* filter.h -- audio/video filter include file
* Written by Andrew Church <achurch@achurch.org>
*
* This file is part of transcode, a video stream processing tool.
* transcode is free software, distributable under the terms of the GNU
* General Public License (version 2 or later). See the file COPYING
* for details.
*/
#ifndef FILTER_H
#define FILTER_H
#include "framebuffer.h"
/*************************************************************************/
/* Maximum number of filter instances that can be loaded. */
#define MAX_FILTERS 16
/* Maximum length of a filter name, in bytes. */
#define MAX_FILTER_NAME_LEN 32
/* Parameters to tc_filter_list(). */
enum tc_filter_list_enum {
TC_FILTER_LIST_LOADED,
TC_FILTER_LIST_ENABLED,
TC_FILTER_LIST_DISABLED,
};
/* Filter interface functions. */
extern int tc_filter_init(void);
extern void tc_filter_fini(void);
extern void tc_filter_process(frame_list_t *frame);
extern int tc_filter_add(const char *name, const char *options);
extern int tc_filter_find(const char *name);
extern void tc_filter_remove(int id);
extern int tc_filter_enable(int id);
extern int tc_filter_disable(int id);
extern int tc_filter_configure(int id, const char *options);
extern const char *tc_filter_get_conf(int id, const char *option);
extern const char *tc_filter_list(enum tc_filter_list_enum what);
/* Type of the exported module entry point for the old module system, and a
* prototype for tc_filter() for those modules. */
typedef int (*TCFilterOldEntryFunc)(void *ptr, char *options);
extern int tc_filter(frame_list_t *ptr, char *options);
/*************************************************************************/
#endif /* FILTER_H */
/*
* Local variables:
* c-file-style: "stroustrup"
* c-file-offsets: ((case-label . *) (statement-case-intro . *))
* indent-tabs-mode: nil
* End:
*
* vim: expandtab shiftwidth=4:
*/
|