aboutsummaryrefslogtreecommitdiffstats
path: root/channels/console_video.h
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-29 02:02:03 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-29 02:02:03 +0000
commitd35a061a766327933561c0d59605d9c589b05986 (patch)
treea622efcae49f3bbea2ae0fd10b5518a9679b3de2 /channels/console_video.h
parent2f8edd72dbfcb682f134596b3db853e185d4a5ed (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: http://svn.digium.com/svn/asterisk/trunk@95313 f38db490-d61c-443f-a65b-d21fe96a405b
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);