Mon Mar 20 08:26:05 2006

Asterisk developer's documentation


Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

ast_translator Struct Reference

#include <translate.h>


Data Fields

int cost
void(* destroy )(struct ast_translator_pvt *pvt)
int dstfmt
int(* framein )(struct ast_translator_pvt *pvt, struct ast_frame *in)
ast_frame *(* frameout )(struct ast_translator_pvt *pvt)
char name [80]
ast_translator_pvt *(* newpvt )(void)
ast_translatornext
ast_frame *(* sample )(void)
int srcfmt


Detailed Description

data structure associated with a translator

Definition at line 39 of file translate.h.


Field Documentation

int cost
 

Cost in milliseconds for encoding/decoding 1 second of sound

Definition at line 58 of file translate.h.

Referenced by ast_register_translator(), calc_cost(), and rebuild_matrix().

void(* destroy)(struct ast_translator_pvt *pvt)
 

Destroy translator callback

Referenced by ast_translator_free_path(), and calc_cost().

int dstfmt
 

Destination format

Definition at line 45 of file translate.h.

Referenced by ast_register_translator(), ast_unregister_translator(), and rebuild_matrix().

int(* framein)(struct ast_translator_pvt *pvt, struct ast_frame *in)
 

Input frame callback

Referenced by ast_translate(), and calc_cost().

struct ast_frame*(* frameout)(struct ast_translator_pvt *pvt)
 

Output frame callback

Referenced by calc_cost().

char name[80]
 

Name of translator

Definition at line 41 of file translate.h.

Referenced by ast_register_translator(), ast_unregister_translator(), and calc_cost().

struct ast_translator_pvt*(* newpvt)(void)
 

Private data associated with the translator

Referenced by ast_translator_build_path(), and calc_cost().

struct ast_translator* next
 

For linking, not to be modified by the translator

Definition at line 60 of file translate.h.

Referenced by ast_register_translator(), ast_unregister_translator(), and rebuild_matrix().

struct ast_frame*(* sample)(void)
 

Generate an example frame

Referenced by calc_cost().

int srcfmt
 

Source format

Definition at line 43 of file translate.h.

Referenced by ast_register_translator(), ast_unregister_translator(), and rebuild_matrix().


The documentation for this struct was generated from the following file:
Generated on Mon Mar 20 08:26:05 2006 for Asterisk - the Open Source PBX by  doxygen 1.3.9.1