CMceComCodec Class Reference

class CMceComCodec : public CBase

Inherits from

Nested Classes and Structures

Public Member Functions
CMceComCodec ()
~CMceComCodec ()
TMceComFactory BaseFactory ()
void ConstructL ( CMceComCodec &)
TBool Decodes (const TDesC8 &, const TDesC8 &, TBool )
TInt EventReceivedL ( TMceEvent &)
void ExternalizeFlatL ( RWriteStream &)
void ExternalizeL ( MMceComSerializationContext &)
TPtrC8 FmtpAttr ()
TUint GetMaxBitRate ()
TMceMediaId Id ()
void InitializeL ( CMceComMediaStream &)
void InternalizeFlatL ( RReadStream &)
void InternalizeL ( MMceComSerializationContext &)
TBool IsEnabled ()
TInt ResolveAllowedBitrates ( TUint , TUint &)
TBool SendSupported ()
TUint64 SerializationId ()
TInt SetAllowedBitrates ( TUint )
TInt SetBitrate ( TUint )
TInt SetCodecMode ( TUint )
void SetEnabled ( TBool )
void SetFmtpAttributeL (const TDesC8 &, TBool )
void SetKeepAliveDataL (const TDesC8 &)
TInt SetPayloadType ( TUint8 )
CMceComMediaStream * Stream ()
void UpdateL ( CMceComCodec &)
Protected Member Functions
void ConstructL ( TMceComCodecName )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Attributes
TUint32 iAllowedBitrates
TUint iBitrate
TUint32 iCodecMode
TInt iCodecSdpIndex
HBufC8 * iFmtpAttr
HBufC8 * iFmtpProposal
TUint32 iFourCC
TUint iFrameSize
TMceMediaId iID
TBool iIsEnabled
TBool iIsNegotiated
HBufC8 * iKeepAliveData
TUint8 iKeepAlivePayloadType
TUint8 iKeepAliveTimer
TUint8 iPayloadType
TInt iPreference
TInt iPriority
TInt iPriorityPreference
TMceComCodecName iSdpName
TInt iState
Protected Attributes
CMceComMediaStream * iStream

Constructor & Destructor Documentation

CMceComCodec()

CMceComCodec ( )

C++ constructor

~CMceComCodec()

~CMceComCodec ( )

C++ destructor

Member Functions Documentation

BaseFactory()

TMceComFactory BaseFactory ( )

Factory

ConstructL(CMceComCodec &)

void ConstructL ( CMceComCodec & aCodec )

Second phase constructor

Parameters

CMceComCodec & aCodec

ConstructL(TMceComCodecName)

void ConstructL ( TMceComCodecName aSdpName ) [protected]

Parameters

TMceComCodecName aSdpName

Decodes(const TDesC8 &, const TDesC8 &, TBool)

TBool Decodes ( const TDesC8 & aRtpmapValue,
const TDesC8 & aFmtpValue,
TBool aIsStrictMatch = ETrue
) [virtual]

Return ETrue, if this codec decodes rtpmap value

Parameters

const TDesC8 & aRtpmapValue rtp map
const TDesC8 & aFmtpValue fmtp
TBool aIsStrictMatch = ETrue

EventReceivedL(TMceEvent &)

TInt EventReceivedL ( TMceEvent & aEvent ) [virtual]

Traversal event handler

Parameters

TMceEvent & aEvent the event

ExternalizeFlatL(RWriteStream &)

void ExternalizeFlatL ( RWriteStream & aWriteStream )

Externalizes flat data

Parameters

RWriteStream & aWriteStream write stream

ExternalizeL(MMceComSerializationContext &)

void ExternalizeL ( MMceComSerializationContext & aSerCtx )

Externalizes

Parameters

MMceComSerializationContext & aSerCtx context for serialization

FmtpAttr()

TPtrC8 FmtpAttr ( ) const

Gets current fmtp attribute

GetMaxBitRate()

TUint GetMaxBitRate ( ) [virtual]

Returns max bit rate

Id()

TMceMediaId Id ( ) const

ID

InitializeL(CMceComMediaStream &)

void InitializeL ( CMceComMediaStream & aParent ) [virtual]

Initializes

Parameters

CMceComMediaStream & aParent the parent

InternalizeFlatL(RReadStream &)

void InternalizeFlatL ( RReadStream & aReadStream )

Internalizes flat data

Parameters

RReadStream & aReadStream read stream

InternalizeL(MMceComSerializationContext &)

void InternalizeL ( MMceComSerializationContext & aSerCtx )

Internalizes

Parameters

MMceComSerializationContext & aSerCtx context for serialization

IsEnabled()

TBool IsEnabled ( ) const

Gets enabled state.

ResolveAllowedBitrates(TUint, TUint &)

TInt ResolveAllowedBitrates ( TUint aBitrate,
TUint & aAllowedBitrates
) [virtual]

Resolve allowed bitrates based on given bitrate value.

Parameters

TUint aBitrate
TUint & aAllowedBitrates

SendSupported()

TBool SendSupported ( ) [virtual]

Check if codec can send.

SerializationId()

TUint64 SerializationId ( ) const

Returns serialization id

SetAllowedBitrates(TUint)

TInt SetAllowedBitrates ( TUint aBitrates ) [virtual]

Sets bitrates allowed with codec.

Parameters

TUint aBitrates allowed bitrate values

SetBitrate(TUint)

TInt SetBitrate ( TUint aBitrate ) [virtual]

Sets bitrate used with codec for encoding.

Parameters

TUint aBitrate bitrate value for encoding

SetCodecMode(TUint)

TInt SetCodecMode ( TUint aCodecMode ) [virtual]

Sets the codec specific mode.

Parameters

TUint aCodecMode mode of the codec

SetEnabled(TBool)

void SetEnabled ( TBool aIsEnabled ) [virtual]

Sets codec enabled/disabled.

Parameters

TBool aIsEnabled

SetFmtpAttributeL(const TDesC8 &, TBool)

void SetFmtpAttributeL ( const TDesC8 & aFmtpAttribute,
TBool aReset =  KMceCodecFmtpReset
) [virtual]

Set codec specific fmtp line

Parameters

const TDesC8 & aFmtpAttribute
TBool aReset =  KMceCodecFmtpReset if ETrue reset fmtp, EFalse append

SetKeepAliveDataL(const TDesC8 &)

void SetKeepAliveDataL ( const TDesC8 & aKeepAliveData )

Sets keep alive data

Parameters

const TDesC8 & aKeepAliveData

SetPayloadType(TUint8)

TInt SetPayloadType ( TUint8 aPayloadType ) [virtual]

Sets the payload type.

Parameters

TUint8 aPayloadType type identifier of the payload

Stream()

CMceComMediaStream * Stream ( ) const

Parent object

UpdateL(CMceComCodec &)

void UpdateL ( CMceComCodec & aUpdate ) [virtual]

Updates this object

Parameters

CMceComCodec & aUpdate object updates this

Member Data Documentation

TUint32 iAllowedBitrates

TUint32 iAllowedBitrates

Stream's allowed bit rates

TUint iBitrate

TUint iBitrate

Stream's bit rate

TUint32 iCodecMode

TUint32 iCodecMode

Codec mode ( e.g. PCMU, PCMA, Bandwidth efficient, octet aligned )

TInt iCodecSdpIndex

TInt iCodecSdpIndex

HBufC8 * iFmtpAttr

HBufC8 * iFmtpAttr

Fmtp attribute

HBufC8 * iFmtpProposal

HBufC8 * iFmtpProposal

Fmtp proposal

TUint32 iFourCC

TUint32 iFourCC

Codec FourCC

TUint iFrameSize

TUint iFrameSize

Codecs frame size

TMceMediaId iID

TMceMediaId iID

type of session

TBool iIsEnabled

TBool iIsEnabled

Is enabled

TBool iIsNegotiated

TBool iIsNegotiated

HBufC8 * iKeepAliveData

HBufC8 * iKeepAliveData

Keep Alive Data

TUint8 iKeepAlivePayloadType

TUint8 iKeepAlivePayloadType

Keep Alive Payload Type

TUint8 iKeepAliveTimer

TUint8 iKeepAliveTimer

Keep alive timer

TUint8 iPayloadType

TUint8 iPayloadType

Payload type

TInt iPreference

TInt iPreference

TInt iPriority

TInt iPriority

MMF priority of the codec

TInt iPriorityPreference

TInt iPriorityPreference

MMF priority preference of the codec

TMceComCodecName iSdpName

TMceComCodecName iSdpName

Sdp name used in SDP messages

TInt iState

TInt iState

Codecs state of the codec

CMceComMediaStream * iStream

CMceComMediaStream * iStream [protected]

stream