BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJMEDIA Reference

codec.h File Reference

Codec framework. More...

Data Structures

struct  pjmedia_codec_info
 
struct  pjmedia_codec_fmtp
 
struct  pjmedia_codec_fmtp::param
 
struct  pjmedia_codec_param
 
struct  pjmedia_codec_op
 
struct  pjmedia_codec
 
struct  pjmedia_codec_factory_op
 
struct  pjmedia_codec_factory
 
struct  pjmedia_codec_desc
 
struct  pjmedia_codec_mgr
 

Macros

#define PJMEDIA_CODEC_MGR_MAX_CODECS   32
 

Typedefs

typedef char pjmedia_codec_id[32]
 
typedef struct pjmedia_codec_default_param pjmedia_codec_default_param
 

Enumerations

enum  pjmedia_rtp_pt {
  PJMEDIA_RTP_PT_PCMU = 0,
  PJMEDIA_RTP_PT_G721 = 2,
  PJMEDIA_RTP_PT_GSM = 3,
  PJMEDIA_RTP_PT_G723 = 4,
  PJMEDIA_RTP_PT_DVI4_8K = 5,
  PJMEDIA_RTP_PT_DVI4_16K = 6,
  PJMEDIA_RTP_PT_LPC = 7,
  PJMEDIA_RTP_PT_PCMA = 8,
  PJMEDIA_RTP_PT_G722 = 9,
  PJMEDIA_RTP_PT_L16_2 = 10,
  PJMEDIA_RTP_PT_L16_1 = 11,
  PJMEDIA_RTP_PT_QCELP = 12,
  PJMEDIA_RTP_PT_CN = 13,
  PJMEDIA_RTP_PT_MPA = 14,
  PJMEDIA_RTP_PT_G728 = 15,
  PJMEDIA_RTP_PT_DVI4_11K = 16,
  PJMEDIA_RTP_PT_DVI4_22K = 17,
  PJMEDIA_RTP_PT_G729 = 18,
  PJMEDIA_RTP_PT_CELB = 25,
  PJMEDIA_RTP_PT_JPEG = 26,
  PJMEDIA_RTP_PT_NV = 28,
  PJMEDIA_RTP_PT_H261 = 31,
  PJMEDIA_RTP_PT_MPV = 32,
  PJMEDIA_RTP_PT_MP2T = 33,
  PJMEDIA_RTP_PT_H263 = 34,
  PJMEDIA_RTP_PT_DYNAMIC = 96
}
 
enum  pjmedia_codec_priority {
  PJMEDIA_CODEC_PRIO_HIGHEST = 255,
  PJMEDIA_CODEC_PRIO_NEXT_HIGHER = 254,
  PJMEDIA_CODEC_PRIO_NORMAL = 128,
  PJMEDIA_CODEC_PRIO_LOWEST = 1,
  PJMEDIA_CODEC_PRIO_DISABLED = 0
}
 

Functions

pjmedia_codec_parampjmedia_codec_param_clone (pj_pool_t *pool, const pjmedia_codec_param *src)
 
pj_status_t pjmedia_codec_mgr_init (pjmedia_codec_mgr *mgr, pj_pool_factory *pf)
 
pj_status_t pjmedia_codec_mgr_destroy (pjmedia_codec_mgr *mgr)
 
pj_status_t pjmedia_codec_mgr_register_factory (pjmedia_codec_mgr *mgr, pjmedia_codec_factory *factory)
 
pj_status_t pjmedia_codec_mgr_unregister_factory (pjmedia_codec_mgr *mgr, pjmedia_codec_factory *factory)
 
pj_status_t pjmedia_codec_mgr_enum_codecs (pjmedia_codec_mgr *mgr, unsigned *count, pjmedia_codec_info info[], unsigned *prio)
 
pj_status_t pjmedia_codec_mgr_get_codec_info (pjmedia_codec_mgr *mgr, unsigned pt, const pjmedia_codec_info **inf)
 
char * pjmedia_codec_info_to_id (const pjmedia_codec_info *info, char *id, unsigned max_len)
 
pj_status_t pjmedia_codec_mgr_find_codecs_by_id (pjmedia_codec_mgr *mgr, const pj_str_t *codec_id, unsigned *count, const pjmedia_codec_info *p_info[], unsigned prio[])
 
pj_status_t pjmedia_codec_mgr_set_codec_priority (pjmedia_codec_mgr *mgr, const pj_str_t *codec_id, pj_uint8_t prio)
 
pj_status_t pjmedia_codec_mgr_get_default_param (pjmedia_codec_mgr *mgr, const pjmedia_codec_info *info, pjmedia_codec_param *param)
 
pj_status_t pjmedia_codec_mgr_set_default_param (pjmedia_codec_mgr *mgr, const pjmedia_codec_info *info, const pjmedia_codec_param *param)
 
pj_status_t pjmedia_codec_mgr_alloc_codec (pjmedia_codec_mgr *mgr, const pjmedia_codec_info *info, pjmedia_codec **p_codec)
 
pj_status_t pjmedia_codec_mgr_dealloc_codec (pjmedia_codec_mgr *mgr, pjmedia_codec *codec)
 
pj_status_t pjmedia_codec_init (pjmedia_codec *codec, pj_pool_t *pool)
 
pj_status_t pjmedia_codec_open (pjmedia_codec *codec, pjmedia_codec_param *param)
 
pj_status_t pjmedia_codec_close (pjmedia_codec *codec)
 
pj_status_t pjmedia_codec_modify (pjmedia_codec *codec, const pjmedia_codec_param *param)
 
pj_status_t pjmedia_codec_parse (pjmedia_codec *codec, void *pkt, pj_size_t pkt_size, const pj_timestamp *timestamp, unsigned *frame_cnt, pjmedia_frame frames[])
 
pj_status_t pjmedia_codec_encode (pjmedia_codec *codec, const struct pjmedia_frame *input, unsigned out_size, struct pjmedia_frame *output)
 
pj_status_t pjmedia_codec_decode (pjmedia_codec *codec, const struct pjmedia_frame *input, unsigned out_size, struct pjmedia_frame *output)
 
pj_status_t pjmedia_codec_recover (pjmedia_codec *codec, unsigned out_size, struct pjmedia_frame *output)
 

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.