CMceVideoCodec Class Reference

class CMceVideoCodec : public CMceCodec

Base class for video codecs.

It defines setters and getters for generic video codec attributes. These attributes are used in single video stream and they are negotiated with remote terminal.

mceclient.lib

Inherits from

Public Member Functions
~CMceVideoCodec ()
IMPORT_C TUint AllowedFrameRates ()
IMPORT_C TUint AllowedResolutions ()
CMceVideoCodec * CloneL ()
TInt ComparePreferences (const CMceVideoCodec &, const CMceVideoCodec &)
IMPORT_C HBufC8 * ConfigKeyL ()
TMceVideoCodecFactory Factory ()
IMPORT_C TReal FrameRate ()
IMPORT_C TUint MaxBitRate ()
IMPORT_C TSize Resolution ()
void SetAllowedFrameRatesL ( TUint )
void SetAllowedResolutionsL ( TUint )
void SetConfigKeyL (const TDesC8 &)
void SetFrameRateL ( TReal )
void SetMaxBitrateL ( TUint )
void SetPreferredEncodingDecodingDeviceL ( TUid )
void SetResolutionL ( TSize )
Protected Member Functions
CMceVideoCodec ()
void ConstructL ( CMceComVideoCodec *)
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()
CMceCodec::AllowedBitrates()const
CMceCodec::Attach(CMceMediaStream &)
CMceCodec::BaseFactory()
CMceCodec::Bitrate()const
CMceCodec::CMceCodec()
CMceCodec::CodecMode()const
CMceCodec::ConstructL(CMceComCodec *)
CMceCodec::EventReceivedL(TMceEvent &)
CMceCodec::ExternalizeFlatL(RWriteStream &)
CMceCodec::ExternalizeL(MMceComSerializationContext &)
CMceCodec::FlatData()
CMceCodec::FourCC()const
CMceCodec::FrameSize()const
CMceCodec::Id()const
CMceCodec::InitializeL(CMceMediaStream &)
CMceCodec::InternalizeFlatL(RReadStream &)
CMceCodec::InternalizeL(MMceComSerializationContext &)
CMceCodec::KeepAliveData()const
CMceCodec::KeepAlivePayloadType()const
CMceCodec::KeepAliveTimer()const
CMceCodec::MMFPriority()const
CMceCodec::MMFPriorityPreference()const
CMceCodec::PayloadType()const
CMceCodec::Preference()const
CMceCodec::SdpName()const
CMceCodec::SerializationId()const
CMceCodec::SetAllowedBitrates(TUint)
CMceCodec::SetBitrate(TUint)
CMceCodec::SetCodecMode(TUint)
CMceCodec::SetKeepAliveDataL(const TDesC8 &)
CMceCodec::SetKeepAlivePayloadTypeL(TUint8)
CMceCodec::SetKeepAliveTimerL(TUint8)
CMceCodec::SetMMFPriorityL(TInt)
CMceCodec::SetMMFPriorityPreferenceL(TInt)
CMceCodec::SetPayloadType(TUint8)
CMceCodec::SetPreferenceL(TInt)
CMceCodec::SetSdpNameL(const TDesC8 &)
CMceCodec::SetStandByTimerL(TUint32)
CMceCodec::SetStateL(CMceCodec::TState)
CMceCodec::State()const
CMceCodec::Type()const
CMceCodec::Updated()
CMceCodec::~CMceCodec()
Inherited Enumerations
CMceCodec:TState
Private Attributes
TAny * iReserved1
Inherited Attributes
CMceCodec::iFlatData
CMceCodec::iStream
CMceCodec::iType

Constructor & Destructor Documentation

CMceVideoCodec()

CMceVideoCodec ( ) [protected]

C++ default constructor.

~CMceVideoCodec()

~CMceVideoCodec ( ) [virtual]

Destructor.

Member Functions Documentation

AllowedFrameRates()

IMPORT_C TUint AllowedFrameRates ( ) const

Gets frame rates currently allowed for encoding and decoding.

AllowedResolutions()

IMPORT_C TUint AllowedResolutions ( ) const

Gets currently allowed resolutions as a bitfield

CloneL()

CMceVideoCodec * CloneL ( ) const [pure virtual]

Clones the codec.

ComparePreferences(const CMceVideoCodec &, const CMceVideoCodec &)

TInt ComparePreferences ( const CMceVideoCodec & aIndex1,
const CMceVideoCodec & aIndex2
) [static]

Parameters

const CMceVideoCodec & aIndex1
const CMceVideoCodec & aIndex2

ConfigKeyL()

IMPORT_C HBufC8 * ConfigKeyL ( ) const

Get config key (sprop-parameter-sets)

ConstructL(CMceComVideoCodec *)

void ConstructL ( CMceComVideoCodec * aFlatData ) [protected]

Second-phase constructor flat data container

Parameters

CMceComVideoCodec * aFlatData

Factory()

TMceVideoCodecFactory Factory ( ) [static]

Gets video codec factory.

FrameRate()

IMPORT_C TReal FrameRate ( ) const

Gets frame rate currently used for encoding and decoding.

MaxBitRate()

IMPORT_C TUint MaxBitRate ( ) const

Gets maximum bit rate currently allowed

Resolution()

IMPORT_C TSize Resolution ( ) const

Gets current resolution

SetAllowedFrameRatesL(TUint)

void SetAllowedFrameRatesL ( TUint aFrameRates ) [pure virtual]
Sets frame rates allowed with the codec.
leave
KErrNotSupported if codec doesn't support frame rates issued

Parameters

TUint aFrameRates allowed frame rate values as a bitfield

SetAllowedResolutionsL(TUint)

void SetAllowedResolutionsL ( TUint aResolutions ) [pure virtual]
Sets resolutions allowed with the codec.
leave
KErrNotSupported if codec doesn't support resolutions issued

Parameters

TUint aResolutions bitfield of allowed resolutions

SetConfigKeyL(const TDesC8 &)

void SetConfigKeyL ( const TDesC8 & aConfigKey ) [pure virtual]
Set config key (sprop-parameter-sets)
leave
KErrNotSupported if setting config key is not possible

Parameters

const TDesC8 & aConfigKey

SetFrameRateL(TReal)

void SetFrameRateL ( TReal aFrameRate ) [pure virtual]
Sets frame rate used with the codec for encoding.
leave
KErrNotSupported if codec doesn't support frame rate value issued

Parameters

TReal aFrameRate frame rate for encoding

SetMaxBitrateL(TUint)

void SetMaxBitrateL ( TUint aMaxBitrate ) [pure virtual]
Sets maximum bitrate of the codec.
leave
KErrNotSupported if codec doesn't support frame sizes issued

Parameters

TUint aMaxBitrate value of maximum bitrate used for encoding

SetPreferredEncodingDecodingDeviceL(TUid)

void SetPreferredEncodingDecodingDeviceL ( TUid aEncodingDecodingDevice ) [pure virtual]
Sets preferred encoding device for uplink stream and preferred decoding device for downlink stream.
leave
KErrNotSupported if setting preferred device is not possible

Parameters

TUid aEncodingDecodingDevice

SetResolutionL(TSize)

void SetResolutionL ( TSize aResolution ) [pure virtual]
Sets resolution of the video.
leave
KErrNotSupported if codec doesn't support resolution issued

Parameters

TSize aResolution resolution of the video in pixels

Member Data Documentation

TAny * iReserved1

TAny * iReserved1 [private]