mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 19:28:53 +00:00
various rearrangements and renaming of console_video stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user