summaryrefslogtreecommitdiff
path: root/channels/console_video.h
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-12-28 22:37:40 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-12-28 22:37:40 +0000
commit14c09c5beaa128510e0f3b036713a161357f085d (patch)
tree9aaa6f9615984eb88d0c51eff4a173946d1a0431 /channels/console_video.h
parentc540b02f6fbb4893cf93ee6ab966ace724f3b650 (diff)
various rearrangements and renaming of console_video stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/console_video.h')
-rw-r--r--channels/console_video.h19
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);