sipxmedialib  Version 3.3
plgspeex.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2007-2008 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2007-2008 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // $$
10 
11 // Author: Sergey Kostanbaev <Sergey DOT Kostanbaev AT sipez DOT com>
12 
13 #ifndef _plgspeex_h_
14 #define _plgspeex_h_
15 
16 #include <mp/codecs/PlgDefsV1.h>
17 
18 void* universal_speex_init(const char* fmt, int isDecoder, int samplerate,
19  struct MppCodecFmtpInfoV1_2* pCodecInfo);
20 
21 int universal_speex_free(void* handle, int isDecoder);
22 
23 int universal_speex_get_packet_samples(void *handle,
24  const uint8_t *pPacketData,
25  unsigned packetSize,
26  unsigned *pNumSamples,
27  const struct RtpHeader* pRtpHeader);
28 
29 int universal_speex_decode(void* handle, const void* pCodedData,
30  unsigned cbCodedPacketSize, void* pAudioBuffer,
31  unsigned cbBufferSize, unsigned *pcbDecodedSize,
32  const struct RtpHeader* pRtpHeader);
33 
34 int universal_speex_encode(void* handle, const void* pAudioBuffer,
35  unsigned cbAudioSamples, int* rSamplesConsumed,
36  void* pCodedData, unsigned cbMaxCodedData,
37  int* pcbCodedSize, unsigned* pbSendNow);
38 
39 #endif
40 
41 
42 
void * universal_speex_init(const char *fmt, int isDecoder, int samplerate, struct MppCodecFmtpInfoV1_2 *pCodecInfo)
int universal_speex_get_packet_samples(void *handle, const uint8_t *pPacketData, unsigned packetSize, unsigned *pNumSamples, const struct RtpHeader *pRtpHeader)
int universal_speex_free(void *handle, int isDecoder)
RTP header as described in RFC 3550.
Definition: RtpHeader.h:43
Information about concrete codec instance (i.e. with selected fmtp).
Definition: PlgDefsV1.h:202
int universal_speex_encode(void *handle, const void *pAudioBuffer, unsigned cbAudioSamples, int *rSamplesConsumed, void *pCodedData, unsigned cbMaxCodedData, int *pcbCodedSize, unsigned *pbSendNow)
int universal_speex_decode(void *handle, const void *pCodedData, unsigned cbCodedPacketSize, void *pAudioBuffer, unsigned cbBufferSize, unsigned *pcbDecodedSize, const struct RtpHeader *pRtpHeader)