TFourCC Class Reference

#include <mmf/common/mmfutilities.h>

Link against: ErrorConcealmentIntfcMsgHdlr.lib

class TFourCC

Detailed 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.

Constructor & Destructor Documentation

TFourCC ( )

TFourCC()[inline]

Default constructor initialises the class to KMMFFourCCCodeNULL.

TFourCC ( TUint8, TUint8, TUint8, TUint8 )

TFourCC(TUint8aChar1,
TUint8aChar2,
TUint8aChar3,
TUint8aChar4
)[inline]

Packs the four arguments into a single TUint32.

The four arguments are packed in little-endian format.

ParameterDescription
aChar1A character that represents part of the FourCC code. This character will be the least significant byte of the code.
aChar2A character that represents part of the FourCC code.
aChar3A character that represents part of the FourCC code.
aChar4A character that represents part of the FourCC code. This character will be the most significant byte of the code.

TFourCC ( const TDesC8 & )

TFourCC(const TDesC8 &aDes)[inline]

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

ParameterDescription
aDesThe descriptor containing the characters from which to make the FourCC code.

TFourCC ( TInt32 )

TFourCC(TInt32aFourCC)[inline]

Constructor with a TInt32 in little-endian format.

ParameterDescription
aFourCCThe FourCC code.

Member Function Documentation

FourCC ( )

TUint32 FourCC()[inline]

Returns the FourCC code in little-endian format.

Returns: The FourCC code in little-endian format.

FourCC ( TPtr8 * )

voidFourCC(TPtr8 *aDes)const [inline]

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.

ParameterDescription
aDesA buffer to hold the unpacked FourCC code.

Set ( TFourCC )

voidSet(TFourCCaFourCC)[inline]

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

ParameterDescription
aFourCCThe required TFourCC containting the FourCC code.

Set ( TUint32 )

voidSet(TUint32aFourCC)[inline]

Sets the FourCC code equal to the supplied argument.

ParameterDescription
aFourCCThe required FourCC code.

operator!= ( const TFourCC & )

TBool operator!=(const TFourCC &aA)const [inline]

Inequality operator.

ParameterDescription
aAThe TFourCC code that *this will be tested against.

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

operator!= ( const TUint32 & )

TBool operator!=(const TUint32 &aUint)const [inline]

Inequality operator.

ParameterDescription
aUintThe FourCC code that *this will be tested against.

operator== ( const TFourCC & )

TBool operator==(const TFourCC &aA)const [inline]

Equality operator.

ParameterDescription
aAThe TFourCC code that *this will be tested against.

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

operator== ( const TUint32 & )

TBool operator==(const TUint32 &aUint)const [inline]

Equality operator.

ParameterDescription
aUintThe FourCC code that *this will be tested against.

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