V4L/DVB (6715): ivtv: Remove unnecessary register update
[linux-2.6/verdex.git] / drivers / media / video / pvrusb2 / pvrusb2-std.h
blob07c3993753411522ffd48cc8c4725de399ddec82
1 /*
3 * $Id$
5 * Copyright (C) 2005 Mike Isely <isely@pobox.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __PVRUSB2_STD_H
22 #define __PVRUSB2_STD_H
24 #include <linux/videodev2.h>
26 // Convert string describing one or more video standards into a mask of V4L
27 // standard bits. Return true if conversion succeeds otherwise return
28 // false. String is expected to be of the form: C1-x/y;C2-a/b where C1 and
29 // C2 are color system names (e.g. "PAL", "NTSC") and x, y, a, and b are
30 // modulation schemes (e.g. "M", "B", "G", etc).
31 int pvr2_std_str_to_id(v4l2_std_id *idPtr,const char *bufPtr,
32 unsigned int bufSize);
34 // Convert any arbitrary set of video standard bits into an unambiguous
35 // readable string. Return value is the number of bytes consumed in the
36 // buffer. The formatted string is of a form that can be parsed by our
37 // sibling std_std_to_id() function.
38 unsigned int pvr2_std_id_to_str(char *bufPtr, unsigned int bufSize,
39 v4l2_std_id id);
41 // Create an array of suitable v4l2_standard structures given a bit mask of
42 // video standards to support. The array is allocated from the heap, and
43 // the number of elements is returned in the first argument.
44 struct v4l2_standard *pvr2_std_create_enum(unsigned int *countptr,
45 v4l2_std_id id);
47 // Return mask of which video standard bits are valid
48 v4l2_std_id pvr2_std_get_usable(void);
50 #endif /* __PVRUSB2_STD_H */
53 Stuff for Emacs to see, in order to encourage consistent editing style:
54 *** Local Variables: ***
55 *** mode: c ***
56 *** fill-column: 75 ***
57 *** tab-width: 8 ***
58 *** c-basic-offset: 8 ***
59 *** End: ***