23 #ifndef CONSOLE_VIDEO_H
24 #define CONSOLE_VIDEO_H
26 #if !defined(HAVE_VIDEO_CONSOLE) || !defined(HAVE_FFMPEG)
27 #define CONSOLE_VIDEO_CMDS \
31 #include <ffmpeg/avcodec.h>
33 #include <ffmpeg/swscale.h>
36 #define CONSOLE_VIDEO_CMDS \
37 "console {videodevice|videocodec" \
38 "|video_size|bitrate|fps|qmin" \
41 "|device|startgui|stopgui" \
51 #define MAX_VIDEO_SOURCES 9
77 void fbuf_free(
struct fbuf_t *);
82 void *(*open)(
const char *name,
struct fbuf_t *geom,
int fps);
83 struct fbuf_t *(*read)(
void *d);
84 void (*move)(
void *d,
int dx,
int dy);
85 void *(*close)(
void *d);
88 extern struct grab_desc *console_grabbers[];
91 struct video_desc *get_video_desc(
struct ast_channel *c);
95 extern int console_video_formats;
96 int console_video_cli(
struct video_desc *
env,
const char *var,
int fd);
97 int console_video_config(
struct video_desc **penv,
const char *var,
const char *
val);
98 void console_video_uninit(
struct video_desc *
env);
99 void console_video_start(
struct video_desc *
env,
struct ast_channel *owner);
100 int get_gui_startup(
struct video_desc*
env);
126 enum drag_window drag_window;
131 void move_message_board(
struct board *b,
int dy);
132 int print_message(
struct board *b,
const char *s);
135 const char *read_message(
const struct board *b);
138 int reset_board(
struct board *b);
141 void delete_board(
struct board *b);
Main Channel structure associated with a channel.
Data structure associated with a single frame of data.