1 /* Copyright (C) 2006 Hans Verkuil <hverkuil@xs4all.nl>
2 
3    The libv4l2util Library is free software; you can redistribute it and/or
4    modify it under the terms of the GNU Lesser General Public
5    License as published by the Free Software Foundation; either
6    version 2.1 of the License, or (at your option) any later version.
7 
8    The libv4l2util Library is distributed in the hope that it will be useful,
9    but WITHOUT ANY WARRANTY; without even the implied warranty of
10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11    Lesser General Public License for more details.
12 
13    You should have received a copy of the GNU Lesser General Public
14    License along with the libv4l2util Library; if not, write to the Free
15    Software Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA
16    02110-1335 USA.  */
17 
18 #ifndef _V4L2UTIL_H_
19 #define _V4L2UTIL_H_
20 
21 /* --------------------------------------------------------------------- */
22 
23 struct v4l2_channel_list {
24     const char * const name; /* channel name */
25     unsigned freq; 	     /* channel frequency in kHz */
26 };
27 
28 struct v4l2_channel_lists {
29     const char * const name; /* channel list name */
30     const struct v4l2_channel_list * const list;
31     unsigned count;	     /* number of channels in channel list */
32 };
33 
34 extern const struct v4l2_channel_lists v4l2_channel_lists[];
35 
36 /* This list is sorted alphabetically on ISO code. The last item is
37    denoted by a NULL pointer for the iso_code. */
38 struct v4l2_country_std_map {
39     const char * const iso_code; /* The 2-character upper case ISO-3166 country code */
40     v4l2_std_id std; 		 /* The TV standard(s) in use */
41 };
42 
43 extern const struct v4l2_country_std_map v4l2_country_std_map[];
44 
45 #endif
46