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 TUintAllowedFrameRates()
IMPORT_C TUintAllowedResolutions()
CMceVideoCodec *CloneL()
TInt ComparePreferences(const CMceVideoCodec &, const CMceVideoCodec &)
IMPORT_C HBufC8 *ConfigKeyL()
TMceVideoCodecFactory Factory()
IMPORT_C TRealFrameRate()
IMPORT_C TUintMaxBitRate()
IMPORT_C TSizeResolution()
voidSetAllowedFrameRatesL(TUint)
voidSetAllowedResolutionsL(TUint)
voidSetConfigKeyL(const TDesC8 &)
voidSetFrameRateL(TReal)
voidSetMaxBitrateL(TUint)
voidSetPreferredEncodingDecodingDeviceL(TUid)
voidSetResolutionL(TSize)
Protected Member Functions
CMceVideoCodec()
voidConstructL(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 TUintAllowedFrameRates()const

Gets frame rates currently allowed for encoding and decoding.

AllowedResolutions()

IMPORT_C TUintAllowedResolutions()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 *)

voidConstructL(CMceComVideoCodec *aFlatData)[protected]

Second-phase constructor flat data container

Parameters

CMceComVideoCodec * aFlatData

Factory()

TMceVideoCodecFactory Factory()[static]

Gets video codec factory.

FrameRate()

IMPORT_C TRealFrameRate()const

Gets frame rate currently used for encoding and decoding.

MaxBitRate()

IMPORT_C TUintMaxBitRate()const

Gets maximum bit rate currently allowed

Resolution()

IMPORT_C TSizeResolution()const

Gets current resolution

SetAllowedFrameRatesL(TUint)

voidSetAllowedFrameRatesL(TUintaFrameRates)[pure virtual]
Sets frame rates allowed with the codec.
leave
KErrNotSupported if codec doesn't support frame rates issued

Parameters

TUint aFrameRatesallowed frame rate values as a bitfield

SetAllowedResolutionsL(TUint)

voidSetAllowedResolutionsL(TUintaResolutions)[pure virtual]
Sets resolutions allowed with the codec.
leave
KErrNotSupported if codec doesn't support resolutions issued

Parameters

TUint aResolutionsbitfield of allowed resolutions

SetConfigKeyL(const TDesC8 &)

voidSetConfigKeyL(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)

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

Parameters

TReal aFrameRateframe rate for encoding

SetMaxBitrateL(TUint)

voidSetMaxBitrateL(TUintaMaxBitrate)[pure virtual]
Sets maximum bitrate of the codec.
leave
KErrNotSupported if codec doesn't support frame sizes issued

Parameters

TUint aMaxBitratevalue of maximum bitrate used for encoding

SetPreferredEncodingDecodingDeviceL(TUid)

voidSetPreferredEncodingDecodingDeviceL(TUidaEncodingDecodingDevice)[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)

voidSetResolutionL(TSizeaResolution)[pure virtual]
Sets resolution of the video.
leave
KErrNotSupported if codec doesn't support resolution issued

Parameters

TSize aResolutionresolution of the video in pixels

Member Data Documentation

TAny * iReserved1

TAny *iReserved1[private]