[svn-commits] rizzo: trunk r126310 - /trunk/channels/console_video.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Jun 29 07:59:27 CDT 2008


Author: rizzo
Date: Sun Jun 29 07:59:26 2008
New Revision: 126310

URL: http://svn.digium.com/view/asterisk?view=rev&rev=126310
Log:
add some defines and fields in preparation for the import of
the video source switching support


Modified:
    trunk/channels/console_video.h

Modified: trunk/channels/console_video.h
URL: http://svn.digium.com/view/asterisk/trunk/channels/console_video.h?view=diff&rev=126310&r1=126309&r2=126310
==============================================================================
--- trunk/channels/console_video.h (original)
+++ trunk/channels/console_video.h Sun Jun 29 07:59:26 2008
@@ -43,6 +43,13 @@
 
 #endif	/* HAVE_VIDEO_CONSOLE and others */
 
+#define	SRC_WIN_W	80	/* width of video thumbnails */
+#define	SRC_WIN_H	60	/* height of video thumbnails */
+/* we only support a limited number of video sources in the GUI,
+ * because we need screen estate to switch between them.
+ */
+#define	MAX_VIDEO_SOURCES	9
+
 /*
  * In many places we use buffers to store the raw frames (but not only),
  * so here is a structure to keep all the info. data = NULL means the
@@ -60,6 +67,11 @@
 	int	w;	/* size */ 
 	int	h;
 	int	pix_fmt;
+	/* offsets and size of the copy in Picture-in-Picture mode */
+	int	win_x;
+	int	win_y;
+	int	win_w;
+	int	win_h;
 };
 
 void fbuf_free(struct fbuf_t *);
@@ -103,6 +115,7 @@
 	DRAG_DIALED,	/* dialed number */
 	DRAG_INPUT,	/* input window */
 	DRAG_MESSAGE,	/* message window */
+	DRAG_PIP,	/* picture in picture */
 };
 
 /*! \brief support for drag actions */
@@ -123,5 +136,8 @@
 /*! \brief reset the board to blank */
 int reset_board(struct board *b);
 
+/*! \brief deallocates memory space for a board */
+void delete_board(struct board *b);
+
 #endif /* CONSOLE_VIDEO_H */
 /* end of file */




More information about the svn-commits mailing list