CMceComCodec Class Reference

class CMceComCodec : public CBase

Inherits from

Nested Classes and Structures

Public Member Functions
CMceComCodec()
~CMceComCodec()
TMceComFactory BaseFactory()
voidConstructL(CMceComCodec &)
TBool Decodes(const TDesC8 &, const TDesC8 &, TBool)
TInt EventReceivedL(TMceEvent &)
voidExternalizeFlatL(RWriteStream &)
voidExternalizeL(MMceComSerializationContext &)
TPtrC8 FmtpAttr()
TUint GetMaxBitRate()
TMceMediaId Id()
voidInitializeL(CMceComMediaStream &)
voidInternalizeFlatL(RReadStream &)
voidInternalizeL(MMceComSerializationContext &)
TBool IsEnabled()
TInt ResolveAllowedBitrates(TUint, TUint &)
TBool SendSupported()
TUint64 SerializationId()
TInt SetAllowedBitrates(TUint)
TInt SetBitrate(TUint)
TInt SetCodecMode(TUint)
voidSetEnabled(TBool)
voidSetFmtpAttributeL(const TDesC8 &, TBool)
voidSetKeepAliveDataL(const TDesC8 &)
TInt SetPayloadType(TUint8)
CMceComMediaStream *Stream()
voidUpdateL(CMceComCodec &)
Protected Member Functions
voidConstructL(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 &)

voidConstructL(CMceComCodec &aCodec)

Second phase constructor

Parameters

CMceComCodec & aCodec

ConstructL(TMceComCodecName)

voidConstructL(TMceComCodecNameaSdpName)[protected]

Parameters

TMceComCodecName aSdpName

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

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

Return ETrue, if this codec decodes rtpmap value

Parameters

const TDesC8 & aRtpmapValuertp map
const TDesC8 & aFmtpValuefmtp
TBool aIsStrictMatch = ETrue

EventReceivedL(TMceEvent &)

TInt EventReceivedL(TMceEvent &aEvent)[virtual]

Traversal event handler

Parameters

TMceEvent & aEventthe event

ExternalizeFlatL(RWriteStream &)

voidExternalizeFlatL(RWriteStream &aWriteStream)

Externalizes flat data

Parameters

RWriteStream & aWriteStreamwrite stream

ExternalizeL(MMceComSerializationContext &)

voidExternalizeL(MMceComSerializationContext &aSerCtx)

Externalizes

Parameters

MMceComSerializationContext & aSerCtxcontext 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 &)

voidInitializeL(CMceComMediaStream &aParent)[virtual]

Initializes

Parameters

CMceComMediaStream & aParentthe parent

InternalizeFlatL(RReadStream &)

voidInternalizeFlatL(RReadStream &aReadStream)

Internalizes flat data

Parameters

RReadStream & aReadStreamread stream

InternalizeL(MMceComSerializationContext &)

voidInternalizeL(MMceComSerializationContext &aSerCtx)

Internalizes

Parameters

MMceComSerializationContext & aSerCtxcontext for serialization

IsEnabled()

TBool IsEnabled()const

Gets enabled state.

ResolveAllowedBitrates(TUint, TUint &)

TInt ResolveAllowedBitrates(TUintaBitrate,
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(TUintaBitrates)[virtual]

Sets bitrates allowed with codec.

Parameters

TUint aBitratesallowed bitrate values

SetBitrate(TUint)

TInt SetBitrate(TUintaBitrate)[virtual]

Sets bitrate used with codec for encoding.

Parameters

TUint aBitratebitrate value for encoding

SetCodecMode(TUint)

TInt SetCodecMode(TUintaCodecMode)[virtual]

Sets the codec specific mode.

Parameters

TUint aCodecModemode of the codec

SetEnabled(TBool)

voidSetEnabled(TBoolaIsEnabled)[virtual]

Sets codec enabled/disabled.

Parameters

TBool aIsEnabled

SetFmtpAttributeL(const TDesC8 &, TBool)

voidSetFmtpAttributeL(const TDesC8 &aFmtpAttribute,
TBoolaReset =  KMceCodecFmtpReset
)[virtual]

Set codec specific fmtp line

Parameters

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

SetKeepAliveDataL(const TDesC8 &)

voidSetKeepAliveDataL(const TDesC8 &aKeepAliveData)

Sets keep alive data

Parameters

const TDesC8 & aKeepAliveData

SetPayloadType(TUint8)

TInt SetPayloadType(TUint8aPayloadType)[virtual]

Sets the payload type.

Parameters

TUint8 aPayloadTypetype identifier of the payload

Stream()

CMceComMediaStream *Stream()const

Parent object

UpdateL(CMceComCodec &)

voidUpdateL(CMceComCodec &aUpdate)[virtual]

Updates this object

Parameters

CMceComCodec & aUpdateobject 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