pjsip logo pjsip.org
Open source SIP stack and media stack for presence, im/instant messaging, and multimedia communication

HOME

SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port

FAQ

Documentation

Licensing

Download

Development (Trac)

Projects using pjsip

Mailing List

Open Source Links


About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono
<bennylp@pjsip.org>


 

Home --> Documentations --> PJMEDIA Reference

pjmedia_codec_param Struct Reference
[Codec Framework]


Detailed Description

Detailed codec attributes used both to configure a codec and to query the capability of codec factories.

Data Fields

struct {
   unsigned   clock_rate
   unsigned   channel_cnt
   pj_uint32_t   avg_bps
   pj_uint32_t   max_bps
   pj_uint16_t   frm_ptime
   pj_uint16_t   enc_ptime
   pj_uint8_t   pcm_bits_per_sample
   pj_uint8_t   pt
info
struct {
   pj_uint8_t   frm_per_pkt
   unsigned   vad:1
   unsigned   cng:1
   unsigned   penh:1
   unsigned   plc:1
   unsigned   reserved:1
   pjmedia_codec_fmtp   enc_fmtp
   pjmedia_codec_fmtp   dec_fmtp
setting

Field Documentation

Sampling rate in Hz

Channel count.

Average bandwidth in bits/sec

Maximum bandwidth in bits/sec

Decoder frame ptime in msec.

Encoder ptime, or zero if it's equal to decoder ptime.

struct { ... } pjmedia_codec_param::info

The "info" part of codec param describes the capability of the codec, and the value should NOT be changed by application.

Number of frames per packet.

Voice Activity Detector.

Comfort Noise Generator.

Perceptual Enhancement

Packet loss concealment

Reserved, must be zero.

The "setting" part of codec param describes various settings to be applied to the codec. When the codec param is retrieved from the codec or codec factory, the values of these will be filled by the capability of the codec. Any features that are supported by the codec (e.g. vad or plc) will be turned on, so that application can query which capabilities are supported by the codec. Application may change the settings here before instantiating the codec/stream.


The documentation for this struct was generated from the following file:

 


PJMEDIA small footprint Open Source media stack
(C)2003-2008 Benny Prijono