Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

ast_translator Struct Reference

data structure associated with a translator More...

#include <translate.h>

Collaboration diagram for ast_translator:

Collaboration graph
[legend]

Data Fields

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

Detailed Description

data structure associated with a translator

Definition at line 29 of file translate.h.


Field Documentation

int cost
 

Cost in milliseconds for encoding/decoding 1 second of sound

Definition at line 48 of file translate.h.

Referenced by ast_register_translator().

void(* destroy)(struct ast_translator_pvt *pvt)
 

Destroy translator callback

Referenced by ast_translator_free_path().

int dstfmt
 

Destination format

Definition at line 35 of file translate.h.

Referenced by ast_register_translator(), and ast_unregister_translator().

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

Input frame callback

Referenced by ast_translate().

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

Output frame callback

char name[80]
 

Name of translator

Definition at line 31 of file translate.h.

Referenced by ast_register_translator(), and ast_unregister_translator().

struct ast_translator_pvt*(* new)(void)
 

Private data associated with the translator

Referenced by ast_translator_build_path().

struct ast_translator* next
 

For linking, not to be modified by the translator

Definition at line 50 of file translate.h.

Referenced by ast_register_translator(), and ast_unregister_translator().

struct ast_frame*(* sample)(void)
 

Generate an example frame

int srcfmt
 

Source format

Definition at line 33 of file translate.h.

Referenced by ast_register_translator(), and ast_unregister_translator().


The documentation for this struct was generated from the following file:
Generated on Sat Jun 12 16:41:57 2004 for Asterisk by doxygen 1.3.7