#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <signal.h>
#include <errno.h>
#include <unistd.h>
#include <asterisk/sched.h>
#include <asterisk/options.h>
#include <asterisk/channel.h>
#include <asterisk/channel_pvt.h>
#include <asterisk/logger.h>
#include <asterisk/file.h>
#include <asterisk/image.h>
#include <asterisk/translate.h>
#include <asterisk/cli.h>
#include "asterisk.h"
#include "astconf.h"
Include dependency graph for image.c:
Go to the source code of this file.
Defines | |
#define | FORMAT "%10s %10s %50s %10s\n" |
#define | FORMAT2 "%10s %10s %50s %10s\n" |
Functions | |
AST_MUTEX_DEFINE_STATIC (listlock) | |
int | ast_image_register (struct ast_imager *img) |
Register image format. | |
void | ast_image_unregister (struct ast_imager *img) |
Unregister an image format. | |
int | ast_supports_images (struct ast_channel *chan) |
Check for image support on a channel. | |
ast_frame * | ast_read_image (char *filename, char *preflang, int format) |
Make an image. | |
int | ast_send_image (struct ast_channel *chan, char *filename) |
Sends an image. | |
int | ast_image_init (void) |
Initialize image stuff. | |
Variables | |
ast_cli_entry | show_images |
|
|
|
|
|
Initialize image stuff. Initializes all the various image stuff. Basically just registers the cli stuff Returns 0 all the time Definition at line 201 of file image.c. References ast_cli_register(), and show_images. Referenced by main().
|
|
Register image format.
Definition at line 38 of file image.c. References ast_mutex_lock, ast_mutex_unlock, ast_verbose(), ast_imager::desc, ast_imager::name, ast_imager::next, option_verbose, and VERBOSE_PREFIX_2.
|
|
Unregister an image format.
Definition at line 49 of file image.c. References ast_mutex_lock, ast_mutex_unlock, ast_verbose(), ast_imager::desc, ast_imager::name, ast_imager::next, option_verbose, and VERBOSE_PREFIX_2.
|
|
|
|
Make an image.
Definition at line 104 of file image.c. References ast_log(), ast_mutex_lock, ast_mutex_unlock, and LOG_WARNING. Referenced by ast_send_image().
|
|
Sends an image.
Definition at line 161 of file image.c. References ast_frfree(), ast_read_image(), ast_channel::language, ast_channel::pvt, and ast_channel_pvt::send_image.
|
|
Check for image support on a channel.
Definition at line 70 of file image.c. References ast_channel::pvt, and ast_channel_pvt::send_image.
|
|
Definition at line 191 of file image.c. Referenced by ast_image_init(). |