#include <time.h>
Go to the source code of this file.
#define OpalPluginCodec_Identifer_AMR "0.0.8.245.1.1.1" |
#define OpalPluginCodec_Identifer_AMR_NB "0.0.8.245.1.1.9" |
#define OpalPluginCodec_Identifer_AMR_WB "0.0.8.245.1.1.10" |
#define OpalPluginCodec_Identifer_G7222 "0.0.7.7222.1.0" |
#define OpalPluginCodec_Identifer_H264 "0.0.8.241.0.0.0.0" |
#define OpalPluginCodec_Identifer_H264_Generic "0.0.8.241.0.0.1" |
#define OpalPluginCodec_Identifer_H264_RFC3984 "0.0.8.241.0.0.0.1" |
#define OpalPluginCodec_Identifer_H264_RFC3984Int "0.0.8.241.0.0.0.2" |
#define OpalPluginCodec_Identifer_iLBC "0.0.8.245.1.1.11" |
#define OpalPluginCodec_Identifer_MPEG4 "0.0.8.245.1.0.0" |
#define PLUGIN_CODEC_API_VER_FN PWLibPlugin_GetAPIVersion |
#define PLUGIN_CODEC_API_VER_FN_DECLARE |
Value:
PLUGIN_CODEC_DLL_API unsigned int PLUGIN_CODEC_API_VER_FN() \ { return PWLIB_PLUGIN_API_VERSION; }
#define PLUGIN_CODEC_API_VER_FN_STR "PWLibPlugin_GetAPIVersion" |
#define PLUGIN_CODEC_DLL_API |
#define PLUGIN_CODEC_GET_CODEC_FN OpalCodecPlugin_GetCodecs |
#define PLUGIN_CODEC_GET_CODEC_FN_STR "OpalCodecPlugin_GetCodecs" |
#define PLUGIN_CODEC_IMPLEMENT | ( | name | ) |
Value:
PLUGIN_CODEC_DLL_API unsigned int PLUGIN_CODEC_API_VER_FN() \ { return PWLIB_PLUGIN_API_VERSION; } \
#define PLUGIN_CODEC_IMPLEMENT_ALL | ( | name, | |||
table, | |||||
ver | ) |
Value:
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; }
#define PLUGIN_CODEC_VERSION 1 |
#define PLUGIN_CODEC_VERSION_FAX 4 |
#define PLUGIN_CODEC_VERSION_OPTIONS 5 |
#define PLUGIN_CODEC_VERSION_VIDEO 3 |
#define PLUGIN_CODEC_VERSION_WIDEBAND 2 |
#define PLUGIN_CODEC_VIDEO_SET_FRAME_SIZE_FN "set_frame_size" |
#define PLUGINCODEC_CONTROL_FREE_CODEC_OPTIONS "free_codec_options" |
#define PLUGINCODEC_CONTROL_GET_CODEC_OPTIONS "get_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_SET_INSTANCE_ID "set_instance_id" |
#define PLUGINCODEC_CONTROL_TO_CUSTOMISED_OPTIONS "to_customised_options" |
#define PLUGINCODEC_CONTROL_TO_NORMALISED_OPTIONS "to_normalised_options" |
#define PLUGINCODEC_CONTROL_VALID_FOR_PROTOCOL "valid_for_protocol" |
#define PluginCodec_H245_BooleanArray 0x08000000 |
#define PluginCodec_H245_Collapsing 0x40000000 |
#define PluginCodec_H245_NonCollapsing 0x20000000 |
#define PluginCodec_H245_OLC 0x02000000 |
#define PluginCodec_H245_OrdinalMask 0x0000ffff |
#define PluginCodec_H245_ReqMode 0x01000000 |
#define PluginCodec_H245_TCS 0x04000000 |
#define PluginCodec_H245_Unsigned32 0x10000000 |
#define PluginCodec_RTP_GetHeaderLength | ( | ptr | ) | ((((BYTE*)(ptr))[0] & 0x0f)*4 + PluginCodec_RTP_MinHeaderSize) |
#define PluginCodec_RTP_GetMarker | ( | ptr | ) | ((((BYTE*)(ptr))[1] & 0x80) != 0) |
#define PluginCodec_RTP_GetPayloadPtr | ( | ptr | ) | ((BYTE*)(ptr) + PluginCodec_RTP_GetHeaderLength(ptr)) |
#define PluginCodec_RTP_GetPayloadType | ( | ptr | ) | (((BYTE*)(ptr))[1] & 0x7f) |
#define PluginCodec_RTP_GetTimestamp | ( | ptr | ) | ((((BYTE*)(ptr))[4] << 24) | (((BYTE*)(ptr))[5] << 16) | (((BYTE*)(ptr))[6] << 8) | ((BYTE*)(ptr))[7]) |
#define PluginCodec_RTP_MaxPacketSize (1518-14-4-8-20-16) |
#define PluginCodec_RTP_MaxPayloadSize (PluginCodec_RTP_MaxPacketSize - PluginCodec_RTP_MinHeaderSize) |
#define PluginCodec_RTP_MinHeaderSize (12) |
#define PluginCodec_RTP_SetMarker | ( | ptr, | |||
mark | ) | (((BYTE*)(ptr))[1] = (((BYTE*)(ptr))[1] & 0x7f) | (mark != 0 ? 0x80 : 0)) |
#define PluginCodec_RTP_SetPayloadType | ( | ptr, | |||
type | ) | (((BYTE*)(ptr))[1] = (((BYTE*)(ptr))[1] & 0x80) | (type & 0x7f)) |
#define PluginCodec_RTP_SetTimestamp | ( | ptr, | |||
ts | ) | ((((BYTE*)(ptr))[4] = ((ts) >> 24)),(((BYTE*)(ptr))[5] = ((ts) >> 16)),(((BYTE*)(ptr))[6] = ((ts) >> 8)),(((BYTE*)(ptr))[7] = (ts))) |
#define PWLIB_PLUGIN_API_VERSION 1 |
typedef unsigned(* ) PluginCodec_GetAPIVersionFunction() |
typedef struct PluginCodec_Definition*(* ) PluginCodec_GetCodecFunction(unsigned int *, unsigned int) |
anonymous enum |
anonymous enum |
enum PluginCodec_Flags |