Asterisk - The Open Source Telephony Project  18.5.0
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)
 return the pointer to the video descriptor More...
 
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.

Referenced by console_cmd().

◆ 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.

Referenced by keypad_cfg_read().

◆ SRC_WIN_W

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

Definition at line 46 of file console_video.h.

Referenced by keypad_cfg_read().

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 };

◆ 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 };

Function Documentation

◆ console_video_cli()

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

Definition at line 124 of file console_video.c.

Referenced by console_cmd().

125 {
126  return 1; /* nothing matched */
127 }

◆ console_video_config()

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

Definition at line 129 of file console_video.c.

Referenced by store_config_core().

130 {
131  return 1; /* no configuration */
132 }

◆ console_video_start()

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

Definition at line 134 of file console_video.c.

References ast_log, and LOG_NOTICE.

Referenced by oss_new(), and store_config().

135 {
136  ast_log(LOG_NOTICE, "voice only, console video support not present\n");
137 }
#define ast_log
Definition: astobj2.c:42
#define LOG_NOTICE
Definition: logger.h:263

◆ console_video_uninit()

void console_video_uninit ( struct video_desc *  env)

Definition at line 139 of file console_video.c.

Referenced by oss_hangup().

140 {
141 }

◆ console_write_video()

int console_write_video ( struct ast_channel chan,
struct ast_frame f 
)

Definition at line 119 of file console_video.c.

120 {
121  return 0; /* writing video not supported */
122 }

◆ delete_board()

void delete_board ( struct board *  b)

deallocates memory space for a board

Referenced by keypad_cfg_read().

◆ 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 143 of file console_video.c.

Referenced by store_config().

144 {
145  return 0; /* no gui here */
146 }

◆ get_video_desc()

struct video_desc* get_video_desc ( struct ast_channel c)

return the pointer to the video descriptor

Definition at line 319 of file chan_oss.c.

References ast_channel_tech_pvt(), chan_oss_pvt::env, find_desc(), NULL, and oss_active.

Referenced by oss_new().

320 {
322  return o ? o->env : NULL;
323 }
void * ast_channel_tech_pvt(const struct ast_channel *chan)
static char * oss_active
Definition: chan_oss.c:316
#define NULL
Definition: resample.c:96
descriptor for one of our channels.
Definition: chan_oss.c:252
static struct chan_oss_pvt * find_desc(const char *dev)
returns a pointer to the descriptor with the given name
Definition: chan_oss.c:376
struct video_desc * env
Definition: chan_oss.c:293

◆ move_message_board()

void move_message_board ( struct board *  b,
int  dy 
)

Referenced by keypad_cfg_read().

◆ print_message()

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

Referenced by keypad_cfg_read().

◆ read_message()

const char* read_message ( const struct board *  b)

return the whole text from a board

Referenced by keypad_cfg_read().

◆ reset_board()

int reset_board ( struct board *  b)

reset the board to blank

Referenced by keypad_cfg_read().

Variable Documentation

◆ console_grabbers

struct grab_desc* console_grabbers[]

Referenced by keypad_cfg_read().

◆ console_video_formats

int console_video_formats

Definition at line 148 of file console_video.c.