|
Data Structures |
struct | ast_codec_pref |
struct | ast_frame |
| Data structure associated with a single frame of data. More...
|
struct | ast_option_header |
Defines |
#define | AST_CONTROL_ANSWER 4 |
#define | AST_CONTROL_BUSY 5 |
#define | AST_CONTROL_CONGESTION 8 |
#define | AST_CONTROL_FLASH 9 |
#define | AST_CONTROL_HANGUP 1 |
#define | AST_CONTROL_HOLD 16 |
#define | AST_CONTROL_OFFHOOK 7 |
#define | AST_CONTROL_OPTION 11 |
#define | AST_CONTROL_PROCEEDING 15 |
#define | AST_CONTROL_PROGRESS 14 |
#define | AST_CONTROL_RADIO_KEY 12 |
#define | AST_CONTROL_RADIO_UNKEY 13 |
#define | AST_CONTROL_RING 2 |
#define | AST_CONTROL_RINGING 3 |
#define | AST_CONTROL_TAKEOFFHOOK 6 |
#define | AST_CONTROL_UNHOLD 17 |
#define | AST_CONTROL_VIDUPDATE 18 |
#define | AST_CONTROL_WINK 10 |
#define | AST_FORMAT_ADPCM (1 << 5) |
#define | AST_FORMAT_ALAW (1 << 3) |
#define | AST_FORMAT_G723_1 (1 << 0) |
#define | AST_FORMAT_G726 (1 << 4) |
#define | AST_FORMAT_G729A (1 << 8) |
#define | AST_FORMAT_GSM (1 << 1) |
#define | AST_FORMAT_H261 (1 << 18) |
#define | AST_FORMAT_H263 (1 << 19) |
#define | AST_FORMAT_H263_PLUS (1 << 20) |
#define | AST_FORMAT_ILBC (1 << 10) |
#define | AST_FORMAT_JPEG (1 << 16) |
#define | AST_FORMAT_LPC10 (1 << 7) |
#define | AST_FORMAT_MAX_AUDIO (1 << 15) |
#define | AST_FORMAT_MAX_VIDEO (1 << 24) |
#define | AST_FORMAT_PNG (1 << 17) |
#define | AST_FORMAT_SLINEAR (1 << 6) |
#define | AST_FORMAT_SPEEX (1 << 9) |
#define | AST_FORMAT_ULAW (1 << 2) |
#define | ast_frame_byteswap_be(fr) do { struct ast_frame *__f = (fr); ast_swapcopy_samples(__f->data, __f->data, __f->samples); } while(0) |
#define | ast_frame_byteswap_le(fr) do { ; } while(0) |
#define | AST_FRAME_CNG 10 |
#define | AST_FRAME_CONTROL 4 |
#define | AST_FRAME_DTMF 1 |
#define | AST_FRAME_HTML 9 |
#define | AST_FRAME_IAX 6 |
#define | AST_FRAME_IMAGE 8 |
#define | AST_FRAME_NULL 5 |
#define | AST_FRAME_T38 11 |
#define | AST_FRAME_TEXT 7 |
#define | AST_FRAME_VIDEO 3 |
#define | AST_FRAME_VOICE 2 |
#define | AST_FRIENDLY_OFFSET 64 |
#define | AST_HTML_BEGIN 4 |
#define | AST_HTML_DATA 2 |
#define | AST_HTML_END 8 |
#define | AST_HTML_LDCOMPLETE 16 |
#define | AST_HTML_LINKREJECT 20 |
#define | AST_HTML_LINKURL 18 |
#define | AST_HTML_NOSUPPORT 17 |
#define | AST_HTML_UNLINK 19 |
#define | AST_HTML_URL 1 |
#define | AST_MALLOCD_DATA (1 << 1) |
#define | AST_MALLOCD_HDR (1 << 0) |
#define | AST_MALLOCD_SRC (1 << 2) |
#define | AST_MIN_OFFSET 32 |
#define | AST_OPTION_AUDIO_MODE 4 |
#define | AST_OPTION_FLAG_ACCEPT 1 |
#define | AST_OPTION_FLAG_ANSWER 5 |
#define | AST_OPTION_FLAG_QUERY 4 |
#define | AST_OPTION_FLAG_REJECT 2 |
#define | AST_OPTION_FLAG_REQUEST 0 |
#define | AST_OPTION_FLAG_WTF 6 |
#define | AST_OPTION_RELAXDTMF 3 |
#define | AST_OPTION_RXGAIN 6 |
#define | AST_OPTION_TDD 2 |
#define | AST_OPTION_TONE_VERIFY 1 |
#define | AST_OPTION_TXGAIN 5 |
#define | ast_smoother_feed(s, f) __ast_smoother_feed(s, f, 0) |
#define | ast_smoother_feed_be(s, f) __ast_smoother_feed(s, f, 1) |
#define | ast_smoother_feed_le(s, f) __ast_smoother_feed(s, f, 0) |
#define | AST_SMOOTHER_FLAG_G729 (1 << 0) |
Functions |
int | __ast_smoother_feed (struct ast_smoother *s, struct ast_frame *f, int swap) |
char * | ast_codec2str (int codec) |
| Get a name from a format Gets a name from a format.
|
int | ast_codec_choose (struct ast_codec_pref *pref, int formats, int find_best) |
| Select the best format according to preference list from supplied options. If "find_best" is non-zero then if nothing is found, the "Best" format of the format list is selected, otherwise 0 is returned.
|
int | ast_codec_get_len (int format, int samples) |
| Returns the number of bytes for the number of samples of the given format.
|
int | ast_codec_get_samples (struct ast_frame *f) |
| Returns the number of samples contained in the frame.
|
int | ast_codec_pref_append (struct ast_codec_pref *pref, int format) |
| Append a codec to a preference list, removing it first if it was already there.
|
void | ast_codec_pref_convert (struct ast_codec_pref *pref, char *buf, size_t size, int right) |
| Shift a codec preference list up or down 65 bytes so that it becomes an ASCII string.
|
int | ast_codec_pref_index (struct ast_codec_pref *pref, int index) |
| Codec located at a particular place in the preference index.
|
void | ast_codec_pref_init (struct ast_codec_pref *pref) |
| Initialize a codec preference to "no preference".
|
void | ast_codec_pref_remove (struct ast_codec_pref *pref, int format) |
| Remove a codec from a preference list.
|
int | ast_codec_pref_string (struct ast_codec_pref *pref, char *buf, size_t size) |
| Dump codec preference list into a string.
|
int | ast_fr_fdhangup (int fd) |
| Sends a hangup to an fd Send a hangup (NULL equivalent) on an fd.
|
ast_frame * | ast_fr_fdread (int fd) |
| Reads a frame from an fd Read a frame from a stream or packet fd, as written by fd_write.
|
int | ast_fr_fdwrite (int fd, struct ast_frame *frame) |
int | ast_frame_adjust_volume (struct ast_frame *f, int adjustment) |
| Adjusts the volume of the audio samples contained in a frame.
|
void | ast_frame_dump (char *name, struct ast_frame *f, char *prefix) |
int | ast_frame_slinear_sum (struct ast_frame *f1, struct ast_frame *f2) |
| Sums two frames of audio samples.
|
ast_frame * | ast_frdup (struct ast_frame *fr) |
| Copies a frame.
|
void | ast_frfree (struct ast_frame *fr) |
| Requests a frame to be allocated Frees a frame.
|
ast_frame * | ast_frisolate (struct ast_frame *fr) |
| Copies a frame.
|
ast_format_list * | ast_get_format_list (size_t *size) |
ast_format_list * | ast_get_format_list_index (int index) |
int | ast_getformatbyname (char *name) |
| Gets a format from a name.
|
char * | ast_getformatname (int format) |
| Get the name of a format.
|
char * | ast_getformatname_multiple (char *buf, size_t size, int format) |
| Get the names of a set of formats.
|
void | ast_parse_allow_disallow (struct ast_codec_pref *pref, int *mask, const char *list, int allowing) |
| Parse an "allow" or "deny" line and update the mask and pref if provided.
|
void | ast_smoother_free (struct ast_smoother *s) |
int | ast_smoother_get_flags (struct ast_smoother *smoother) |
ast_smoother * | ast_smoother_new (int bytes) |
ast_frame * | ast_smoother_read (struct ast_smoother *s) |
void | ast_smoother_reset (struct ast_smoother *s, int bytes) |
void | ast_smoother_set_flags (struct ast_smoother *smoother, int flags) |
void | ast_swapcopy_samples (void *dst, const void *src, int samples) |