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

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]

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
   pjmedia_format_id   fmt_id
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

Detailed Description

Detailed codec attributes used in configuring a codec and in querying the capability of codec factories. Default attributes of any codecs could be queried using pjmedia_codec_mgr_get_default_param() and modified using pjmedia_codec_mgr_set_default_param().

Please note that codec parameter also contains SDP specific setting, dec_fmtp and enc_fmtp, which may need to be set appropriately based on the effective setting. See each codec documentation for more detail.


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.

Source format, it's format of encoder input and decoder output.

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
Copyright (C) 2006-2008 Teluu Inc.