Asterisk - The Open Source Telephony Project GIT-master-7e7a603
Data Structures | Macros | Enumerations | Functions | Variables
console_video.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  drag_info
 support for drag actions More...
 
struct  fbuf_t
 
struct  grab_desc
 

Macros

#define CONSOLE_VIDEO_CMDS    "console {device}"
 
#define MAX_VIDEO_SOURCES   9
 
#define SRC_WIN_H   60 /* height of video thumbnails */
 
#define SRC_WIN_W   80 /* width of video thumbnails */
 

Enumerations

enum  drag_window {
  DRAG_NONE , DRAG_LOCAL , DRAG_REMOTE , DRAG_DIALED ,
  DRAG_INPUT , DRAG_MESSAGE , DRAG_PIP
}
 
enum  kb_output { KO_NONE , KO_INPUT , KO_DIALED , KO_MESSAGE }
 

Functions

int console_video_cli (struct video_desc *env, const char *var, int fd)
 
int console_video_config (struct video_desc **penv, const char *var, const char *val)
 
void console_video_start (struct video_desc *env, struct ast_channel *owner)
 
void console_video_uninit (struct video_desc *env)
 
int console_write_video (struct ast_channel *chan, struct ast_frame *f)
 
void delete_board (struct board *b)
 deallocates memory space for a board More...
 
void fbuf_free (struct fbuf_t *)
 
int get_gui_startup (struct video_desc *env)
 
struct video_desc * get_video_desc (struct ast_channel *c)
 
void move_message_board (struct board *b, int dy)
 
int print_message (struct board *b, const char *s)
 
const char * read_message (const struct board *b)
 return the whole text from a board More...
 
int reset_board (struct board *b)
 reset the board to blank More...
 

Variables

struct grab_descconsole_grabbers []
 
int console_video_formats
 

Macro Definition Documentation

◆ CONSOLE_VIDEO_CMDS

#define CONSOLE_VIDEO_CMDS    "console {device}"

Definition at line 27 of file console_video.h.

◆ MAX_VIDEO_SOURCES

#define MAX_VIDEO_SOURCES   9

Definition at line 51 of file console_video.h.

◆ SRC_WIN_H

#define SRC_WIN_H   60 /* height of video thumbnails */

Definition at line 47 of file console_video.h.

◆ SRC_WIN_W

#define SRC_WIN_W   80 /* width of video thumbnails */

Definition at line 46 of file console_video.h.

Enumeration Type Documentation

◆ drag_window

Enumerator
DRAG_NONE 
DRAG_LOCAL 
DRAG_REMOTE 
DRAG_DIALED 
DRAG_INPUT 
DRAG_MESSAGE 
DRAG_PIP 

Definition at line 112 of file console_video.h.

112 { /* which window are we dragging */
113 DRAG_NONE,
114 DRAG_LOCAL, /* local video */
115 DRAG_REMOTE, /* remote video */
116 DRAG_DIALED, /* dialed number */
117 DRAG_INPUT, /* input window */
118 DRAG_MESSAGE, /* message window */
119 DRAG_PIP, /* picture in picture */
120};
@ DRAG_LOCAL
@ DRAG_INPUT
@ DRAG_PIP
@ DRAG_NONE
@ DRAG_REMOTE
@ DRAG_DIALED
@ DRAG_MESSAGE

◆ kb_output

enum kb_output
Enumerator
KO_NONE 
KO_INPUT 
KO_DIALED 
KO_MESSAGE 

Definition at line 105 of file console_video.h.

105 {
106 KO_NONE,
107 KO_INPUT, /* the local input window */
108 KO_DIALED, /* the 'dialed number' window */
109 KO_MESSAGE, /* the 'message' window */
110};
@ KO_INPUT
@ KO_MESSAGE
@ KO_NONE
@ KO_DIALED

Function Documentation

◆ console_video_cli()

int console_video_cli ( struct video_desc *  env,
const char *  var,
int  fd 
)

Definition at line 130 of file console_video.c.

131{
132 return 1; /* nothing matched */
133}

◆ console_video_config()

int console_video_config ( struct video_desc **  penv,
const char *  var,
const char *  val 
)

Definition at line 135 of file console_video.c.

136{
137 return 1; /* no configuration */
138}

◆ console_video_start()

void console_video_start ( struct video_desc *  env,
struct ast_channel owner 
)

Definition at line 140 of file console_video.c.

141{
142 ast_log(LOG_NOTICE, "voice only, console video support not present\n");
143}
#define ast_log
Definition: astobj2.c:42
#define LOG_NOTICE

References ast_log, and LOG_NOTICE.

◆ console_video_uninit()

void console_video_uninit ( struct video_desc *  env)

Definition at line 145 of file console_video.c.

146{
147}

◆ console_write_video()

int console_write_video ( struct ast_channel chan,
struct ast_frame f 
)

Definition at line 125 of file console_video.c.

126{
127 return 0; /* writing video not supported */
128}

◆ delete_board()

void delete_board ( struct board *  b)

deallocates memory space for a board

◆ fbuf_free()

void fbuf_free ( struct fbuf_t )

Referenced by dec_uninit().

◆ get_gui_startup()

int get_gui_startup ( struct video_desc *  env)

Definition at line 149 of file console_video.c.

150{
151 return 0; /* no gui here */
152}

◆ get_video_desc()

struct video_desc * get_video_desc ( struct ast_channel c)

◆ move_message_board()

void move_message_board ( struct board *  b,
int  dy 
)

◆ print_message()

int print_message ( struct board *  b,
const char *  s 
)

◆ read_message()

const char * read_message ( const struct board *  b)

return the whole text from a board

◆ reset_board()

int reset_board ( struct board *  b)

reset the board to blank

Variable Documentation

◆ console_grabbers

struct grab_desc* console_grabbers[]
extern

◆ console_video_formats

int console_video_formats
extern

Definition at line 154 of file console_video.c.