summaryrefslogtreecommitdiff
path: root/channels/console_video.h
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-12-22 18:28:40 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-12-22 18:28:40 +0000
commit7a1dcff6a6ef7f2ec6cbe51eabcd38fa868b6e38 (patch)
treec31dce4a21f66b05c0900c01dc78670a672d1b8d /channels/console_video.h
parenteb10026dbaee45f359084fcdd8fca23b4072268a (diff)
Build console_video support by linking in, as opposed to including,
console_video.c This will ease the task of splitting console_video.c into its components (V4L and X11 grabbers, various video codecs and packetizers, SDL), as well as ease future extensions (e.g. additional video sources, codecs and rendering engines). For the time being nothing changes for users: video support is off by default, and requires -DHAVE_VIDEO_CONSOLE on the command line to be included (if SDL and FFMPEG are available). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/console_video.h')
-rw-r--r--channels/console_video.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/channels/console_video.h b/channels/console_video.h
new file mode 100644
index 000000000..cb627a197
--- /dev/null
+++ b/channels/console_video.h
@@ -0,0 +1,48 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 2007 Luigi Rizzo
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+/*
+ * Common header for console video support
+ *
+ * $Revision$
+ */
+
+struct video_desc; /* opaque type for video support */
+
+struct video_desc *get_video_desc(struct ast_channel *c);
+
+/* linked by console_video.o */
+int console_write_video(struct ast_channel *chan, struct ast_frame *f);
+extern int console_video_formats;
+int console_video_cli(struct video_desc *env, const char *var, int fd);
+int console_video_config(struct video_desc **penv, const char *var, const char *val);
+void console_video_uninit(struct video_desc *env);
+void console_video_start(struct video_desc *env, struct ast_channel *owner);
+
+#ifdef HAVE_VIDEO_CONSOLE
+#define CONSOLE_VIDEO_CMDS \
+ "console {videodevice|videocodec|sendvideo" \
+ "|video_size|bitrate|fps|qmin" \
+ "|keypad|keypad_mask|keypad_entry" \
+ "|device" \
+ "}"
+
+#else
+#define CONSOLE_VIDEO_CMDS \
+ "console {device}"
+#endif
+
+/* end of file */