#include <mediastrm.h>
Inheritance diagram for OpalVideoMediaStream:
Public Member Functions | |
Construction | |
OpalVideoMediaStream (const OpalMediaFormat &mediaFormat, unsigned sessionID, PVideoInputDevice *inputDevice, PVideoOutputDevice *outputDevice, BOOL autoDelete=TRUE) | |
~OpalVideoMediaStream () | |
Overrides of PChannel class | |
virtual BOOL | Open () |
virtual BOOL | ReadData (BYTE *data, PINDEX size, PINDEX &length) |
virtual BOOL | WriteData (const BYTE *data, PINDEX length, PINDEX &written) |
virtual BOOL | IsSynchronous () const |
virtual BOOL | SetDataSize (PINDEX dataSize) |
Protected Attributes | |
PVideoInputDevice * | inputDevice |
PVideoOutputDevice * | outputDevice |
BOOL | autoDelete |
PTimeInterval | lastGrabTime |
|
Construct a new media stream for channel.
|
|
Delete attached channel if autoDelete enabled. |
|
Indicate if the media stream is synchronous. Returns TRUE for LID streams. Implements OpalMediaStream. |
|
Open the media stream. The default behaviour sets the OpalLineInterfaceDevice format and calls Resume() on the associated OpalMediaPatch thread. Reimplemented from OpalMediaStream. |
|
Read raw media data from the source media stream. The default behaviour simply calls ReadPacket() on the data portion of the RTP_DataFrame and sets the frames timestamp and marker from the internal member variables of the media stream class.
Reimplemented from OpalMediaStream. |
|
Override size of frame header is included
Reimplemented from OpalMediaStream. |
|
Write raw media data to the sink media stream. The default behaviour calls WritePacket() on the data portion of the RTP_DataFrame and and sets the internal timestamp and marker from the member variables of the media stream class.
Reimplemented from OpalMediaStream. |
|
|
|
|
|
|
|
|