From f03a2b158a2b9555ab7abb3b8aa61fedce988b66 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo <rizzo@icir.org> Date: Sun, 29 Jun 2008 12:59:26 +0000 Subject: [PATCH] add some defines and fields in preparation for the import of the video source switching support git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@126310 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/console_video.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/channels/console_video.h b/channels/console_video.h index f426a54639..79240e871f 100644 --- a/channels/console_video.h +++ b/channels/console_video.h @@ -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 @@ struct fbuf_t { /* frame buffers, dynamically allocated */ 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 @@ enum drag_window { /* which window are we dragging */ 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 @@ const char *read_message(const struct board *b); /*! \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 */ -- GitLab