From d6d39dfee941d29727d37f4c1992571f1ae5738b Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Sat, 29 Dec 2007 02:02:03 +0000 Subject: 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 --- channels/console_video.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'channels/console_video.h') 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 /* this should be conditional */ -#endif - #include #ifndef OLD_FFMPEG #include /* 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); -- cgit v1.2.3