Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OpalDynaVideoCodec Class Reference

#include <dynacodec.h>

Inheritance diagram for OpalDynaVideoCodec:

H323VideoCodec H323Codec List of all members.

Public Member Functions

 OpalDynaVideoCodec (const OpalDLLCodecRec &_info, Direction direction)
 ~OpalDynaVideoCodec ()
BOOL Read (BYTE *buffer, unsigned &length, RTP_DataFrame &rtpFrame)
BOOL Write (const BYTE *buffer, unsigned length, const RTP_DataFrame &rtp, unsigned &written)

Protected Attributes

const OpalDLLCodecRecinfo
void * context

Constructor & Destructor Documentation

OpalDynaVideoCodec::OpalDynaVideoCodec const OpalDLLCodecRec _info,
Direction  direction
 

OpalDynaVideoCodec::~OpalDynaVideoCodec  ) 
 


Member Function Documentation

BOOL OpalDynaVideoCodec::Read BYTE *  buffer,
unsigned &  length,
RTP_DataFrame rtpFrame
[virtual]
 

Encode the data from the appropriate device. This will encode data for transmission. The exact size and description of the data placed in the buffer is codec dependent but should be less than OpalMediaFormat::GetFrameSize() in length.

The length parameter is filled with the actual length of the encoded data, often this will be the same as OpalMediaFormat::GetFrameSize().

This function is called every GetFrameRate() timestamp units, so MUST take less than (or equal to) that amount of time to complete. It should always return the amount of data that corresponds to the GetFrameRate() timestamp units as well.

A returned length of zero indicates that time has passed but there is no data encoded. This is typically used for silence detection in an audio codec.

Implements H323Codec.

BOOL OpalDynaVideoCodec::Write const BYTE *  buffer,
unsigned  length,
const RTP_DataFrame rtp,
unsigned &  written
[virtual]
 

Decode the data and output it to appropriate device. This will decode a single frame of received data. The exact size and description of the data required in the buffer is codec dependent but should be at least than OpalMediaFormat::GetFrameSize() in length.

It is expected this function anunciates the data. That is, for example with audio data, the sound is output on a speaker.

This function is called every GetFrameRate() timestamp units, so MUST take less than that amount of time to complete!

Implements H323Codec.


Member Data Documentation

void* OpalDynaVideoCodec::context [protected]
 

const OpalDLLCodecRec& OpalDynaVideoCodec::info [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Jul 24 17:04:28 2004 for OpenH323 by doxygen 1.3.7