summaryrefslogtreecommitdiff
path: root/channels/console_video.h
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-12-29 02:02:03 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-12-29 02:02:03 +0000
commitd6d39dfee941d29727d37f4c1992571f1ae5738b (patch)
treea622efcae49f3bbea2ae0fd10b5518a9679b3de2 /channels/console_video.h
parentf2702ec721dac9a18457a4c6b3f2132d93844ee3 (diff)
Move grabbers definitions to a separate file, vgrabbers.c, so it is easier
to add more entries. This required moving struct grab_desc to the common header, and adding an entry in the Makefile. On passing, cleanup some comments and file headers (some are still missing). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/console_video.h')
-rw-r--r--channels/console_video.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/channels/console_video.h b/channels/console_video.h
index 4a1ef2be1..beea23cb6 100644
--- a/channels/console_video.h
+++ b/channels/console_video.h
@@ -28,10 +28,6 @@
"console {device}"
#else
-#ifdef HAVE_X11
-#include <X11/Xlib.h> /* this should be conditional */
-#endif
-
#include <ffmpeg/avcodec.h>
#ifndef OLD_FFMPEG
#include <ffmpeg/swscale.h> /* requires a recent ffmpeg */
@@ -66,6 +62,19 @@ struct fbuf_t { /* frame buffers, dynamically allocated */
int pix_fmt;
};
+void fbuf_free(struct fbuf_t *);
+
+/* descriptor for a grabber */
+struct grab_desc {
+ const char *name;
+ void *(*open)(const char *name, struct fbuf_t *geom, int fps);
+ struct fbuf_t *(*read)(void *d);
+ void (*move)(void *d, int dx, int dy);
+ void *(*close)(void *d);
+};
+
+extern struct grab_desc *console_grabbers[];
+
struct video_desc; /* opaque type for video support */
struct video_desc *get_video_desc(struct ast_channel *c);