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);
83 struct fbuf_t *(*read)(
void *
d);
84 void (*
move)(
void *
d,
int dx,
int dy);
85 void *(*close)(
void *
d);
void console_video_start(struct video_desc *env, struct ast_channel *owner)
struct video_desc * get_video_desc(struct ast_channel *c)
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
struct grab_desc * console_grabbers[]
void move_message_board(struct board *b, int dy)
const char * read_message(const struct board *b)
return the whole text from a board
int console_video_cli(struct video_desc *env, const char *var, int fd)
int console_video_formats
void fbuf_free(struct fbuf_t *)
int get_gui_startup(struct video_desc *env)
int console_video_config(struct video_desc **penv, const char *var, const char *val)
int reset_board(struct board *b)
reset the board to blank
int print_message(struct board *b, const char *s)
Main Channel structure associated with a channel.
Data structure associated with a single frame of data.
enum drag_window drag_window
void(* move)(void *d, int dx, int dy)