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 82 void *(*open)(
const char *
name,
struct fbuf_t *geom,
int fps);
84 void (*move)(
void *
d,
int dx,
int dy);
85 void *(*close)(
void *
d);
Main Channel structure associated with a channel.
int print_message(struct board *b, const char *s)
void fbuf_free(struct fbuf_t *)
void move_message_board(struct board *b, int dy)
int console_video_formats
int console_write_video(struct ast_channel *chan, struct ast_frame *f)
struct grab_desc * console_grabbers[]
const char * read_message(const struct board *b)
return the whole text from a board
struct video_desc * get_video_desc(struct ast_channel *c)
return the pointer to the video descriptor
void console_video_start(struct video_desc *env, struct ast_channel *owner)
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 delete_board(struct board *b)
deallocates memory space for a board
int get_gui_startup(struct video_desc *env)
Data structure associated with a single frame of data.
void console_video_uninit(struct video_desc *env)
int reset_board(struct board *b)
reset the board to blank