class H323VideoCodec: public H323Codec

This class defines a codec class that will use the standard platform image output device.

Inheritance:


Public Methods

[more] H323VideoCodec ( const char * mediaFormat, Direction direction )
Create a new video codec.
[more]virtual BOOL Open ( H323Connection & connection )
Open the codec.
[more]virtual void Close ()
Close down the codec.
[more]virtual void OnMiscellaneousCommand ( const H245_MiscellaneousCommand_type & type )
Process a miscellaneous command on the logical channel.
[more]virtual void OnMiscellaneousIndication ( const H245_MiscellaneousIndication_type & type )
Process a miscellaneous indication on the logical channel.
[more]virtual void OnFreezePicture ()
Process a FreezePicture command from remote endpoint.
[more]virtual void OnFastUpdatePicture ()
Process a FastUpdatePicture command from remote endpoint.
[more]virtual void OnFastUpdateGOB (unsigned firstGOB, unsigned numberOfGOBs)
Process a FastUpdateGOB command from remote endpoint.
[more]virtual void OnFastUpdateMB (int firstGOB, int firstMB, unsigned numberOfMBs)
Process a FastUpdateMB command from remote endpoint.
[more]virtual void OnVideoIndicateReadyToActivate ()
Process a OnVideoIndicateReadyToActivate indication from remote endpoint.
[more]virtual void OnVideoTemporalSpatialTradeOff ()
Process a OnVideoTemporalSpatialTradeOff indication from remote endpoint.
[more]virtual void OnVideoNotDecodedMBs (unsigned firstMB, unsigned numberOfMBs, unsigned temporalReference)
Process a OnVideoNotDecodedMBs indication from remote endpoint.
[more]int GetWidth () const
Get width of video
[more]int GetHeight () const
Get height of video
[more]virtual void SetTxQualityLevel (int qlevel)
Quality of the transmitted video.
[more]virtual void SetBackgroundFill (int idle)
number of blocks (that haven't changed) transmitted with each frame.
[more]virtual BOOL SetAverageBitRate (int br)
Set average bitrate when transmitting video.


Inherited from H323Codec:

Public Methods

ovirtual BOOL Read( BYTE * buffer, unsigned & length, RTP_DataFrame & rtpFrame )
ovirtual BOOL Write( const BYTE * buffer, unsigned length, const RTP_DataFrame & frame, unsigned & written )
ovirtual unsigned GetFrameRate() const
ovirtual void OnFlowControl( long bitRateRestriction )
ovirtual BOOL AttachChannel( PChannel * channel, BOOL autoDelete = TRUE )
ovirtual BOOL CloseRawDataChannel()

Protected Fields

oBOOL deleteChannel


Documentation

This class defines a codec class that will use the standard platform image output device.

An application may create a descendent off this class and override functions as required for descibing a specific codec.

o H323VideoCodec( const char * mediaFormat, Direction direction )
Create a new video codec. This opens the standard image output device, for input and output and allows descendent codec classes to do video I/O after decoding/encoding.
Parameters:
mediaFormat - Media format for codec
direction - Direction in which this instance runs

ovirtual BOOL Open( H323Connection & connection )
Open the codec. This will open the codec for encoding or decoding. This is primarily used to delay allocation of resources until the last minute.

The default behaviour calls the H323EndPoint::OpenVideoDevice() function and assigns the result of that function to the raw data channel in the H323Codec class.

Parameters:
connection - Connection between the endpoints

ovirtual void Close()
Close down the codec. This will close the codec breaking any block on the Read() or Write() functions.

The default behaviour will close the rawDataChannel if it is not NULL and thene delete it if delteChannel is TRUE.

ovirtual void OnMiscellaneousCommand( const H245_MiscellaneousCommand_type & type )
Process a miscellaneous command on the logical channel. The default behaviour does nothing.
Parameters:
type - Command to process

ovirtual void OnMiscellaneousIndication( const H245_MiscellaneousIndication_type & type )
Process a miscellaneous indication on the logical channel. The default behaviour does nothing.
Parameters:
type - Indication to process

ovirtual void OnFreezePicture()
Process a FreezePicture command from remote endpoint. The default behaviour does nothing.

ovirtual void OnFastUpdatePicture()
Process a FastUpdatePicture command from remote endpoint. The default behaviour does nothing.

ovirtual void OnFastUpdateGOB(unsigned firstGOB, unsigned numberOfGOBs)
Process a FastUpdateGOB command from remote endpoint. The default behaviour does nothing.

ovirtual void OnFastUpdateMB(int firstGOB, int firstMB, unsigned numberOfMBs)
Process a FastUpdateMB command from remote endpoint. The default behaviour does nothing.

ovirtual void OnVideoIndicateReadyToActivate()
Process a OnVideoIndicateReadyToActivate indication from remote endpoint. The default behaviour does nothing.

ovirtual void OnVideoTemporalSpatialTradeOff()
Process a OnVideoTemporalSpatialTradeOff indication from remote endpoint. The default behaviour does nothing.

ovirtual void OnVideoNotDecodedMBs(unsigned firstMB, unsigned numberOfMBs, unsigned temporalReference)
Process a OnVideoNotDecodedMBs indication from remote endpoint. The default behaviour does nothing.

oint GetWidth() const
Get width of video

oint GetHeight() const
Get height of video

ovirtual void SetTxQualityLevel(int qlevel)
Quality of the transmitted video. 1 is good, 31 is poor.

ovirtual void SetBackgroundFill(int idle)
number of blocks (that haven't changed) transmitted with each frame. These blocks fill in the background

ovirtual BOOL SetAverageBitRate(int br)
Set average bitrate when transmitting video. A value of 0 disables bit rate control.


Direct child classes:
H323_H261Codec

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.