opalplugin.h
Go to the documentation of this file.
/*
* opalplugins.h
*
* OPAL codec plugins handler
*
* Open Phone Abstraction Library (OPAL)
* Formally known as the Open H323 project.
*
* Copyright (C) 2004-2011 Post Increment
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Revision: 28048 $
* $Author: rjongbloed $
* $Date: 2012-07-17 22:41:57 -0500 (Tue, 17 Jul 2012) $
*/
#ifndef OPAL_CODEC_OPALPLUGIN_H
#define OPAL_CODEC_OPALPLUGIN_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _CRT_NONSTDC_NO_DEPRECATE
#define _CRT_NONSTDC_NO_DEPRECATE 1
#endif
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS 1
#endif
#include <time.h>
#ifdef _MSC_VER
#pragma warning(disable:4201)
#endif
#ifdef _WIN32
# ifdef PLUGIN_CODEC_DLL_EXPORTS
# define PLUGIN_CODEC_DLL_API __declspec(dllexport)
# else
# define PLUGIN_CODEC_DLL_API __declspec(dllimport)
# endif
#if !defined(strcasecmp) && !defined(_WIN32_WCE)
#define strcasecmp stricmp
#endif
#else
#define PLUGIN_CODEC_DLL_API
#endif
#ifdef PWLIB_PLUGIN_API_VERSION
#undef PWLIB_PLUGIN_API_VERSION
#endif
#define PWLIB_PLUGIN_API_VERSION 1
#define PLUGIN_CODEC_VERSION_FIRST 1 // initial version
#define PLUGIN_CODEC_VERSION_WIDEBAND 2 // added wideband
#define PLUGIN_CODEC_VERSION_VIDEO 3 // added video
#define PLUGIN_CODEC_VERSION_FAX 4 // added fax
#define PLUGIN_CODEC_VERSION_OPTIONS 5 // added options handling
#define PLUGIN_CODEC_VERSION_INTERSECT 6 // added media option intersection merge functionality
#define PLUGIN_CODEC_VERSION_H245_DEF_GEN_PARAM 7 // added suppression of H.245 generic parameters via default
#define PLUGIN_CODEC_VERSION PLUGIN_CODEC_VERSION_INTERSECT // Always latest version
#define PLUGIN_CODEC_API_VER_FN PWLibPlugin_GetAPIVersion
#define PLUGIN_CODEC_API_VER_FN_STR "PWLibPlugin_GetAPIVersion"
#define PLUGIN_CODEC_GET_CODEC_FN OpalCodecPlugin_GetCodecs
#define PLUGIN_CODEC_GET_CODEC_FN_STR "OpalCodecPlugin_GetCodecs"
#define PLUGIN_CODEC_API_VER_FN_DECLARE \
PLUGIN_CODEC_DLL_API unsigned int PLUGIN_CODEC_API_VER_FN() \
{ return PWLIB_PLUGIN_API_VERSION; }
enum {
PluginCodec_License_None = 0,
PluginCodec_Licence_None = PluginCodec_License_None, // allow for old code with misspelled constant
PluginCodec_License_GPL = 1,
PluginCodec_License_MPL = 2,
PluginCodec_License_Freeware = 3,
PluginCodec_License_ResearchAndDevelopmentUseOnly = 4,
PluginCodec_License_BSD = 5,
PluginCodec_License_LGPL = 6,
PluginCodec_License_NoRoyalties = 0x7f,
// any license codes above here require royalty payments
PluginCodec_License_RoyaltiesRequired = 0x80
};
struct PluginCodec_information {
// start of version 1 fields
time_t timestamp; // codec creation time and date - obtain with command: date -u "+%c = %s"
const char * sourceAuthor; // source code author
const char * sourceVersion; // source code version
const char * sourceEmail; // source code email contact information
const char * sourceURL; // source code web site
const char * sourceCopyright; // source code copyright
const char * sourceLicense; // source code license
unsigned char sourceLicenseCode; // source code license
const char * codecDescription; // codec description
const char * codecAuthor; // codec author
const char * codecVersion; // codec version
const char * codecEmail; // codec email contact information
const char * codecURL; // codec web site
const char * codecCopyright; // codec copyright information
const char * codecLicense; // codec license
unsigned short codecLicenseCode; // codec license code
// end of version 1 fields
};
enum PluginCodec_Flags {
PluginCodec_MediaTypeMask = 0x000f,
PluginCodec_MediaTypeAudio = 0x0000,
PluginCodec_MediaTypeVideo = 0x0001,
PluginCodec_MediaTypeAudioStreamed = 0x0002,
PluginCodec_MediaTypeFax = 0x0003,
PluginCodec_InputTypeMask = 0x0010,
PluginCodec_InputTypeRaw = 0x0000, // Note video is always RTP
PluginCodec_InputTypeRTP = 0x0010,
PluginCodec_OutputTypeMask = 0x0020,
PluginCodec_OutputTypeRaw = 0x0000, // Note video is always RTP
PluginCodec_OutputTypeRTP = 0x0020,
PluginCodec_RTPTypeMask = 0x0040,
PluginCodec_RTPTypeDynamic = 0x0000,
PluginCodec_RTPTypeExplicit = 0x0040,
PluginCodec_RTPSharedMask = 0x0080,
PluginCodec_RTPTypeNotShared = 0x0000,
PluginCodec_RTPTypeShared = 0x0080,
PluginCodec_DecodeSilenceMask = 0x0100,
PluginCodec_NoDecodeSilence = 0x0000,
PluginCodec_DecodeSilence = 0x0100,
PluginCodec_EncodeSilenceMask = 0x0200,
PluginCodec_NoEncodeSilence = 0x0000,
PluginCodec_EncodeSilence = 0x0200,
PluginCodec_MediaExtensionMask = 0x0400,
PluginCodec_MediaTypeExtVideo = 0x0400,
PluginCodec_ComfortNoiseMask = 0x0800,
PluginCodec_ComfortNoise = 0x0800,
PluginCodec_EmptyPayloadMask = 0x1000,
PluginCodec_EmptyPayload = 0x1000,
PluginCodec_OtherPayloadMask = 0x2000,
PluginCodec_OtherPayload = 0x2000,
PluginCodec_BitsPerSamplePos = 12,
PluginCodec_BitsPerSampleMask = 0xf000,
PluginCodec_ChannelsPos = 16,
PluginCodec_ChannelsMask = 0x003f0000
};
#define PluginCodec_SetChannels(n) (((n-1)<<PluginCodec_ChannelsPos)&PluginCodec_ChannelsMask)
enum PluginCodec_CoderFlags {
PluginCodec_CoderSilenceFrame = 1, // request audio codec to create silence frame
PluginCodec_CoderForceIFrame = 2 // request video codec to force I frame
};
enum PluginCodec_ReturnCoderFlags {
PluginCodec_ReturnCoderLastFrame = 1, // indicates when video codec returns last data for frame
PluginCodec_ReturnCoderIFrame = 2, // indicates when video returns I frame
PluginCodec_ReturnCoderRequestIFrame = 4, // indicates when video decoder request I frame for resync
PluginCodec_ReturnCoderBufferTooSmall = 8 // indicates when output buffer is not large enough to receive
// the data, another call to get_output_data_size is required
};
struct PluginCodec_Definition;
// Control function names
#define PLUGINCODEC_CONTROL_VALID_FOR_PROTOCOL "valid_for_protocol"
#define PLUGINCODEC_CONTROL_GET_CODEC_OPTIONS "get_codec_options"
#define PLUGINCODEC_CONTROL_FREE_CODEC_OPTIONS "free_codec_options"
#define PLUGINCODEC_CONTROL_GET_OUTPUT_DATA_SIZE "get_output_data_size"
#define PLUGINCODEC_CONTROL_SET_CODEC_OPTIONS "set_codec_options"
#define PLUGINCODEC_CONTROL_TO_NORMALISED_OPTIONS "to_normalised_options"
#define PLUGINCODEC_CONTROL_TO_CUSTOMISED_OPTIONS "to_customised_options"
#define PLUGINCODEC_CONTROL_SET_INSTANCE_ID "set_instance_id"
#define PLUGINCODEC_CONTROL_SET_LOG_FUNCTION "set_log_function"
#define PLUGINCODEC_CONTROL_GET_STATISTICS "get_statistics"
#define PLUGINCODEC_CONTROL_TERMINATE_CODEC "terminate_codec"
/* Log function, plug in gets a pointer to this function which allows
it to use the standard OPAL logging system. The function returns 0 if
no logging was performed due to the log level. Note if log == NULL
then this return state is all that happens, so this may be executed
first to prevent lengthy logs that would not result in any output. */
typedef int (*PluginCodec_LogFunction)(unsigned level,
const char * file,
unsigned line,
const char * section,
const char * log);
struct PluginCodec_ControlDefn {
const char * name;
int (*control)(const struct PluginCodec_Definition * codec, void * context,
const char * name, void * parm, unsigned * parmLen);
};
enum PluginCodec_OptionTypes {
PluginCodec_StringOption,
PluginCodec_BoolOption,
PluginCodec_IntegerOption,
PluginCodec_RealOption,
PluginCodec_EnumOption,
PluginCodec_OctetsOption,
PluginCodec_NumOptionTypes,
};
enum PluginCodec_OptionMerge {
PluginCodec_NoMerge,
PluginCodec_MinMerge,
PluginCodec_MaxMerge,
PluginCodec_EqualMerge,
PluginCodec_NotEqualMerge,
PluginCodec_AlwaysMerge,
PluginCodec_CustomMerge,
PluginCodec_IntersectionMerge,
PluginCodec_AndMerge = PluginCodec_MinMerge,
PluginCodec_OrMerge = PluginCodec_MaxMerge
};
#define PluginCodec_H245_Collapsing 0x40000000
#define PluginCodec_H245_NonCollapsing 0x20000000
#define PluginCodec_H245_Unsigned32 0x10000000
#define PluginCodec_H245_BooleanArray 0x08000000
#define PluginCodec_H245_TCS 0x04000000
#define PluginCodec_H245_OLC 0x02000000
#define PluginCodec_H245_ReqMode 0x01000000
#define PluginCodec_H245_OrdinalMask 0x0000ffff
#define PluginCodec_H245_PositionMask 0x00ff0000
#define PluginCodec_H245_PositionShift 16
typedef int (*PluginCodec_MergeFunction)(char ** result, const char * dest, const char * src);
typedef void (*PluginCodec_FreeFunction)(char * string);
struct PluginCodec_Option {
// start of version 4 fields
enum PluginCodec_OptionTypes m_type;
const char * m_name;
unsigned m_readOnly;
enum PluginCodec_OptionMerge m_merge;
const char * m_value;
const char * m_FMTPName;
const char * m_FMTPDefault;
int m_H245Generic;
const char * m_minimum;
const char * m_maximum;
PluginCodec_MergeFunction m_mergeFunction; // Used if m_merge==PluginCodec_CustomMerge
PluginCodec_FreeFunction m_freeFunction;
const char * m_H245Default;
};
// Normalised option names
#define PLUGINCODEC_OPTION_NEEDS_JITTER "Needs Jitter"
#define PLUGINCODEC_OPTION_CLOCK_RATE "Clock Rate"
#define PLUGINCODEC_OPTION_CHANNELS "Channels"
#define PLUGINCODEC_OPTION_FRAME_TIME "Frame Time"
#define PLUGINCODEC_OPTION_MAX_FRAME_SIZE "Max Frame Size"
#define PLUGINCODEC_OPTION_MAX_TX_PACKET_SIZE "Max Tx Packet Size" /* Really max PAYLOAD size */
#define PLUGINCODEC_OPTION_MAX_BIT_RATE "Max Bit Rate"
#define PLUGINCODEC_OPTION_TARGET_BIT_RATE "Target Bit Rate"
#define PLUGINCODEC_OPTION_RATE_CONTROL_PERIOD "Rate Control Period"
#define PLUGINCODEC_OPTION_RX_FRAMES_PER_PACKET "Rx Frames Per Packet"
#define PLUGINCODEC_OPTION_TX_FRAMES_PER_PACKET "Tx Frames Per Packet"
#define PLUGINCODEC_OPTION_FRAME_WIDTH "Frame Width"
#define PLUGINCODEC_OPTION_FRAME_HEIGHT "Frame Height"
#define PLUGINCODEC_OPTION_MIN_RX_FRAME_WIDTH "Min Rx Frame Width"
#define PLUGINCODEC_OPTION_MIN_RX_FRAME_HEIGHT "Min Rx Frame Height"
#define PLUGINCODEC_OPTION_MAX_RX_FRAME_WIDTH "Max Rx Frame Width"
#define PLUGINCODEC_OPTION_MAX_RX_FRAME_HEIGHT "Max Rx Frame Height"
#define PLUGINCODEC_OPTION_TEMPORAL_SPATIAL_TRADE_OFF "Temporal Spatial Trade Off"
#define PLUGINCODEC_OPTION_TX_KEY_FRAME_PERIOD "Tx Key Frame Period"
#define PLUGINCODEC_OPTION_PROTOCOL "Protocol"
#define PLUGINCODEC_OPTION_PROTOCOL_H323 "H.323"
#define PLUGINCODEC_OPTION_PROTOCOL_SIP "SIP"
// Full definition of the codec
struct PluginCodec_Definition {
unsigned int version; // codec structure version
// start of version 1 fields
struct PluginCodec_information * info; // license information
unsigned int flags; // b0-3: 0 = audio, 1 = video
// b4: 0 = raw input, 1 = RTP input
// b5: 0 = raw output, 1 = RTP output
// b6: 0 = dynamic RTP, 1 = explicit RTP
// b7: 0 = no share RTP, 1 = share RTP
const char * descr; // text decription
const char * sourceFormat; // source format
const char * destFormat; // destination format
const void * userData; // user data value
unsigned int sampleRate; // samples per second
unsigned int bitsPerSec; // raw bits per second
unsigned int usPerFrame; // microseconds per frame
union _parm {
struct _audio {
unsigned int samplesPerFrame; // audio: samples per frame
unsigned int bytesPerFrame; // audio: max bytes per frame
unsigned int recommendedFramesPerPacket; // audio: recommended number of frames per packet
unsigned int maxFramesPerPacket; // audio: maximum number of frames per packet
} audio;
struct _video {
unsigned int maxFrameWidth; // video: frame width
unsigned int maxFrameHeight; // video: frame height
unsigned int recommendedFrameRate; // video: recommended frame rate
unsigned int maxFrameRate; // video: max frame rate
} video;
} parm;
unsigned char rtpPayload; // IANA RTP payload code (if defined)
const char * sdpFormat; // SDP format string (or NULL, if no SDP format)
void * (*createCodec)(const struct PluginCodec_Definition * codec); // create codec
void (*destroyCodec) (const struct PluginCodec_Definition * codec, void * context); // destroy codec
int (*codecFunction) (const struct PluginCodec_Definition * codec, void * context, // do codec function
const void * from, unsigned * fromLen,
void * to, unsigned * toLen,
unsigned int * flag);
struct PluginCodec_ControlDefn * codecControls;
// H323 specific fields
unsigned char h323CapabilityType;
const void * h323CapabilityData;
// end of version 1 fields
// NOTE!!!!! Due to an error in judgement, you cannot add ANY more fields
// to this structure without an API version change!!!!
};
typedef struct PluginCodec_Definition * (* PluginCodec_GetCodecFunction)(unsigned int *, unsigned int);
typedef unsigned (* PluginCodec_GetAPIVersionFunction)();
#define PLUGINCODEC_RAW_AUDIO "L16"
#define PLUGINCODEC_RAW_VIDEO "YUV420P"
#define PLUGINCODEC_CODEC_PAIR(MediaFormat, \
PayloadName, \
Description, \
SampleRate, \
BitsPerSecond, \
FrameTime, \
p1,p2,p3,p4, \
PayloadType, \
H323type, \
H323data, \
CreateEncoder, \
DestroyEncoder, \
EncodeMedia, \
CreateDecoder, \
DestroyDecoder, \
DecodeMedia, \
ControlsTable, \
Flags, \
RawFormat \
) \
{ \
PLUGIN_CODEC_VERSION, &MyLicenseInfo, Flags, Description, RawFormat, MediaFormat, NULL, \
SampleRate, BitsPerSecond, FrameTime, {{ p1,p2,p3,p4 }}, PayloadType, PayloadName, \
CreateEncoder, DestroyEncoder, EncodeMedia, ControlsTable, H323type, H323data \
}, \
{ \
PLUGIN_CODEC_VERSION, &MyLicenseInfo, Flags, Description, MediaFormat, RawFormat, NULL, \
SampleRate, BitsPerSecond, FrameTime, {{ p1,p2,p3,p4 }}, PayloadType, PayloadName, \
CreateDecoder, DestroyDecoder, DecodeMedia, ControlsTable, H323type, H323data \
}
#define PLUGINCODEC_AUDIO_CODEC(MediaFormat, \
PayloadName, \
Description, \
SampleRate, \
BitsPerSecond, \
FrameTime, \
SamplesPerFrame, \
BytesPerFrame, \
RecFramesPerPacket, \
MaxFramesPerPacket, \
RtpFlags, \
PayloadType, \
H323type, \
H323data, \
CreateEncoder, \
DestroyEncoder, \
EncodeAudio, \
CreateDecoder, \
DestroyDecoder, \
DecodeAudio, \
ControlsTable \
) \
PLUGINCODEC_CODEC_PAIR(MediaFormat, \
PayloadName, \
Description, \
SampleRate, \
BitsPerSecond, \
FrameTime, \
SamplesPerFrame, \
BytesPerFrame, \
RecFramesPerPacket, \
MaxFramesPerPacket, \
PayloadType, \
H323type, \
H323data, \
CreateEncoder, \
DestroyEncoder, \
EncodeAudio, \
CreateDecoder, \
DestroyDecoder, \
DecodeAudio, \
ControlsTable, \
PluginCodec_MediaTypeAudio | /* audio codec */ \
PluginCodec_InputTypeRaw | /* raw input data */ \
PluginCodec_OutputTypeRaw | /* raw output data */ \
(RtpFlags), \
PLUGINCODEC_RAW_AUDIO)
#define PLUGINCODEC_ONE_AUDIO_CODEC(MediaFormat, \
PayloadName, \
Description, \
SampleRate, \
BitsPerSecond, \
FrameTime, \
SamplesPerFrame, \
BytesPerFrame, \
RecFramesPerPacket, \
MaxFramesPerPacket, \
RtpFlags, \
PayloadType, \
H323type, \
H323data \
) \
static struct PluginCodec_Definition CodecDefinitionTable[] = { \
PLUGINCODEC_AUDIO_CODEC(MediaFormat, \
PayloadName, \
Description, \
SampleRate, \
BitsPerSecond, \
FrameTime, \
SamplesPerFrame, \
BytesPerFrame, \
RecFramesPerPacket, \
MaxFramesPerPacket, \
RtpFlags, \
PayloadType, \
H323type, \
H323data, \
MyCreateEncoder, \
MyDestroyEncoder, \
MyEncodeAudio, \
MyCreateDecoder, \
MyDestroyDecoder, \
MyDecodeAudio, \
MyControlsTable \
) \
}
#define PLUGINCODEC_VIDEO_CODEC(MediaFormat, \
PayloadName, \
Description, \
BitsPerSecond, \
MaxWidth, \
MaxHeight, \
RtpFlags, \
PayloadType, \
H323type, \
H323data, \
CreateEncoder, \
DestroyEncoder, \
EncodeVideo, \
CreateDecoder, \
DestroyDecoder, \
DecodeVideo, \
ControlsTable \
) \
PLUGINCODEC_CODEC_PAIR(MediaFormat, \
PayloadName, \
Description, \
SampleRate, \
BitsPerSecond, \
90000, \
BitsPerSecond, \
100000, \
MaxWidth, \
MaxHeight, \
0,30, \
PayloadType, \
H323type, \
H323data, \
CreateEncoder, \
DestroyEncoder, \
EncodeVideo, \
CreateDecoder, \
DestroyDecoder, \
DecodeVideo, \
ControlsTable, \
PluginCodec_MediaTypeVideo | /* video codec */ \
PluginCodec_InputTypeRRP | /* RTP input data */ \
PluginCodec_OutputTypeRRP | /* RTP output data */ \
(RtpFlags), \
PLUGINCODEC_RAW_VIDEO)
#define PLUGINCODEC_ONE_VIDEO_CODEC(MediaFormat, \
PayloadName, \
Description, \
BitsPerSecond, \
MaxWidth, \
MaxHeight, \
RtpFlags, \
PayloadType, \
H323type, \
H323data \
) \
static struct PluginCodec_Definition CodecDefinitionTable[] = { \
PLUGINCODEC_VIDEO_CODEC(MediaFormat, \
PayloadName, \
Description, \
BitsPerSecond, \
MaxWidth, \
MaxHeight, \
RtpFlags, \
PayloadType, \
H323type, \
H323data, \
CreateEncoder, \
DestroyEncoder, \
EncodeAudio, \
CreateDecoder, \
DestroyDecoder, \
DecodeAudio, \
ControlsTable \
) \
}
//
// H.323 specific values
//
struct PluginCodec_H323CapabilityExtension {
unsigned int index;
void * data;
unsigned dataLength;
};
struct PluginCodec_H323NonStandardCodecData {
const char * objectId;
unsigned char t35CountryCode;
unsigned char t35Extension;
unsigned short manufacturerCode;
const unsigned char * data;
unsigned int dataLength;
int (*capabilityMatchFunction)(struct PluginCodec_H323NonStandardCodecData *);
};
struct PluginCodec_H323GenericParameterDefinition
{
/* The following used to be a simple integer for the collapsing flag in
version 3 and earlier. We hope that all those implementations just used
zero and one (a good bet) and thus the below bit fields will be backward
compatible, putting the parameter in all three PDU types.
*/
#ifndef SOLARIS
struct {
#endif
int collapsing:1; /* boolean */
int excludeTCS:1;
int excludeOLC:1;
int excludeReqMode:1;
int readOnly:1;
#ifndef SOLARIS
};
#endif
unsigned int id;
enum PluginCodec_H323GenericParameterType {
/* these need to be in the same order as the choices in
H245_ParameterValue::Choices, as the value is just cast to that type
*/
PluginCodec_GenericParameter_Logical = 0,
PluginCodec_GenericParameter_BooleanArray,
PluginCodec_GenericParameter_UnsignedMin,
PluginCodec_GenericParameter_UnsignedMax,
PluginCodec_GenericParameter_Unsigned32Min,
PluginCodec_GenericParameter_Unsigned32Max,
PluginCodec_GenericParameter_OctetString,
PluginCodec_GenericParameter_GenericParameter,
PluginCodec_GenericParameter_logical = 0,
PluginCodec_GenericParameter_booleanArray,
PluginCodec_GenericParameter_unsignedMin,
PluginCodec_GenericParameter_unsignedMax,
PluginCodec_GenericParameter_unsigned32Min,
PluginCodec_GenericParameter_unsigned32Max,
PluginCodec_GenericParameter_octetString,
PluginCodec_GenericParameter_genericParameter
} type;
union {
unsigned long integer;
const char * octetstring;
struct PluginCodec_H323GenericParameterDefinition *genericparameter;
} value;
};
struct PluginCodec_H323GenericCodecData
{
// some cunning structures & lists, and associated logic in
// H323CodecPluginGenericAudioCapability::H323CodecPluginGenericAudioCapability()
const char * standardIdentifier;
unsigned int maxBitRate; // Zero means use value from OpalMediaFormat
/* parameters; these are the parameters which are set in the
'TerminalCapabilitySet' and 'OpenLogicalChannel' requests */
unsigned int nParameters;
/* an array of nParameters parameter definitions */
const struct PluginCodec_H323GenericParameterDefinition *params;
};
struct PluginCodec_H323AudioGSMData {
int comfortNoise:1;
int scrambled:1;
};
struct PluginCodec_H323AudioG7231AnnexC {
unsigned char maxAl_sduAudioFrames;
int silenceSuppression:1;
int highRateMode0:6; // INTEGER (27..78), -- units octets
int highRateMode1:6; // INTEGER (27..78), -- units octets
int lowRateMode0:6; // INTEGER (23..66), -- units octets
int lowRateMode1:6; // INTEGER (23..66), -- units octets
int sidMode0:4; // INTEGER (6..17), -- units octets
int sidMode1:4; // INTEGER (6..17), -- units octets
};
enum {
PluginCodec_H323Codec_undefined, // must be zero, so empty struct is undefined
PluginCodec_H323Codec_programmed, // H323ProgrammedCapability
PluginCodec_H323Codec_nonStandard, // H323NonStandardData
PluginCodec_H323Codec_generic, // H323GenericCodecData
// audio codecs
PluginCodec_H323AudioCodec_g711Alaw_64k, // int
PluginCodec_H323AudioCodec_g711Alaw_56k, // int
PluginCodec_H323AudioCodec_g711Ulaw_64k, // int
PluginCodec_H323AudioCodec_g711Ulaw_56k, // int
PluginCodec_H323AudioCodec_g722_64k, // int
PluginCodec_H323AudioCodec_g722_56k, // int
PluginCodec_H323AudioCodec_g722_48k, // int
PluginCodec_H323AudioCodec_g7231, // H323AudioG7231Data
PluginCodec_H323AudioCodec_g728, // int
PluginCodec_H323AudioCodec_g729, // int
PluginCodec_H323AudioCodec_g729AnnexA, // int
PluginCodec_H323AudioCodec_is11172, // not yet implemented
PluginCodec_H323AudioCodec_is13818Audio, // not yet implemented
PluginCodec_H323AudioCodec_g729wAnnexB, // int
PluginCodec_H323AudioCodec_g729AnnexAwAnnexB, // int
PluginCodec_H323AudioCodec_g7231AnnexC, // H323AudioG7231AnnexC
PluginCodec_H323AudioCodec_gsmFullRate, // H323AudioGSMData
PluginCodec_H323AudioCodec_gsmHalfRate, // H323AudioGSMData
PluginCodec_H323AudioCodec_gsmEnhancedFullRate, // H323AudioGSMData
PluginCodec_H323AudioCodec_g729Extensions, // not yet implemented
// video codecs
PluginCodec_H323VideoCodec_h261, // implemented
PluginCodec_H323VideoCodec_h262, // not yet implemented
PluginCodec_H323VideoCodec_h263, // implemented
PluginCodec_H323VideoCodec_is11172, // not yet implemented
// other capabilities
PluginCodec_H323VideoCodec_Extended, // implemented (for use with H.239)
PluginCodec_H323T38Codec, // not yet implemented
// special codes
PluginCodec_H323Codec_NoH323 = 0xff, // used for SIP-only codecs
};
//
// Generic Codec Standard Identifiers
//
// Audio Capabilities
// AMR (as defined in H.245v13 Annex I)
#define OpalPluginCodec_Identifer_AMR "0.0.8.245.1.1.1"
// AMR-NB\WB (as defined in H.245v13 Annex R)
#define OpalPluginCodec_Identifer_AMR_NB "0.0.8.245.1.1.9"
#define OpalPluginCodec_Identifer_AMR_WB "0.0.8.245.1.1.10"
// G.722.1
#define OpalPluginCodec_Identifer_G7221 "0.0.7.7221.1.0"
#define OpalPluginCodec_Identifer_G7221ext "0.0.7.7221.1.1.0"
// G.722.2 (aka AMR-WB)
#define OpalPluginCodec_Identifer_G7222 "0.0.7.7222.1.0"
// iLBC (as defined in H.245v13 Annex S)
#define OpalPluginCodec_Identifer_iLBC "0.0.8.245.1.1.11"
// Video Capabilities
// H264 (as defined in H.241)
#define OpalPluginCodec_Identifer_H264_Aligned "0.0.8.241.0.0.0.0"
#define OpalPluginCodec_Identifer_H264_NonInterleaved "0.0.8.241.0.0.0.1"
#define OpalPluginCodec_Identifer_H264_Interleaved "0.0.8.241.0.0.0.2"
#define OpalPluginCodec_Identifer_H264_Generic "0.0.8.241.0.0.1"
// ISO/IEC 14496-2 MPEG4 part 2 (as defined in H.245v13 Annex E)
#define OpalPluginCodec_Identifer_MPEG4 "0.0.8.245.1.0.0"
//
// Predefined options for H.323 codecs
//
#define PLUGINCODEC_SQCIF_MPI "SQCIF MPI"
#define PLUGINCODEC_QCIF_MPI "QCIF MPI"
#define PLUGINCODEC_CIF_MPI "CIF MPI"
#define PLUGINCODEC_CIF4_MPI "CIF4 MPI"
#define PLUGINCODEC_CIF16_MPI "CIF16 MPI"
#define PLUGINCODEC_CUSTOM_MPI "Custom MPI"
#define PLUGINCODEC_MPI_DISABLED 33
#define PLUGINCODEC_MEDIA_PACKETIZATION "Media Packetization"
#define PLUGINCODEC_MEDIA_PACKETIZATIONS "Media Packetizations"
#define H261_ANNEX_D "Annex D - Still Image Transmit"
#define H263_ANNEX_D "Annex D - Unrestricted Motion Vector"
#define H263_ANNEX_F "Annex F - Advanced Prediction"
#define H263_ANNEX_I "Annex I - Advanced INTRA Coding"
#define H263_ANNEX_J "Annex J - Deblocking Filter"
#define H263_ANNEX_K "Annex K - Slice Structure"
#define H263_ANNEX_N "Annex N - Reference Picture Selection"
#define H263_ANNEX_S "Annex S - Alternative INTER VLC"
#define H263_ANNEX_T "Annex T - Modified Quantization"
#ifndef STRINGIZE
#define __INTERNAL_STRINGIZE__(v) #v
#define STRINGIZE(v) __INTERNAL_STRINGIZE__(v)
#endif
//
// RTP specific definitions
//
#define PluginCodec_RTP_MaxPacketSize (1518-14-4-8-20-16) // Max Ethernet packet (1518 bytes) minus 802.3/CRC, 802.3, IP, UDP headers
#define PluginCodec_RTP_MinHeaderSize (12)
#define PluginCodec_RTP_MaxPayloadSize (PluginCodec_RTP_MaxPacketSize - PluginCodec_RTP_MinHeaderSize)
#define PluginCodec_RTP_GetWORD(ptr, off) ((((unsigned char*)(ptr))[off] << 8) | ((unsigned char*)(ptr))[off+1])
#define PluginCodec_RTP_GetDWORD(ptr, off) ((((unsigned char*)(ptr))[off ] << 24)|\
(((unsigned char*)(ptr))[off+1] << 16)|\
(((unsigned char*)(ptr))[off+2] << 8 )|\
((unsigned char*)(ptr))[off+3])
#define PluginCodec_RTP_SetWORD(ptr, off, val) ((((unsigned char*)(ptr))[off ] = (unsigned char)((val) >> 8 )),\
(((unsigned char*)(ptr))[off+1] = (unsigned char) (val) ))
#define PluginCodec_RTP_SetDWORD(ptr, off, val) ((((unsigned char*)(ptr))[off ] = (unsigned char)((val) >> 24)),\
(((unsigned char*)(ptr))[off+1] = (unsigned char)((val) >> 16)),\
(((unsigned char*)(ptr))[off+2] = (unsigned char)((val) >> 8 )),\
(((unsigned char*)(ptr))[off+3] = (unsigned char) (val) ))
#define PluginCodec_RTP_GetCSRCHdrLength(ptr) ((((unsigned char*)(ptr))[0] & 0x0f)*4 + PluginCodec_RTP_MinHeaderSize)
#define PluginCodec_RTP_GetExtHdrLength(ptr) ((((unsigned char*)(ptr))[0] & 0x10) ? (PluginCodec_RTP_GetWORD(ptr, PluginCodec_RTP_GetCSRCHdrLength(ptr)+2)*4+4) : 0)
#define PluginCodec_RTP_GetHeaderLength(ptr) (PluginCodec_RTP_GetCSRCHdrLength(ptr) + PluginCodec_RTP_GetExtHdrLength(ptr))
#define PluginCodec_RTP_GetPayloadPtr(ptr) ((unsigned char*)(ptr) + PluginCodec_RTP_GetHeaderLength(ptr))
#define PluginCodec_RTP_GetPayloadType(ptr) (((unsigned char*)(ptr))[1] & 0x7f)
#define PluginCodec_RTP_SetPayloadType(ptr, type) (((unsigned char*)(ptr))[1] = (unsigned char)((((unsigned char*)(ptr))[1] & 0x80) | (type & 0x7f)))
#define PluginCodec_RTP_GetMarker(ptr) ((((unsigned char*)(ptr))[1] & 0x80) != 0)
#define PluginCodec_RTP_SetMarker(ptr, mark) (((unsigned char*)(ptr))[1] = (unsigned char)((((unsigned char*)(ptr))[1] & 0x7f) | (mark != 0 ? 0x80 : 0)))
#define PluginCodec_RTP_GetTimestamp(ptr) PluginCodec_RTP_GetDWORD(ptr, 4)
#define PluginCodec_RTP_SetTimestamp(ptr, ts) PluginCodec_RTP_SetDWORD(ptr, 4, ts)
#define PluginCodec_RTP_GetSequenceNumber(ptr) PluginCodec_RTP_GetWORD(ptr, 2)
#define PluginCodec_RTP_SetSequenceNumber(ptr, sn) PluginCodec_RTP_SetWORD(ptr, 2, sn)
#define PluginCodec_RTP_GetSSRC(ptr) PluginCodec_RTP_GetDWORD(ptr, 8)
#define PluginCodec_RTP_SetSSRC(ptr, ssrc) PluginCodec_RTP_SetDWORD(ptr, 8, ssrc)
#define PluginCodec_RTP_SetExtended(ptr, type, sz) ((((unsigned char*)(ptr))[0] |= 0x10), \
PluginCodec_RTP_SetWORD(ptr, PluginCodec_RTP_GetCSRCHdrLength(ptr), type), \
PluginCodec_RTP_SetWORD(ptr, PluginCodec_RTP_GetCSRCHdrLength(ptr)+2, sz))
//
// video specific definitions
//
struct PluginCodec_Video_FrameHeader {
unsigned int x;
unsigned int y;
unsigned int width;
unsigned int height;
};
#ifdef __cplusplus
};
inline unsigned char * OPAL_VIDEO_FRAME_DATA_PTR(struct PluginCodec_Video_FrameHeader * base)
{ return (((unsigned char *)base) + sizeof(PluginCodec_Video_FrameHeader)); }
inline unsigned char * OPAL_VIDEO_FRAME_DATA_PTR(const PluginCodec_Video_FrameHeader * base)
{ return (((unsigned char *)base) + sizeof(PluginCodec_Video_FrameHeader)); }
extern "C" {
#endif
#define PLUGIN_CODEC_VIDEO_SET_FRAME_SIZE_FN "set_frame_size" // argument is struct PluginCodec_VideoSetFrameInfo
struct PluginCodec_Video_SetFrameInfo {
int width;
int height;
};
//
// experimental definitions for statically linking codecs
//
#ifdef OPAL_STATIC_CODEC
# undef PLUGIN_CODEC_DLL_API
# define PLUGIN_CODEC_DLL_API static
# define PLUGIN_CODEC_IMPLEMENT(name) \
unsigned int Opal_StaticCodec_##name##_GetAPIVersion() \
{ return PWLIB_PLUGIN_API_VERSION; } \
static struct PluginCodec_Definition * PLUGIN_CODEC_GET_CODEC_FN(unsigned * count, unsigned /*version*/); \
struct PluginCodec_Definition * Opal_StaticCodec_##name##_GetCodecs(unsigned * p1, unsigned p2) \
{ return PLUGIN_CODEC_GET_CODEC_FN(p1,p2); } \
# define PLUGIN_CODEC_IMPLEMENT_ALL(name, table, ver) \
unsigned int Opal_StaticCodec_##name##_GetAPIVersion() \
{ return PWLIB_PLUGIN_API_VERSION; } \
PLUGIN_CODEC_DLL_API struct PluginCodec_Definition * Opal_StaticCodec_##name##_GetCodecs(unsigned * count, unsigned version) \
{ *count = sizeof(table)/sizeof(struct PluginCodec_Definition); return version < ver ? NULL : table; }
#else
# define PLUGIN_CODEC_IMPLEMENT(name) \
PLUGIN_CODEC_DLL_API unsigned int PLUGIN_CODEC_API_VER_FN() \
{ return PWLIB_PLUGIN_API_VERSION; } \
# define PLUGIN_CODEC_IMPLEMENT_ALL(name, table, ver) \
PLUGIN_CODEC_IMPLEMENT(name) \
PLUGIN_CODEC_DLL_API struct PluginCodec_Definition * PLUGIN_CODEC_GET_CODEC_FN(unsigned * count, unsigned version) \
{ *count = sizeof(table)/sizeof(struct PluginCodec_Definition); return version < ver ? NULL : table; }
#endif
#ifdef __cplusplus
};
#endif
#ifdef _MSC_VER
#pragma warning(default:4201)
#endif
#endif // OPAL_CODEC_OPALPLUGIN_H
PluginCodec_H323VideoCodec_is11172
Definition: opalplugin.h:763
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_GenericParameter
Definition: opalplugin.h:680
PluginCodec_RTPTypeMask
Definition: opalplugin.h:157
PluginCodec_information::sourceAuthor
const char * sourceAuthor
Definition: opalplugin.h:122
PluginCodec_Definition
Definition: opalplugin.h:328
PluginCodec_H323GenericParameterDefinition
Definition: opalplugin.h:648
PluginCodec_H323GenericParameterDefinition::excludeOLC
int excludeOLC
Definition: opalplugin.h:660
PluginCodec_GetAPIVersionFunction
unsigned(* PluginCodec_GetAPIVersionFunction)()
Definition: opalplugin.h:388
PluginCodec_OtherPayload
Definition: opalplugin.h:183
PluginCodec_NotEqualMerge
Definition: opalplugin.h:259
PluginCodec_Option
Definition: opalplugin.h:282
PluginCodec_License_BSD
Definition: opalplugin.h:109
PluginCodec_information::codecAuthor
const char * codecAuthor
Definition: opalplugin.h:131
PluginCodec_Definition::_parm::_audio
Definition: opalplugin.h:352
PluginCodec_H323Codec_programmed
Definition: opalplugin.h:733
PluginCodec_information::codecLicense
const char * codecLicense
Definition: opalplugin.h:136
PluginCodec_H323GenericParameterDefinition::collapsing
int collapsing
Definition: opalplugin.h:658
PluginCodec_H323AudioCodec_is13818Audio
Definition: opalplugin.h:750
PluginCodec_Definition::sourceFormat
const char * sourceFormat
Definition: opalplugin.h:342
PluginCodec_EmptyPayloadMask
Definition: opalplugin.h:179
PluginCodec_NoMerge
Definition: opalplugin.h:255
PluginCodec_Definition::h323CapabilityData
const void * h323CapabilityData
Definition: opalplugin.h:379
PluginCodec_License_Freeware
Definition: opalplugin.h:107
PluginCodec_H323AudioG7231AnnexC::sidMode1
int sidMode1
Definition: opalplugin.h:727
PluginCodec_H323GenericParameterDefinition::integer
unsigned long integer
Definition: opalplugin.h:693
PluginCodec_Definition::flags
unsigned int flags
Definition: opalplugin.h:334
PluginCodec_H323GenericParameterDefinition::readOnly
int readOnly
Definition: opalplugin.h:662
PluginCodec_ComfortNoise
Definition: opalplugin.h:177
PluginCodec_H323AudioCodec_is11172
Definition: opalplugin.h:749
PluginCodec_H323VideoCodec_h263
Definition: opalplugin.h:762
PluginCodec_information::timestamp
time_t timestamp
Definition: opalplugin.h:120
PluginCodec_H323AudioCodec_g729wAnnexB
Definition: opalplugin.h:751
PluginCodec_Option::m_freeFunction
PluginCodec_FreeFunction m_freeFunction
Definition: opalplugin.h:295
PluginCodec_Definition::_parm::_video::maxFrameRate
unsigned int maxFrameRate
Definition: opalplugin.h:362
PluginCodec_IntegerOption
Definition: opalplugin.h:247
PluginCodec_H323NonStandardCodecData::dataLength
unsigned int dataLength
Definition: opalplugin.h:643
PluginCodec_information::codecDescription
const char * codecDescription
Definition: opalplugin.h:130
PluginCodec_Definition::parm
union PluginCodec_Definition::_parm parm
PluginCodec_Video_FrameHeader::width
unsigned int width
Definition: opalplugin.h:895
PluginCodec_Option::m_merge
enum PluginCodec_OptionMerge m_merge
Definition: opalplugin.h:287
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_unsigned32Min
Definition: opalplugin.h:686
PluginCodec_Option::m_readOnly
unsigned m_readOnly
Definition: opalplugin.h:286
PluginCodec_Definition::_parm::_video::maxFrameWidth
unsigned int maxFrameWidth
Definition: opalplugin.h:359
PluginCodec_License_LGPL
Definition: opalplugin.h:110
PluginCodec_information::sourceEmail
const char * sourceEmail
Definition: opalplugin.h:124
PluginCodec_InputTypeRaw
Definition: opalplugin.h:150
PluginCodec_H323GenericParameterDefinition::excludeReqMode
int excludeReqMode
Definition: opalplugin.h:661
PluginCodec_License_MPL
Definition: opalplugin.h:106
PluginCodec_H323AudioG7231AnnexC::sidMode0
int sidMode0
Definition: opalplugin.h:726
PluginCodec_OctetsOption
Definition: opalplugin.h:250
PluginCodec_H323AudioG7231AnnexC::lowRateMode0
int lowRateMode0
Definition: opalplugin.h:724
PluginCodec_EnumOption
Definition: opalplugin.h:249
PluginCodec_Definition::sampleRate
unsigned int sampleRate
Definition: opalplugin.h:347
PluginCodec_H323AudioCodec_g729
Definition: opalplugin.h:747
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_unsignedMax
Definition: opalplugin.h:685
PluginCodec_information::codecVersion
const char * codecVersion
Definition: opalplugin.h:132
PluginCodec_OrMerge
Definition: opalplugin.h:265
PluginCodec_AndMerge
Definition: opalplugin.h:264
PluginCodec_H323VideoCodec_Extended
Definition: opalplugin.h:766
PluginCodec_CoderForceIFrame
Definition: opalplugin.h:197
PluginCodec_ReturnCoderIFrame
Definition: opalplugin.h:202
PluginCodec_EmptyPayload
Definition: opalplugin.h:180
PluginCodec_Definition::_parm::_video
Definition: opalplugin.h:358
PluginCodec_H323Codec_nonStandard
Definition: opalplugin.h:734
PluginCodec_H323GenericParameterDefinition::octetstring
const char * octetstring
Definition: opalplugin.h:694
PluginCodec_MediaTypeVideo
Definition: opalplugin.h:145
PluginCodec_MinMerge
Definition: opalplugin.h:256
PluginCodec_MediaTypeFax
Definition: opalplugin.h:147
PluginCodec_ReturnCoderFlags
PluginCodec_ReturnCoderFlags
Definition: opalplugin.h:200
PluginCodec_H323T38Codec
Definition: opalplugin.h:767
PluginCodec_NumOptionTypes
Definition: opalplugin.h:251
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_Logical
Definition: opalplugin.h:673
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_logical
Definition: opalplugin.h:682
PluginCodec_information::sourceVersion
const char * sourceVersion
Definition: opalplugin.h:123
PluginCodec_H323CapabilityExtension::index
unsigned int index
Definition: opalplugin.h:632
PluginCodec_Option::m_FMTPDefault
const char * m_FMTPDefault
Definition: opalplugin.h:290
PluginCodec_InputTypeRTP
Definition: opalplugin.h:151
PluginCodec_CustomMerge
Definition: opalplugin.h:261
PluginCodec_Definition::_parm::_video::recommendedFrameRate
unsigned int recommendedFrameRate
Definition: opalplugin.h:361
PluginCodec_Video_FrameHeader
Definition: opalplugin.h:892
PluginCodec_H323GenericParameterDefinition::PluginCodec_H323GenericParameterType
PluginCodec_H323GenericParameterType
Definition: opalplugin.h:669
PluginCodec_DecodeSilence
Definition: opalplugin.h:167
PluginCodec_Definition::h323CapabilityType
unsigned char h323CapabilityType
Definition: opalplugin.h:378
PluginCodec_H323AudioCodec_g722_64k
Definition: opalplugin.h:742
PluginCodec_StringOption
Definition: opalplugin.h:245
PluginCodec_CoderSilenceFrame
Definition: opalplugin.h:196
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_unsigned32Max
Definition: opalplugin.h:687
PluginCodec_H323AudioCodec_g729Extensions
Definition: opalplugin.h:757
PluginCodec_AlwaysMerge
Definition: opalplugin.h:260
PluginCodec_H323NonStandardCodecData::t35CountryCode
unsigned char t35CountryCode
Definition: opalplugin.h:639
PluginCodec_EncodeSilenceMask
Definition: opalplugin.h:169
PluginCodec_H323AudioCodec_g711Ulaw_64k
Definition: opalplugin.h:740
PluginCodec_OptionTypes
PluginCodec_OptionTypes
Definition: opalplugin.h:244
PluginCodec_Definition::_parm::_video::maxFrameHeight
unsigned int maxFrameHeight
Definition: opalplugin.h:360
PluginCodec_H323AudioG7231AnnexC::highRateMode1
int highRateMode1
Definition: opalplugin.h:723
PluginCodec_Option::m_type
enum PluginCodec_OptionTypes m_type
Definition: opalplugin.h:284
PluginCodec_H323GenericCodecData::params
const struct PluginCodec_H323GenericParameterDefinition * params
Definition: opalplugin.h:710
PluginCodec_Video_SetFrameInfo::height
int height
Definition: opalplugin.h:914
PluginCodec_H323AudioGSMData::comfortNoise
int comfortNoise
Definition: opalplugin.h:715
PluginCodec_CoderFlags
PluginCodec_CoderFlags
Definition: opalplugin.h:195
PluginCodec_RTPTypeNotShared
Definition: opalplugin.h:162
PluginCodec_License_ResearchAndDevelopmentUseOnly
Definition: opalplugin.h:108
PluginCodec_License_GPL
Definition: opalplugin.h:105
PluginCodec_Option::m_mergeFunction
PluginCodec_MergeFunction m_mergeFunction
Definition: opalplugin.h:294
PluginCodec_H323AudioCodec_g711Alaw_56k
Definition: opalplugin.h:739
PluginCodec_H323AudioG7231AnnexC::silenceSuppression
int silenceSuppression
Definition: opalplugin.h:721
PluginCodec_H323AudioCodec_g729AnnexA
Definition: opalplugin.h:748
PluginCodec_NoDecodeSilence
Definition: opalplugin.h:166
PluginCodec_MediaTypeAudioStreamed
Definition: opalplugin.h:146
PluginCodec_H323GenericParameterDefinition::id
unsigned int id
Definition: opalplugin.h:667
PluginCodec_License_RoyaltiesRequired
Definition: opalplugin.h:115
PluginCodec_Definition::info
struct PluginCodec_information * info
Definition: opalplugin.h:332
PluginCodec_ReturnCoderLastFrame
Definition: opalplugin.h:201
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_UnsignedMin
Definition: opalplugin.h:675
PluginCodec_H323AudioCodec_g7231
Definition: opalplugin.h:745
PluginCodec_Definition::sdpFormat
const char * sdpFormat
Definition: opalplugin.h:367
PluginCodec_Definition::usPerFrame
unsigned int usPerFrame
Definition: opalplugin.h:349
PluginCodec_Video_FrameHeader::x
unsigned int x
Definition: opalplugin.h:893
PluginCodec_H323GenericCodecData::standardIdentifier
const char * standardIdentifier
Definition: opalplugin.h:703
PluginCodec_H323VideoCodec_h261
Definition: opalplugin.h:760
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_BooleanArray
Definition: opalplugin.h:674
PluginCodec_Flags
PluginCodec_Flags
Definition: opalplugin.h:142
PluginCodec_MediaExtensionMask
Definition: opalplugin.h:173
PluginCodec_ControlDefn::control
int(* control)(const struct PluginCodec_Definition *codec, void *context, const char *name, void *parm, unsigned *parmLen)
Definition: opalplugin.h:239
PluginCodec_H323AudioCodec_g722_56k
Definition: opalplugin.h:743
PluginCodec_ControlDefn
Definition: opalplugin.h:237
PluginCodec_H323NonStandardCodecData::manufacturerCode
unsigned short manufacturerCode
Definition: opalplugin.h:641
PluginCodec_DecodeSilenceMask
Definition: opalplugin.h:165
PluginCodec_Definition::version
unsigned int version
Definition: opalplugin.h:329
PluginCodec_H323CapabilityExtension
Definition: opalplugin.h:631
PluginCodec_EqualMerge
Definition: opalplugin.h:258
PluginCodec_H323AudioGSMData::scrambled
int scrambled
Definition: opalplugin.h:716
PluginCodec_OutputTypeMask
Definition: opalplugin.h:153
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_OctetString
Definition: opalplugin.h:679
PluginCodec_MediaTypeExtVideo
Definition: opalplugin.h:174
PluginCodec_H323AudioCodec_g7231AnnexC
Definition: opalplugin.h:753
PluginCodec_Option::m_value
const char * m_value
Definition: opalplugin.h:288
PluginCodec_Option::m_maximum
const char * m_maximum
Definition: opalplugin.h:293
PluginCodec_H323AudioGSMData
Definition: opalplugin.h:714
PluginCodec_RTPTypeShared
Definition: opalplugin.h:163
PluginCodec_H323NonStandardCodecData::data
const unsigned char * data
Definition: opalplugin.h:642
PluginCodec_H323AudioG7231AnnexC::lowRateMode1
int lowRateMode1
Definition: opalplugin.h:725
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_booleanArray
Definition: opalplugin.h:683
PluginCodec_RTPSharedMask
Definition: opalplugin.h:161
PluginCodec_H323NonStandardCodecData::objectId
const char * objectId
Definition: opalplugin.h:638
PluginCodec_information::sourceURL
const char * sourceURL
Definition: opalplugin.h:125
PluginCodec_information::codecURL
const char * codecURL
Definition: opalplugin.h:134
PluginCodec_H323GenericCodecData::nParameters
unsigned int nParameters
Definition: opalplugin.h:708
PluginCodec_Definition::_parm::video
struct PluginCodec_Definition::_parm::_video video
PluginCodec_RTPTypeDynamic
Definition: opalplugin.h:158
PluginCodec_Definition::destroyCodec
void(* destroyCodec)(const struct PluginCodec_Definition *codec, void *context)
Definition: opalplugin.h:370
PluginCodec_Definition::bitsPerSec
unsigned int bitsPerSec
Definition: opalplugin.h:348
PluginCodec_H323NonStandardCodecData::t35Extension
unsigned char t35Extension
Definition: opalplugin.h:640
PluginCodec_RealOption
Definition: opalplugin.h:248
PluginCodec_ReturnCoderBufferTooSmall
Definition: opalplugin.h:204
PluginCodec_BitsPerSamplePos
Definition: opalplugin.h:185
PluginCodec_OptionMerge
PluginCodec_OptionMerge
Definition: opalplugin.h:254
PluginCodec_information::sourceLicense
const char * sourceLicense
Definition: opalplugin.h:127
PluginCodec_Definition::_parm
Definition: opalplugin.h:351
PluginCodec_H323AudioCodec_g711Alaw_64k
Definition: opalplugin.h:738
PluginCodec_OutputTypeRTP
Definition: opalplugin.h:155
PluginCodec_FreeFunction
void(* PluginCodec_FreeFunction)(char *string)
Definition: opalplugin.h:280
PluginCodec_BitsPerSampleMask
Definition: opalplugin.h:186
PluginCodec_License_None
Definition: opalplugin.h:103
PluginCodec_H323AudioCodec_gsmHalfRate
Definition: opalplugin.h:755
PluginCodec_Definition::userData
const void * userData
Definition: opalplugin.h:345
PluginCodec_H323AudioG7231AnnexC
Definition: opalplugin.h:719
PluginCodec_MediaTypeAudio
Definition: opalplugin.h:144
PluginCodec_Definition::_parm::_audio::maxFramesPerPacket
unsigned int maxFramesPerPacket
Definition: opalplugin.h:356
PluginCodec_Video_SetFrameInfo::width
int width
Definition: opalplugin.h:913
PluginCodec_OtherPayloadMask
Definition: opalplugin.h:182
PluginCodec_Video_FrameHeader::height
unsigned int height
Definition: opalplugin.h:896
PluginCodec_IntersectionMerge
Definition: opalplugin.h:262
PluginCodec_H323NonStandardCodecData
Definition: opalplugin.h:637
PluginCodec_Definition::_parm::_audio::bytesPerFrame
unsigned int bytesPerFrame
Definition: opalplugin.h:354
PluginCodec_Video_FrameHeader::y
unsigned int y
Definition: opalplugin.h:894
PluginCodec_information::codecCopyright
const char * codecCopyright
Definition: opalplugin.h:135
PluginCodec_NoEncodeSilence
Definition: opalplugin.h:170
PluginCodec_Licence_None
Definition: opalplugin.h:104
PluginCodec_Option::m_name
const char * m_name
Definition: opalplugin.h:285
PluginCodec_License_NoRoyalties
Definition: opalplugin.h:112
PluginCodec_information::codecEmail
const char * codecEmail
Definition: opalplugin.h:133
PluginCodec_Definition::codecControls
struct PluginCodec_ControlDefn * codecControls
Definition: opalplugin.h:375
PluginCodec_ControlDefn::name
const char * name
Definition: opalplugin.h:238
PluginCodec_H323AudioCodec_g722_48k
Definition: opalplugin.h:744
PluginCodec_H323CapabilityExtension::data
void * data
Definition: opalplugin.h:633
PluginCodec_H323AudioG7231AnnexC::highRateMode0
int highRateMode0
Definition: opalplugin.h:722
PluginCodec_H323Codec_generic
Definition: opalplugin.h:735
PluginCodec_Option::m_minimum
const char * m_minimum
Definition: opalplugin.h:292
PluginCodec_H323GenericParameterDefinition::excludeTCS
int excludeTCS
Definition: opalplugin.h:659
PluginCodec_Definition::descr
const char * descr
Definition: opalplugin.h:340
PluginCodec_H323Codec_NoH323
Definition: opalplugin.h:770
PluginCodec_H323VideoCodec_h262
Definition: opalplugin.h:761
PluginCodec_information::sourceCopyright
const char * sourceCopyright
Definition: opalplugin.h:126
PluginCodec_H323GenericParameterDefinition::genericparameter
struct PluginCodec_H323GenericParameterDefinition * genericparameter
Definition: opalplugin.h:695
PluginCodec_OutputTypeRaw
Definition: opalplugin.h:154
PluginCodec_H323AudioCodec_gsmEnhancedFullRate
Definition: opalplugin.h:756
PluginCodec_H323GenericCodecData
Definition: opalplugin.h:699
PluginCodec_Definition::codecFunction
int(* codecFunction)(const struct PluginCodec_Definition *codec, void *context, const void *from, unsigned *fromLen, void *to, unsigned *toLen, unsigned int *flag)
Definition: opalplugin.h:371
PluginCodec_MediaTypeMask
Definition: opalplugin.h:143
PluginCodec_ChannelsPos
Definition: opalplugin.h:188
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_genericParameter
Definition: opalplugin.h:689
PluginCodec_EncodeSilence
Definition: opalplugin.h:171
PluginCodec_BoolOption
Definition: opalplugin.h:246
PluginCodec_ReturnCoderRequestIFrame
Definition: opalplugin.h:203
PluginCodec_RTPTypeExplicit
Definition: opalplugin.h:159
PluginCodec_ChannelsMask
Definition: opalplugin.h:189
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_Unsigned32Min
Definition: opalplugin.h:677
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_octetString
Definition: opalplugin.h:688
PluginCodec_MergeFunction
int(* PluginCodec_MergeFunction)(char **result, const char *dest, const char *src)
Definition: opalplugin.h:279
PluginCodec_information::sourceLicenseCode
unsigned char sourceLicenseCode
Definition: opalplugin.h:128
PluginCodec_H323Codec_undefined
Definition: opalplugin.h:732
PluginCodec_InputTypeMask
Definition: opalplugin.h:149
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_UnsignedMax
Definition: opalplugin.h:676
PluginCodec_H323AudioCodec_g711Ulaw_56k
Definition: opalplugin.h:741
PluginCodec_Option::m_H245Default
const char * m_H245Default
Definition: opalplugin.h:296
PluginCodec_H323CapabilityExtension::dataLength
unsigned dataLength
Definition: opalplugin.h:634
PluginCodec_Video_SetFrameInfo
Definition: opalplugin.h:912
PluginCodec_MaxMerge
Definition: opalplugin.h:257
PluginCodec_Definition::_parm::_audio::recommendedFramesPerPacket
unsigned int recommendedFramesPerPacket
Definition: opalplugin.h:355
PluginCodec_H323AudioG7231AnnexC::maxAl_sduAudioFrames
unsigned char maxAl_sduAudioFrames
Definition: opalplugin.h:720
PluginCodec_H323GenericCodecData::maxBitRate
unsigned int maxBitRate
Definition: opalplugin.h:704
PluginCodec_information::codecLicenseCode
unsigned short codecLicenseCode
Definition: opalplugin.h:137
PluginCodec_Definition::destFormat
const char * destFormat
Definition: opalplugin.h:343
PluginCodec_Definition::_parm::audio
struct PluginCodec_Definition::_parm::_audio audio
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_unsignedMin
Definition: opalplugin.h:684
PluginCodec_H323AudioCodec_g728
Definition: opalplugin.h:746
PluginCodec_ComfortNoiseMask
Definition: opalplugin.h:176
PluginCodec_H323AudioCodec_gsmFullRate
Definition: opalplugin.h:754
PluginCodec_Definition::rtpPayload
unsigned char rtpPayload
Definition: opalplugin.h:366
PluginCodec_Option::m_FMTPName
const char * m_FMTPName
Definition: opalplugin.h:289
PluginCodec_H323GenericParameterDefinition::type
enum PluginCodec_H323GenericParameterDefinition::PluginCodec_H323GenericParameterType type
PluginCodec_H323AudioCodec_g729AnnexAwAnnexB
Definition: opalplugin.h:752
PluginCodec_Definition::_parm::_audio::samplesPerFrame
unsigned int samplesPerFrame
Definition: opalplugin.h:353
PluginCodec_information
Definition: opalplugin.h:118
PluginCodec_LogFunction
int(* PluginCodec_LogFunction)(unsigned level, const char *file, unsigned line, const char *section, const char *log)
Definition: opalplugin.h:230
PluginCodec_Option::m_H245Generic
int m_H245Generic
Definition: opalplugin.h:291
PluginCodec_H323NonStandardCodecData::capabilityMatchFunction
int(* capabilityMatchFunction)(struct PluginCodec_H323NonStandardCodecData *)
Definition: opalplugin.h:644
PluginCodec_H323GenericParameterDefinition::PluginCodec_GenericParameter_Unsigned32Max
Definition: opalplugin.h:678
PluginCodec_H323GenericParameterDefinition::value
union PluginCodec_H323GenericParameterDefinition::@4 value