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_factory_op Struct Reference
[Codec Framework]

Data Fields

pj_status_t(* test_alloc )(pjmedia_codec_factory *factory, const pjmedia_codec_info *info)
pj_status_t(* default_attr )(pjmedia_codec_factory *factory, const pjmedia_codec_info *info, pjmedia_codec_param *attr)
pj_status_t(* enum_info )(pjmedia_codec_factory *factory, unsigned *count, pjmedia_codec_info codecs[])
pj_status_t(* alloc_codec )(pjmedia_codec_factory *factory, const pjmedia_codec_info *info, pjmedia_codec **p_codec)
pj_status_t(* dealloc_codec )(pjmedia_codec_factory *factory, pjmedia_codec *codec)

Detailed Description

This structure describes operations that must be supported by codec factories.


Field Documentation

Check whether the factory can create codec with the specified codec info.

Parameters:
factory The codec factory.
info The codec info.
Returns:
PJ_SUCCESS if this factory is able to create an instance of codec with the specified info.

Create default attributes for the specified codec ID. This function can be called by application to get the capability of the codec.

Parameters:
factory The codec factory.
info The codec info.
attr The attribute to be initialized.
Returns:
PJ_SUCCESS if success.

Enumerate supported codecs that can be created using this factory.

Parameters:
factory The codec factory.
count On input, specifies the number of elements in the array. On output, the value will be set to the number of elements that have been initialized by this function.
info The codec info array, which contents will be initialized upon return.
Returns:
PJ_SUCCESS on success.

Create one instance of the codec with the specified codec info.

Parameters:
factory The codec factory.
info The codec info.
p_codec Pointer to receive the codec instance.
Returns:
PJ_SUCCESS on success.

This function is called by codec manager to return a particular instance of codec back to the codec factory.

Parameters:
factory The codec factory.
codec The codec instance to be returned.
Returns:
PJ_SUCCESS on success.

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

 


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