WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

pjmedia_converter_factory_op Struct Reference

#include <converter.h>

Data Fields

pj_status_t(* create_converter )(pjmedia_converter_factory *cf, pj_pool_t *pool, const pjmedia_conversion_param *prm, pjmedia_converter **p_cv)
 
void(* destroy_factory )(pjmedia_converter_factory *cf)
 

Detailed Description

Converter factory operation.

Forward declaration of factory operation structure

Field Documentation

◆ create_converter

pj_status_t(* pjmedia_converter_factory_op::create_converter) (pjmedia_converter_factory *cf, pj_pool_t *pool, const pjmedia_conversion_param *prm, pjmedia_converter **p_cv)

This function creates a converter with the specified conversion format, if such format is supported.

Parameters
cfThe converter factory.
poolPool to allocate memory from.
prmConversion parameter.
p_cvPointer to hold the created converter instance.
Returns
PJ_SUCCESS if converter has been created successfully.

◆ destroy_factory

void(* pjmedia_converter_factory_op::destroy_factory) (pjmedia_converter_factory *cf)

Destroy the factory.

Parameters
cfThe converter factory.

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

 


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