dect
/
asterisk
Archived
13
0
Fork 0

formatting cleanup on the header,

normalization of the assignment of descriptor fields.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89530 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
rizzo 2007-11-23 09:03:33 +00:00
parent 5299bba5ce
commit f73d606067
2 changed files with 15 additions and 23 deletions

View File

@ -89,13 +89,13 @@ static int jpeg_write_image(int fd, struct ast_frame *fr)
} }
static struct ast_imager jpeg_format = { static struct ast_imager jpeg_format = {
"jpg", .name = "jpg",
"JPEG (Joint Picture Experts Group)", .desc = "JPEG (Joint Picture Experts Group)",
"jpg|jpeg", .exts = "jpg|jpeg",
AST_FORMAT_JPEG, .format = AST_FORMAT_JPEG,
jpeg_read_image, .read_image = jpeg_read_image,
jpeg_identify, .identify = jpeg_identify,
jpeg_write_image, .write_image = jpeg_write_image,
}; };
static int load_module(void) static int load_module(void)

View File

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