Go to the source code of this file.
Data Structures | |
struct | ast_imager |
structure associated with registering an image format More... | |
Functions | |
int | ast_image_init (void) |
int | ast_image_register (struct ast_imager *imgdrv) |
void | ast_image_unregister (struct ast_imager *imgdrv) |
ast_frame * | ast_read_image (char *filename, char *preflang, int format) |
int | ast_send_image (struct ast_channel *chan, char *filename) |
int | ast_supports_images (struct ast_channel *chan) |
Definition in file image.h.
int ast_image_init | ( | void | ) |
Initializes all the various image stuff. Basically just registers the cli stuff Returns 0 all the time
int ast_image_register | ( | struct ast_imager * | imgdrv | ) |
imgdrv | Populated ast_imager structure with info to register Registers an image format Returns 0 regardless |
void ast_image_unregister | ( | struct ast_imager * | imgdrv | ) |
imgdrv | pointer to the ast_imager structure you wish to unregister Unregisters the image format passed in Returns nothing |
struct ast_frame* ast_read_image | ( | char * | filename, | |
char * | preflang, | |||
int | format | |||
) |
filename | filename of image to prepare | |
preflang | preferred language to get the image...? | |
format | the format of the file Make an image from a filename ??? No estoy positivo Returns an ast_frame on success, NULL on failure |
int ast_send_image | ( | struct ast_channel * | chan, | |
char * | filename | |||
) |
chan | channel to send image on | |
filename | filename of image to send (minus extension) Sends an image on the given channel. Returns 0 on success, -1 on error |
int ast_supports_images | ( | struct ast_channel * | chan | ) |
chan | channel to check Checks the channel to see if it supports the transmission of images Returns non-zero if image transmission is supported |