Asterisk - The Open Source Telephony Project
21.4.1
|
Default structure for translators, with the basic fields and buffers, all allocated as part of the same chunk of memory. The buffer is preceded by AST_FRIENDLY_OFFSET bytes in front of the user portion. 'buf' points right after this space. More...
#include <translate.h>
Data Fields | |
int | datalen |
actual space used in outbuf | |
struct ast_format * | explicit_dst |
struct ast_frame | f |
int | interleaved_stereo |
struct ast_trans_pvt * | next |
struct timeval | nextin |
struct timeval | nextout |
union { | |
char * c | |
int16_t * i16 | |
unsigned char * uc | |
uint8_t * ui8 | |
} | outbuf |
plc_state_t * | plc |
void * | pvt |
int | samples |
struct ast_translator * | t |
Default structure for translators, with the basic fields and buffers, all allocated as part of the same chunk of memory. The buffer is preceded by AST_FRIENDLY_OFFSET bytes in front of the user portion. 'buf' points right after this space.
*_framein() routines operate in two ways:
Definition at line 213 of file translate.h.
char* c |
the useful portion of the buffer
Definition at line 221 of file translate.h.
Referenced by ast_trans_frameout(), lintoadpcm_frameout(), lintoalaw_framein(), lintog726_framein(), lintog726aal2_framein(), lintogsm_frameout(), lintospeex_frameout(), lintoulaw_framein(), and newpvt().
struct ast_format* explicit_dst |
If a translation path using a format with attributes requires the output to be a specific set of attributes, this variable will be set describing those attributes to the translator. Otherwise, the translator must choose a set of format attributes for the destination that preserves the quality of the audio in the best way possible. For example with the Opus Codec, explicit_dst contains an attribute which describes whether both parties want to do forward-error correction (FEC).
Definition at line 237 of file translate.h.
Referenced by newpvt().
struct ast_frame f |
used in frameout. This frame holds a f.subclass.format ref.
Definition at line 215 of file translate.h.
Referenced by ast_trans_frameout(), fax_gateway_framehook(), framein(), lintoilbc_frameout(), and newpvt().
int interleaved_stereo |
indicates if samples are in interleaved order, for stereo lin
Definition at line 238 of file translate.h.
struct ast_trans_pvt* next |
next in translator chain
Definition at line 227 of file translate.h.
Referenced by ast_translate(), ast_translate_path_to_str(), ast_translator_build_path(), and ast_translator_free_path().
plc_state_t* plc |
optional plc pointer
Definition at line 226 of file translate.h.
void* pvt |
more private data, if any
Definition at line 219 of file translate.h.
Referenced by adpcmtolin_framein(), codec2tolin_framein(), g722tolin_new(), g726aal2tolin_framein(), g726tolin_framein(), gsmtolin_framein(), ilbctolin_framein(), lintoadpcm_framein(), lintoadpcm_frameout(), lintocodec2_framein(), lintocodec2_frameout(), lintog722_new(), lintog726_framein(), lintog726_new(), lintog726aal2_framein(), lintogsm_framein(), lintogsm_frameout(), lintoilbc_framein(), lintoilbc_frameout(), lintospeex_feedback(), lintospeex_framein(), lintospeex_frameout(), newpvt(), and speextolin_framein().
int samples |
samples available in outbuf
Definition at line 216 of file translate.h.
Referenced by adpcmtolin_framein(), alawtolin_framein(), alawtoulaw_framein(), ast_trans_frameout(), codec2tolin_framein(), framein(), g726aal2tolin_framein(), g726tolin_framein(), gsmtolin_framein(), ilbctolin_framein(), lintoadpcm_framein(), lintoadpcm_frameout(), lintoalaw_framein(), lintocodec2_framein(), lintocodec2_frameout(), lintog726_framein(), lintog726aal2_framein(), lintogsm_framein(), lintogsm_frameout(), lintoilbc_framein(), lintoilbc_frameout(), lintospeex_framein(), lintospeex_frameout(), lintoulaw_framein(), speextolin_framein(), ulawtoalaw_framein(), and ulawtolin_framein().
unsigned char* uc |
the useful portion of the buffer
Definition at line 222 of file translate.h.
Referenced by alawtoulaw_framein(), lintocodec2_frameout(), and ulawtoalaw_framein().