summaryrefslogtreecommitdiff
path: root/v4l2-apps/libv4l2util/libv4l2util.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-02-13 20:13:17 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-02-13 20:13:17 -0200
commitadff0f37dc0f0ab48850eaad267223c634e975a2 (patch)
treec6aa3e259581abeb64eb7590b29a60354ec5a5ee /v4l2-apps/libv4l2util/libv4l2util.h
parente2b4212172d81f17f5e4741766f032d06e83ce4f (diff)
parentf25ebd42bbb82866dfbbba5b7bfc651315fa6416 (diff)
downloadmediapointer-dvb-s2-adff0f37dc0f0ab48850eaad267223c634e975a2.tar.gz
mediapointer-dvb-s2-adff0f37dc0f0ab48850eaad267223c634e975a2.tar.bz2
merge: http://linuxtv.org/hg/~tap/bttv
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l2-apps/libv4l2util/libv4l2util.h')
-rw-r--r--v4l2-apps/libv4l2util/libv4l2util.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/v4l2-apps/libv4l2util/libv4l2util.h b/v4l2-apps/libv4l2util/libv4l2util.h
new file mode 100644
index 000000000..fde7cdc75
--- /dev/null
+++ b/v4l2-apps/libv4l2util/libv4l2util.h
@@ -0,0 +1,45 @@
+/* Copyright (C) 2006 Hans Verkuil <hverkuil@xs4all.nl>
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#ifndef _V4L2UTIL_H_
+#define _V4L2UTIL_H_
+
+/* --------------------------------------------------------------------- */
+
+struct v4l2_channel_list {
+ const char * const name; /* channel name */
+ unsigned freq; /* channel frequency in kHz */
+};
+
+struct v4l2_channel_lists {
+ const char * const name; /* channel list name */
+ const struct v4l2_channel_list * const list;
+ unsigned count; /* number of channels in channel list */
+};
+
+extern const struct v4l2_channel_lists v4l2_channel_lists[];
+
+/* This list is sorted alphabetically on ISO code. The last item is
+ denoted by a NULL pointer for the iso_code. */
+struct v4l2_country_std_map {
+ const char * const iso_code; /* The 2-character upper case ISO-3166 country code */
+ v4l2_std_id std; /* The TV standard(s) in use */
+};
+
+extern const struct v4l2_country_std_map v4l2_country_std_map[];
+
+#endif