diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-28 22:37:40 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-28 22:37:40 +0000 |
commit | 956da6a580185e91414a135cdf8e19c26174bbc7 (patch) | |
tree | 9aaa6f9615984eb88d0c51eff4a173946d1a0431 /channels/console_video.h | |
parent | 55fa664279eb0cf0e6ac792e89353581d04de546 (diff) |
various rearrangements and renaming of console_video stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95262 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/console_video.h')
-rw-r--r-- | channels/console_video.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/channels/console_video.h b/channels/console_video.h index d370679a8..4a1ef2be1 100644 --- a/channels/console_video.h +++ b/channels/console_video.h @@ -47,6 +47,25 @@ #endif /* HAVE_VIDEO_CONSOLE and others */ +/* + * In many places we use buffers to store the raw frames (but not only), + * so here is a structure to keep all the info. data = NULL means the + * structure is not initialized, so the other fields are invalid. + * size = 0 means the buffer is not malloc'ed so we don't have to free it. + */ +struct fbuf_t { /* frame buffers, dynamically allocated */ + uint8_t *data; /* memory, malloced if size > 0, just reference + * otherwise */ + int size; /* total size in bytes */ + int used; /* space used so far */ + int ebit; /* bits to ignore at the end */ + int x; /* origin, if necessary */ + int y; + int w; /* size */ + int h; + int pix_fmt; +}; + struct video_desc; /* opaque type for video support */ struct video_desc *get_video_desc(struct ast_channel *c); |