#include <translate.h>
Data Fields | |
int | datalen |
actual space used in outbuf | |
ast_frame | f |
ast_trans_pvt * | next |
timeval | nextin |
timeval | nextout |
char * | outbuf |
plc_state_t * | plc |
void * | pvt |
int | samples |
ast_translator * | t |
*_framein() routines operate in two ways: 1. some convert on the fly and place the data directly in outbuf; in this case 'samples' and 'datalen' contain the number of samples and number of bytes available in the buffer. In this case we can use a generic *_frameout() routine that simply takes whatever is there and places it into the output frame. 2. others simply store the (unconverted) samples into a working buffer, and leave the conversion task to *_frameout(). In this case, the intermediate buffer must be in the private descriptor, 'datalen' is left to 0, while 'samples' is still updated with the number of samples received.
Definition at line 134 of file translate.h.
int datalen |
actual space used in outbuf
Also, for the sake of ABI compatability, a magic value of -1 in this field means that the pvt has been requested to be destroyed, but is pending destruction until ast_translate_frame_freed() gets called.
Definition at line 145 of file translate.h.
Referenced by adpcmtolin_framein(), alawtolin_framein(), alawtoulaw_framein(), ast_trans_frameout(), destroy(), framein(), g722tolin_framein(), g726aal2tolin_framein(), g726tog726aal2_framein(), g726tolin_framein(), gsmtolin_framein(), ilbctolin_framein(), lintoalaw_framein(), lintog722_framein(), lintog726_framein(), lintog726aal2_framein(), lintoulaw_framein(), lpc10tolin_framein(), speextolin_framein(), ulawtoalaw_framein(), and ulawtolin_framein().
used in frameout
Definition at line 136 of file translate.h.
Referenced by ast_trans_frameout(), destroy(), framein(), lintospeex_frameout(), and zap_frameout().
struct ast_trans_pvt* next |
next in translator chain
Definition at line 149 of file translate.h.
Referenced by ast_translate(), ast_translator_build_path(), and ast_translator_free_path().
struct timeval nextin |
Definition at line 150 of file translate.h.
Referenced by ast_translate(), and ast_translator_build_path().
struct timeval nextout |
Definition at line 151 of file translate.h.
Referenced by ast_translate(), and ast_translator_build_path().
char* outbuf |
the useful portion of the buffer
Definition at line 147 of file translate.h.
Referenced by adpcmtolin_framein(), alawtolin_framein(), alawtoulaw_framein(), ast_trans_frameout(), framein(), g722tolin_framein(), g726aal2tolin_framein(), g726tog726aal2_framein(), g726tolin_framein(), gsmtolin_framein(), ilbctolin_framein(), lintoadpcm_frameout(), lintoalaw_framein(), lintog722_framein(), lintog726_framein(), lintog726aal2_framein(), lintogsm_frameout(), lintoilbc_frameout(), lintolpc10_frameout(), lintoulaw_framein(), lpc10tolin_framein(), speextolin_framein(), ulawtoalaw_framein(), and ulawtolin_framein().
void* pvt |
more private data, if any
Definition at line 146 of file translate.h.
Referenced by adpcmtolin_framein(), ast_translate_frame_freed(), g722tolin_framein(), g722tolin_new(), g726aal2tolin_framein(), g726tolin_framein(), gsm_destroy_stuff(), gsm_new(), gsmtolin_framein(), ilbctolin_framein(), ilbctolin_new(), lintoadpcm_framein(), lintoadpcm_frameout(), lintog722_framein(), lintog722_new(), lintog726_framein(), lintog726_new(), lintog726aal2_framein(), lintogsm_framein(), lintogsm_frameout(), lintoilbc_framein(), lintoilbc_frameout(), lintoilbc_new(), lintolpc10_framein(), lintolpc10_frameout(), lintospeex_destroy(), lintospeex_framein(), lintospeex_frameout(), lintospeex_new(), lpc10_dec_new(), lpc10_destroy(), lpc10_enc_new(), lpc10tolin_framein(), newpvt(), speextolin_destroy(), speextolin_framein(), speextolin_new(), zap_destroy(), zap_framein(), zap_frameout(), and zap_translate().
int samples |
samples available in outbuf
Definition at line 137 of file translate.h.
Referenced by adpcmtolin_framein(), alawtolin_framein(), alawtoulaw_framein(), ast_trans_frameout(), framein(), g722tolin_framein(), g726aal2tolin_framein(), g726tog726aal2_framein(), g726tolin_framein(), gsmtolin_framein(), ilbctolin_framein(), lintoadpcm_framein(), lintoadpcm_frameout(), lintoalaw_framein(), lintog722_framein(), lintog726_framein(), lintog726aal2_framein(), lintogsm_framein(), lintogsm_frameout(), lintoilbc_framein(), lintoilbc_frameout(), lintolpc10_framein(), lintolpc10_frameout(), lintospeex_framein(), lintospeex_frameout(), lintoulaw_framein(), lpc10tolin_framein(), speextolin_framein(), ulawtoalaw_framein(), ulawtolin_framein(), zap_framein(), and zap_frameout().
struct ast_translator* t |
Definition at line 135 of file translate.h.
Referenced by ast_trans_frameout(), ast_translator_build_path(), destroy(), framein(), and zap_new().