OPAL Version 3.10.4

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- Data Structures
- Class Hierarchy
- Data Fields

Public Member Functions
OpalPassiveMediaPatch Class Reference

`#include <patch.h>`

Inheritance diagram for OpalPassiveMediaPatch:

## Public Member Functions

| OpalPassiveMediaPatch (OpalMediaStream &source)
virtual void | Start ()
Public Member Functions inherited from OpalMediaPatch
| PDECLARE_NOTIFIER (OpalMediaCommand, OpalMediaPatch, OnMediaCommand)
| OpalMediaPatch (OpalMediaStream &source)
| ~OpalMediaPatch ()
void | PrintOn (ostream &strm) const
virtual bool | OnStartMediaPatch ()
virtual void | Close ()
PBoolean | AddSink (const OpalMediaStreamPtr &stream)
void | RemoveSink (const OpalMediaStreamPtr &stream)
OpalMediaStream & | GetSource () const
OpalMediaStreamPtr | GetSink (PINDEX i=0) const
OpalMediaFormat | GetSinkFormat (PINDEX i=0) const
void | AddFilter (const PNotifier &filter, const OpalMediaFormat &stage=OpalMediaFormat())
bool | RemoveFilter (const PNotifier &filter, const OpalMediaFormat &stage=OpalMediaFormat())
virtual void | FilterFrame (RTP_DataFrame &frame, const OpalMediaFormat &mediaFormat)
virtual bool | UpdateMediaFormat (const OpalMediaFormat &mediaFormat)
virtual PBoolean | ExecuteCommand (const OpalMediaCommand &command, PBoolean fromSink)
virtual bool | SetPaused (bool pause)
virtual PBoolean | PushFrame (RTP_DataFrame &frame)
bool | SetBypassPatch (OpalMediaPatch *patch)
virtual OpalTranscoder * | GetAndLockSinkTranscoder (PINDEX i=0) const
virtual void | UnLockSinkTranscoder () const
virtual void | GetStatistics (OpalMediaStatistics &statistics, bool fromSink) const

## Additional Inherited Members

Protected Member Functions inherited from OpalMediaPatch
virtual void | Main ()
bool | DispatchFrame (RTP_DataFrame &frame)
bool | EnableJitterBuffer ()
Protected Attributes inherited from OpalMediaPatch
OpalMediaStream & | source
PList< Sink > | sinks
PList< Filter > | filters
OpalMediaPatch * | m_bypassToPatch
OpalMediaPatch * | m_bypassFromPatch
PSyncPoint | m_bypassEnded
Thread * | patchThread
PMutex | patchThreadMutex
PReadWriteMutex | inUse

## Detailed Description

Passive Media Patch In contrast to the 'default' media patch does this instance not run it's own thread. Instead, the source stream may push data to the sinks whenever needed. Useful for implementations where the source is not a continuous data stream (e.g. H.224/H.281 FECC, where data is sent on user input) or the source stream is driven by an external thread loop.

## Constructor & Destructor Documentation

OpalPassiveMediaPatch::OpalPassiveMediaPatch | ( | OpalMediaStream & | source | ) |

Parameters:

  source | Source media stream

## Member Function Documentation

virtual void OpalPassiveMediaPatch::Start | ( |  | ) |

virtual

Start the patch. The default implementation simply starts the patch thread, which in turn calls Main()

Reimplemented from OpalMediaPatch.

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

- patch.h