blob: f08c3671d56693ad48c30c4f5cbd7b2c7ceb0c23 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
/*
*
* $Id: pvrusb2-video.h,v 1.2 2005/11/27 23:01:16 mcisely Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
* Copyright (C) 2004 Aurelien Alleaume <slts@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef __PVRUSB2_VIDEO_H
#define __PVRUSB2_VIDEO_H
/*
This module connects the pvrusb2 driver to the I2C chip level
driver which handles device video processing. This interface is
used internally by the driver; higher level code should only
interact through the interface provided by pvrusb2-hdw.h.
*/
struct pvr2_hdw;
struct pvr2_decoder;
typedef int (*pvr2_decoder_func)(struct pvr2_decoder *);
struct pvr2_decoder_func_table {
pvr2_decoder_func destroy_func;
pvr2_decoder_func set_norm_func;
pvr2_decoder_func set_input_func;
pvr2_decoder_func set_size_func;
pvr2_decoder_func set_audio_func;
pvr2_decoder_func set_bcsh_func;
pvr2_decoder_func is_tuned_func;
pvr2_decoder_func enable_func;
pvr2_decoder_func disable_func;
};
struct pvr2_decoder {
struct pvr2_hdw *hdw;
const struct pvr2_decoder_func_table *func_table;
};
struct pvr2_decoder *pvr2_decoder_create(struct pvr2_hdw *);
void pvr2_decoder_destroy(struct pvr2_decoder *);
int pvr2_decoder_set_norm(struct pvr2_decoder *);
int pvr2_decoder_set_input(struct pvr2_decoder *);
int pvr2_decoder_set_size(struct pvr2_decoder *);
int pvr2_decoder_set_audio(struct pvr2_decoder *);
int pvr2_decoder_set_bcsh(struct pvr2_decoder *);
int pvr2_decoder_is_tuned(struct pvr2_decoder *);
int pvr2_decoder_enable_output(struct pvr2_decoder *);
int pvr2_decoder_disable_output(struct pvr2_decoder *);
#endif /* __PVRUSB2_VIDEO_H */
/*
Stuff for Emacs to see, in order to encourage consistent editing style:
*** Local Variables: ***
*** mode: c ***
*** fill-column: 70 ***
*** tab-width: 8 ***
*** c-basic-offset: 8 ***
*** End: ***
*/
|