/usr/include/opal/codec/opalpluginmgr.h is in libopal-dev 3.10.10~dfsg2-2+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 | /*
* opalpluginmgr.h
*
* OPAL codec plugins handler
*
* OPAL Library
*
* Copyright (C) 2005-2006 Post Increment
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Open Phone Abstraction Library.
*
* The Initial Developer of the Original Code is Post Increment
*
* Contributor(s): ______________________________________.
*
* $Revision: 28134 $
* $Author: rjongbloed $
* $Date: 2012-08-01 19:48:35 -0500 (Wed, 01 Aug 2012) $
*/
#ifndef OPAL_CODEC_OPALPLUGINMGR_H
#define OPAL_CODEC_OPALPLUGINMGR_H
#ifdef P_USE_PRAGMA
#pragma interface
#endif
#include <ptlib/object.h>
#include <opal/buildopts.h>
#include <ptlib/pluginmgr.h>
#include <ptlib/pfactory.h>
#include <codec/opalplugin.h>
#include <opal/mediafmt.h>
#include <opal/transcoders.h>
#if OPAL_H323
#include <h323/h323caps.h>
#endif
#if OPAL_VIDEO
#include <codec/vidcodec.h>
#endif
///////////////////////////////////////////////////////////////////////////////
class H323Capability;
class H323StaticPluginCodec
{
public:
virtual ~H323StaticPluginCodec() { }
virtual PluginCodec_GetAPIVersionFunction Get_GetAPIFn() = 0;
virtual PluginCodec_GetCodecFunction Get_GetCodecFn() = 0;
};
typedef PFactory<H323StaticPluginCodec> H323StaticPluginCodecFactory;
///////////////////////////////////////////////////////////////////////////////
class OpalPluginCodecManager;
PFACTORY_LOAD(OpalPluginCodecManager);
class OpalPluginCodecHandler : public PObject
{
PCLASSINFO(OpalPluginCodecHandler, PObject);
public:
OpalPluginCodecHandler();
static int GetChannelCount(const PluginCodec_Definition * codeDefn);
virtual OpalMediaFormatInternal * OnCreateAudioFormat(OpalPluginCodecManager & mgr,
const PluginCodec_Definition * codecDefn,
const char * fmtName,
const char * rtpEncodingName,
unsigned frameTime,
unsigned timeUnits,
time_t timeStamp);
#if OPAL_VIDEO
virtual OpalMediaFormatInternal * OnCreateVideoFormat(OpalPluginCodecManager & mgr,
const PluginCodec_Definition * codecDefn,
const char * fmtName,
const char * rtpEncodingName,
time_t timeStamp);
virtual void RegisterVideoTranscoder(const PString & src, const PString & dst, const PluginCodec_Definition * codec, bool v);
#endif
#if OPAL_T38_CAPABILITY
virtual OpalMediaFormatInternal * OnCreateFaxFormat(OpalPluginCodecManager & mgr,
const PluginCodec_Definition * codecDefn,
const char * fmtName,
const char * rtpEncodingName,
unsigned frameTime,
unsigned timeUnits,
time_t timeStamp);
#endif
};
class OpalPluginCodecManager : public PPluginModuleManager
{
PCLASSINFO(OpalPluginCodecManager, PPluginModuleManager);
public:
OpalPluginCodecManager(PPluginManager * pluginMgr = NULL);
~OpalPluginCodecManager();
PFACTORY_GET_SINGLETON(PFactory<PPluginModuleManager>, OpalPluginCodecManager);
void RegisterStaticCodec(const H323StaticPluginCodecFactory::Key_T & name,
PluginCodec_GetAPIVersionFunction getApiVerFn,
PluginCodec_GetCodecFunction getCodecFn);
void OnLoadPlugin(PDynaLink & dll, INT code);
virtual void OnShutdown();
#if OPAL_H323
H323Capability * CreateCapability(
const PString & _mediaFormat,
const PString & _baseName,
unsigned maxFramesPerPacket,
unsigned recommendedFramesPerPacket,
unsigned _pluginSubType);
#endif
protected:
// Note the below MUST NOT be an OpalMediaFormatList
PList<OpalMediaFormat> mediaFormatsOnHeap;
void RegisterCodecPlugins (unsigned int count, const PluginCodec_Definition * codecList, OpalPluginCodecHandler * handler);
void UnregisterCodecPlugins(unsigned int count, const PluginCodec_Definition * codecList, OpalPluginCodecHandler * handler);
bool AddMediaFormat(OpalPluginCodecHandler * handler, const PTime & timeNow, const PluginCodec_Definition * codecDefn, const char * fmtName);
#if OPAL_H323
void RegisterCapability(const PluginCodec_Definition * codecDefn);
#endif
};
///////////////////////////////////////////////////////////////////////////////
class OpalPluginControl
{
public:
OpalPluginControl(const PluginCodec_Definition * def, const char * name);
bool Exists() const
{
return controlDef != NULL;
}
int Call(void * parm, unsigned * parmLen, void * context = NULL) const
{
return controlDef != NULL ? (*controlDef->control)(codecDef, context, fnName, parm, parmLen) : -1;
}
int Call(void * parm, unsigned parmLen, void * context = NULL) const
{
return Call(parm, &parmLen, context);
}
const char * GetName() const { return fnName; }
protected:
const PluginCodec_Definition * codecDef;
const char * fnName;
const PluginCodec_ControlDefn * controlDef;
};
///////////////////////////////////////////////////////////////////////////////
class OpalPluginMediaFormatInternal
{
public:
OpalPluginMediaFormatInternal(const PluginCodec_Definition * defn);
bool AdjustOptions(OpalMediaFormatInternal & fmt, OpalPluginControl & control) const;
void PopulateOptions(OpalMediaFormatInternal & format);
void SetOldStyleOption(OpalMediaFormatInternal & format, const PString & _key, const PString & _val, const PString & type);
bool IsValidForProtocol(const PString & _protocol) const;
const PluginCodec_Definition * codecDef;
OpalPluginControl getOptionsControl;
OpalPluginControl freeOptionsControl;
OpalPluginControl validForProtocolControl;
OpalPluginControl toNormalisedControl;
OpalPluginControl toCustomisedControl;
};
class OpalPluginMediaFormat : public OpalMediaFormat
{
public:
OpalPluginMediaFormat(OpalMediaFormatInternal * info)
: OpalMediaFormat(info)
{
}
OpalPluginMediaFormatInternal * GetInfo() const { return dynamic_cast<OpalPluginMediaFormatInternal *>(m_info); }
};
class OpalPluginTranscoder
{
public:
OpalPluginTranscoder(const PluginCodec_Definition * defn, bool isEnc);
~OpalPluginTranscoder();
bool UpdateOptions(const OpalMediaFormat & fmt);
bool ExecuteCommand(const OpalMediaCommand & command);
bool Transcode(const void * from, unsigned * fromLen, void * to, unsigned * toLen, unsigned * flags) const
{
return codecDef != NULL && codecDef->codecFunction != NULL &&
(codecDef->codecFunction)(codecDef, context, from, fromLen, to, toLen, flags) != 0;
}
protected:
const PluginCodec_Definition * codecDef;
bool isEncoder;
void * context;
OpalPluginControl setCodecOptions;
OpalPluginControl getOutputDataSizeControl;
};
///////////////////////////////////////////////////////////////////////////////
class OpalPluginAudioFormatInternal : public OpalAudioFormatInternal, public OpalPluginMediaFormatInternal
{
public:
friend class OpalPluginCodecManager;
OpalPluginAudioFormatInternal(
const PluginCodec_Definition * codecDefn,
const char * fmtName,
const char * rtpEncodingName,
unsigned frameTime,
unsigned timeUnits,
time_t timeStamp
);
virtual PObject * Clone() const;
virtual bool IsValidForProtocol(const PString & protocol) const;
virtual bool ToNormalisedOptions();
virtual bool ToCustomisedOptions();
};
class OpalPluginFramedAudioTranscoder : public OpalFramedTranscoder, public OpalPluginTranscoder
{
PCLASSINFO(OpalPluginFramedAudioTranscoder, OpalFramedTranscoder);
public:
OpalPluginFramedAudioTranscoder(const PluginCodec_Definition * codecDefn, bool isEncoder);
bool UpdateMediaFormats(const OpalMediaFormat & input, const OpalMediaFormat & output);
PBoolean ExecuteCommand(const OpalMediaCommand & command);
PBoolean ConvertFrame(const BYTE * input, PINDEX & consumed, BYTE * output, PINDEX & created);
virtual PBoolean ConvertSilentFrame(BYTE * buffer);
virtual bool AcceptComfortNoise() const { return comfortNoise; }
protected:
bool comfortNoise;
};
class OpalPluginStreamedAudioTranscoder : public OpalStreamedTranscoder, public OpalPluginTranscoder
{
PCLASSINFO(OpalPluginStreamedAudioTranscoder, OpalStreamedTranscoder);
public:
OpalPluginStreamedAudioTranscoder(const PluginCodec_Definition * codec, bool isEncoder);
bool UpdateMediaFormats(const OpalMediaFormat & input, const OpalMediaFormat & output);
PBoolean ExecuteCommand(const OpalMediaCommand & command);
virtual bool AcceptComfortNoise() const { return comfortNoise; }
virtual int ConvertOne(int from) const;
protected:
bool comfortNoise;
};
///////////////////////////////////////////////////////////////////////////////
#if OPAL_VIDEO
class OpalPluginVideoFormatInternal : public OpalVideoFormatInternal, public OpalPluginMediaFormatInternal
{
public:
OpalPluginVideoFormatInternal(
const PluginCodec_Definition * codec,
const char * fmtName,
const char * rtpEncodingName, /// rtp encoding name
time_t timeStamp /// timestamp (for versioning)
);
virtual PObject * Clone() const;
virtual bool IsValidForProtocol(const PString & protocol) const;
virtual bool ToNormalisedOptions();
virtual bool ToCustomisedOptions();
};
class OpalPluginVideoTranscoder : public OpalVideoTranscoder, public OpalPluginTranscoder
{
PCLASSINFO(OpalPluginVideoTranscoder, OpalVideoTranscoder);
public:
OpalPluginVideoTranscoder(const PluginCodec_Definition * codec, bool isEncoder);
~OpalPluginVideoTranscoder();
PBoolean ConvertFrames(const RTP_DataFrame & src, RTP_DataFrameList & dstList);
bool UpdateMediaFormats(const OpalMediaFormat & input, const OpalMediaFormat & output);
PBoolean ExecuteCommand(const OpalMediaCommand & command);
protected:
bool EncodeFrames(const RTP_DataFrame & src, RTP_DataFrameList & dstList);
bool DecodeFrames(const RTP_DataFrame & src, RTP_DataFrameList & dstList);
bool DecodeFrame(const RTP_DataFrame & src, RTP_DataFrameList & dstList);
RTP_DataFrame * m_bufferRTP;
DWORD m_lastSequenceNumber;
DWORD m_lastDecodedTimestamp; // For missing marker bit detection
DWORD m_lastMarkerTimestamp; // For continuous marker bit detection
bool m_badMarkers;
PSimpleTimer m_videoPictureLossTimer;
#if PTRACING
unsigned m_consecutiveIntraFrames;
#endif
};
#endif
///////////////////////////////////////////////////////////////////////////////
#if OPAL_FAX
class OpalPluginFaxFormatInternal : public OpalMediaFormatInternal, public OpalPluginMediaFormatInternal
{
public:
OpalPluginFaxFormatInternal(
const PluginCodec_Definition * codec,
const char * fmtName,
const char * rtpEncodingName, /// rtp encoding name
unsigned frameTime,
unsigned /*timeUnits*/, /// RTP units for frameTime (if applicable)
time_t timeStamp /// timestamp (for versioning)
);
virtual PObject * Clone() const;
virtual bool IsValidForProtocol(const PString & protocol) const;
};
#endif // OPAL_FAX
//////////////////////////////////////////////////////
//
// this is the base class for codecs accessible via the abstract factory functions
//
/**Class for codcs which is accessible via the abstract factory functions.
The code would be :
PFactory<OpalFactoryCodec>::CreateInstance(conversion);
to create an instance, where conversion is (eg) "L16:G.711-uLaw-64k"
*/
class OpalFactoryCodec : public PObject {
PCLASSINFO(OpalFactoryCodec, PObject)
public:
/** Return the PluginCodec_Definition, which describes this codec */
virtual const struct PluginCodec_Definition * GetDefinition()
{ return NULL; }
/** Return the sourceFormat field of PluginCodec_Definition for this codec*/
virtual PString GetInputFormat() const = 0;
/** Return the destFormat field of PluginCodec_Definition for this codec*/
virtual PString GetOutputFormat() const = 0;
/** Take the supplied data and apply the conversion specified by CreateInstance call (above). When this method returns, toLen contains the number of bytes placed in the destination buffer. */
virtual int Encode(const void * from, ///< pointer to the source data
unsigned * fromLen, ///< number of bytes in the source data to process
void * to, ///< pointer to the destination buffer, which contains the output of the conversion
unsigned * toLen, ///< Number of available bytes in the destination buffer
unsigned int * flag ///< Typically, this is not used.
) = 0;
/** Return the sampleRate field of PluginCodec_Definition for this codec*/
virtual unsigned int GetSampleRate() const = 0;
/** Return the bitsPerSec field of PluginCodec_Definition for this codec*/
virtual unsigned int GetBitsPerSec() const = 0;
/** Return the nmPerFrame field of PluginCodec_Definition for this codec*/
virtual unsigned int GetFrameTime() const = 0;
/** Return the samplesPerFrame field of PluginCodec_Definition for this codec*/
virtual unsigned int GetSamplesPerFrame() const = 0;
/** Return the bytesPerFrame field of PluginCodec_Definition for this codec*/
virtual unsigned int GetBytesPerFrame() const = 0;
/** Return the recommendedFramesPerPacket field of PluginCodec_Definition for this codec*/
virtual unsigned int GetRecommendedFramesPerPacket() const = 0;
/** Return the maxFramesPerPacket field of PluginCodec_Definition for this codec*/
virtual unsigned int GetMaxFramesPerPacket() const = 0;
/** Return the rtpPayload field of PluginCodec_Definition for this codec*/
virtual BYTE GetRTPPayload() const = 0;
/** Return the sampleRate field of PluginCodec_Definition for this codec*/
virtual PString GetSDPFormat() const = 0;
};
//////////////////////////////////////////////////////////////////////////////
template<class TranscoderClass>
class OpalPluginTranscoderFactory : public OpalTranscoderFactory
{
public:
class Worker : public OpalTranscoderFactory::WorkerBase
{
public:
Worker(const OpalTranscoderKey & key, const PluginCodec_Definition * codec, bool enc)
: OpalTranscoderFactory::WorkerBase(), codecDefn(codec), isEncoder(enc)
{ OpalTranscoderFactory::Register(key, this); }
protected:
virtual OpalTranscoder * Create(const OpalTranscoderKey &) const
{ return new TranscoderClass(codecDefn, isEncoder); }
const PluginCodec_Definition * codecDefn;
bool isEncoder;
};
};
//////////////////////////////////////////////////////////////////////////////
//
// Helper class for handling plugin capabilities
//
class H323PluginCapabilityInfo
{
public:
H323PluginCapabilityInfo(const PluginCodec_Definition * codecDefn, const OpalMediaFormat & mediaFormat);
//H323PluginCapabilityInfo(const PString & _baseName);
const PString & GetFormatName() const
{ return m_capabilityFormatName; }
protected:
const PluginCodec_Definition * m_codecDefn;
PString m_capabilityFormatName;
};
#if OPAL_H323
//////////////////////////////////////////////////////////////////////////////
//
// Class for handling most audio plugin capabilities
//
class H323AudioPluginCapability : public H323AudioCapability,
public H323PluginCapabilityInfo
{
PCLASSINFO(H323AudioPluginCapability, H323AudioCapability);
public:
H323AudioPluginCapability(const PluginCodec_Definition * codecDefn,
const OpalMediaFormat & mediaFormat,
unsigned pluginSubType);
virtual PObject * Clone() const;
virtual PString GetFormatName() const;
virtual unsigned GetSubType() const;
protected:
unsigned pluginSubType;
};
#define OPAL_DECLARE_EMPTY_AUDIO_CAPABILITY(fmt, type) \
class fmt##_CapabilityRegisterer { \
public: \
fmt##_CapabilityRegisterer() \
{ H323CapabilityFactory::Register(fmt, new H323AudioPluginCapability(fmt, fmt, type)); } \
}; \
#define OPAL_DEFINE_EMPTY_AUDIO_CAPABILITY(fmt) \
static fmt##_CapabilityRegisterer fmt##_CapabilityRegisterer_instance; \
//////////////////////////////////////////////////////////////////////////////
//
// Class for handling G.723.1 codecs
//
class H323PluginG7231Capability : public H323AudioPluginCapability
{
PCLASSINFO(H323PluginG7231Capability, H323AudioPluginCapability);
public:
H323PluginG7231Capability(const PluginCodec_Definition * codecDefn,
const OpalMediaFormat & mediaFormat);
virtual PObject * Clone() const;
virtual PBoolean OnSendingPDU(H245_AudioCapability & cap, unsigned packetSize) const;
virtual PBoolean OnReceivedPDU(const H245_AudioCapability & cap, unsigned & packetSize);
};
#define OPAL_DECLARE_EMPTY_G7231_CAPABILITY(fmt, annex) \
class fmt##_CapabilityRegisterer { \
public: \
fmt##_CapabilityRegisterer() \
{ H323CapabilityFactory::Register(fmt, new H323PluginG7231Capability(fmt, annex)); } \
}; \
#define OPAL_DEFINE_EMPTY_G7231_CAPABILITY(fmt) \
static fmt##_CapabilityRegisterer fmt##_CapabilityRegisterer_instance; \
//////////////////////////////////////////////////////////////////////////////
//
// Class for handling non standard audio capabilities
//
class H323CodecPluginNonStandardAudioCapability : public H323NonStandardAudioCapability,
public H323PluginCapabilityInfo
{
PCLASSINFO(H323CodecPluginNonStandardAudioCapability, H323NonStandardAudioCapability);
public:
H323CodecPluginNonStandardAudioCapability(const PluginCodec_Definition * codecDefn,
const OpalMediaFormat & mediaFormat,
H323NonStandardCapabilityInfo::CompareFuncType compareFunc,
const unsigned char * data, unsigned dataLen);
H323CodecPluginNonStandardAudioCapability(const PluginCodec_Definition * codecDefn,
const OpalMediaFormat & mediaFormat,
const unsigned char * data, unsigned dataLen);
virtual PObject * Clone() const;
virtual PString GetFormatName() const;
};
//////////////////////////////////////////////////////////////////////////////
//
// Class for handling generic audio capabilities
//
class H323CodecPluginGenericAudioCapability : public H323GenericAudioCapability,
public H323PluginCapabilityInfo
{
PCLASSINFO(H323CodecPluginGenericAudioCapability, H323GenericAudioCapability);
public:
H323CodecPluginGenericAudioCapability(const PluginCodec_Definition * codecDefn,
const OpalMediaFormat & mediaFormat,
const PluginCodec_H323GenericCodecData * data);
virtual PObject * Clone() const;
virtual PString GetFormatName() const;
};
#if OPAL_VIDEO
//////////////////////////////////////////////////////////////////////////////
//
// Class for handling non standard video capabilities
//
class H323CodecPluginNonStandardVideoCapability : public H323NonStandardVideoCapability,
public H323PluginCapabilityInfo
{
PCLASSINFO(H323CodecPluginNonStandardVideoCapability, H323NonStandardVideoCapability);
public:
H323CodecPluginNonStandardVideoCapability(const PluginCodec_Definition * codecDefn,
const OpalMediaFormat & mediaFormat,
H323NonStandardCapabilityInfo::CompareFuncType compareFunc,
const unsigned char * data, unsigned dataLen);
H323CodecPluginNonStandardVideoCapability(const PluginCodec_Definition * codecDefn,
const OpalMediaFormat & mediaFormat,
const unsigned char * data, unsigned dataLen);
virtual PObject * Clone() const;
virtual PString GetFormatName() const;
};
//////////////////////////////////////////////////////////////////////////////
//
// Class for handling generic video capabilities
//
class H323CodecPluginGenericVideoCapability : public H323GenericVideoCapability,
public H323PluginCapabilityInfo
{
PCLASSINFO(H323CodecPluginGenericVideoCapability, H323GenericVideoCapability);
public:
H323CodecPluginGenericVideoCapability(const PluginCodec_Definition * codecDefn,
const OpalMediaFormat & mediaFormat,
const PluginCodec_H323GenericCodecData * data);
virtual PObject * Clone() const;
virtual PString GetFormatName() const;
};
//////////////////////////////////////////////////////////////////////////////
//
// Class for handling H.261 plugin capabilities
//
class H323H261PluginCapability : public H323VideoCapability,
public H323PluginCapabilityInfo
{
PCLASSINFO(H323H261PluginCapability, H323VideoCapability);
public:
H323H261PluginCapability(const PluginCodec_Definition * codecDefn, const OpalMediaFormat & mediaFormat);
Comparison Compare(const PObject & obj) const;
virtual PObject * Clone() const;
virtual PString GetFormatName() const;
virtual unsigned GetSubType() const;
virtual PBoolean OnSendingPDU(
H245_VideoCapability & pdu /// PDU to set information on
) const;
virtual PBoolean OnSendingPDU(
H245_VideoMode & pdu
) const;
virtual PBoolean OnReceivedPDU(
const H245_VideoCapability & pdu /// PDU to get information from
);
};
//////////////////////////////////////////////////////////////////////////////
//
// Class for handling H.263 plugin capabilities
//
class H323H263PluginCapability : public H323VideoCapability,
public H323PluginCapabilityInfo
{
PCLASSINFO(H323H263PluginCapability, H323VideoCapability);
public:
H323H263PluginCapability(const PluginCodec_Definition * codecDefn, const OpalMediaFormat & mediaFormat);
Comparison Compare(const PObject & obj) const;
virtual PObject * Clone() const;
virtual PString GetFormatName() const;
virtual unsigned GetSubType() const;
virtual PBoolean OnSendingPDU(
H245_VideoCapability & pdu /// PDU to set information on
) const;
virtual PBoolean OnSendingPDU(
H245_VideoMode & pdu
) const;
virtual PBoolean OnReceivedPDU(
const H245_VideoCapability & pdu /// PDU to get information from
);
virtual PBoolean IsMatch(
const PASN_Choice & subTypePDU, ///< sub-type PDU of H323Capability
const PString & mediaPacketization ///< Media packetization used
) const;
};
#endif // OPAL_VIDEO
#endif // OPAL_H323
#endif // OPAL_CODEC_OPALPLUGINMGR_H
|