Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <MmfUtilities.h>

Class TFourCC

class TFourCC;

Description

A class that holds a four character code, representing supported data encodings for the conversion destination. The four character codes are packed into a single TUint32.

FourCC codes are a representation of the datatypes used to identify codecs. FourCC codes are used in codec .rss files as a match string used by ECOM to correctly load the required DLL.

Members

Defined in TFourCC:


Construction and destruction


TFourCC()

inline TFourCC();

Description

Default constructor initialises the class to KMMFFourCCCodeNULL.


TFourCC(TUint8,TUint8,TUint8,TUint8)

inline TFourCC(TUint8 aChar1, TUint8 aChar2, TUint8 aChar3, TUint8 aChar4);

Description

Packs the four arguments into a single TUint32.

The four arguments are packed in little-endian format.

Parameters

TUint8 aChar1

A character that represents part of the FourCC code. This character will be the least significant byte of the code.

TUint8 aChar2

A character that represents part of the FourCC code.

TUint8 aChar3

A character that represents part of the FourCC code.

TUint8 aChar4

A character that represents part of the FourCC code. This character will be the most significant byte of the code.


TFourCC(const TDesC8 &)

inline TFourCC(const TDesC8 &aDes);

Description

Constructs a FourCC code with the given 8 bit desciptor where the descriptor contains the characters that make up the FourCC code.

Parameters

const TDesC8 &aDes

The descriptor containing the characters from which to make the FourCC code.


TFourCC(TInt32)

inline TFourCC(TInt32 aFourCC);

Description

Constructor with a TInt32 in little-endian format.

Parameters

TInt32 aFourCC

The FourCC code.

[Top]


Member functions


FourCC()

inline TUint32 FourCC();

Description

Returns the FourCC code in little-endian format.

Return value

TUint32

The FourCC code in little-endian format.


FourCC(TPtr8 *)const

inline void FourCC(TPtr8 *aDes) const;

Description

Unpacks the FourCC code in little-endian format into the space provided by the argument.

The argument must be a pointer to a buffer of 4 bytes or greater.

Parameters

TPtr8 *aDes

A buffer to hold the unpacked FourCC code.


Set(TFourCC)

inline void Set(TFourCC aFourCC);

Description

Sets the FourCC code equal to the value in the supplied argument.

Parameters

TFourCC aFourCC

The required TFourCC containting the FourCC code.


Set(TUint32)

inline void Set(TUint32 aFourCC);

Description

Sets the FourCC code equal to the supplied argument.

Parameters

TUint32 aFourCC

The required FourCC code.


operator==(const TFourCC &)const

inline TBool operator==(const TFourCC &aA) const;

Description

Equality operator.

Parameters

const TFourCC &aA

The TFourCC code that *this will be tested against.

Return value

TBool

A boolean indicating if the two values are equal. ETrue if the two values are equal, otherwise false.


operator==(const TUint32 &)const

inline TBool operator==(const TUint32 &aUint) const;

Description

Equality operator.

Parameters

const TUint32 &aUint

The FourCC code that *this will be tested against.

Return value

TBool

A boolean indicating if the two values are equal. ETrue if the two values are equal, otherwise false.


operator!=(const TFourCC &)const

inline TBool operator!=(const TFourCC &aA) const;

Description

Inequality operator.

Parameters

const TFourCC &aA

The TFourCC code that *this will be tested against.

Return value

TBool

A boolean indicating if the two values are not equal. ETrue if the two values are unequal, otherwise false.


operator!=(const TUint32 &)const

inline TBool operator!=(const TUint32 &aUint) const;

Description

Inequality operator.

Parameters

const TUint32 &aUint

The FourCC code that *this will be tested against.

Return value

TBool