|
|
|
@ -25,22 +25,14 @@
|
|
|
|
|
|
|
|
|
|
/*! \brief structure associated with registering an image format */
|
|
|
|
|
struct ast_imager {
|
|
|
|
|
/*! Name */
|
|
|
|
|
char *name;
|
|
|
|
|
/*! Description */
|
|
|
|
|
char *desc;
|
|
|
|
|
/*! Extension(s) (separated by '|' ) */
|
|
|
|
|
char *exts;
|
|
|
|
|
/*! Image format */
|
|
|
|
|
int format;
|
|
|
|
|
/*! Read an image from a file descriptor */
|
|
|
|
|
struct ast_frame *(*read_image)(int fd, int len);
|
|
|
|
|
/*! Identify if this is that type of file */
|
|
|
|
|
int (*identify)(int fd);
|
|
|
|
|
/*! Returns length written */
|
|
|
|
|
int (*write_image)(int fd, struct ast_frame *frame);
|
|
|
|
|
/*! For linked list */
|
|
|
|
|
AST_LIST_ENTRY(ast_imager) list;
|
|
|
|
|
char *name; /*!< Name */
|
|
|
|
|
char *desc; /*!< Description */
|
|
|
|
|
char *exts; /*!< Extension(s) (separated by '|' ) */
|
|
|
|
|
int format; /*!< Image format */
|
|
|
|
|
struct ast_frame *(*read_image)(int fd, int len); /*!< Read an image from a file descriptor */
|
|
|
|
|
int (*identify)(int fd); /*!< Identify if this is that type of file */
|
|
|
|
|
int (*write_image)(int fd, struct ast_frame *frame); /*!< Returns length written */
|
|
|
|
|
AST_LIST_ENTRY(ast_imager) list; /*!< For linked list */
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|