TFrameLayout Class Reference

#include <imageframe.h>

class TFrameLayout : public TFrameLayoutBase

Inherits from

Public Member Functions
TFrameLayout(TInt)
IMPORT_C TIntCurrentLength(TInt)
virtual IMPORT_C TFrameLayoutBase *DuplicateL()
IMPORT_C TIntLength(TInt)
IMPORT_C TIntPlanes()
IMPORT_C TIntScanLength(TInt)
IMPORT_C voidSetCurrentLength(TInt, TInt)
IMPORT_C voidSetLength(TInt, TInt)
IMPORT_C voidSetScanLength(TInt, TInt)
IMPORT_C voidSetStart(TInt, TInt)
IMPORT_C TIntStart(TInt)
Inherited Functions
TFrameLayoutBase::TFrameLayoutBase(TUid)
TFrameLayoutBase::Type()const

Detailed Description

Class TFrameLayout is a concrete implementation of TFrameLayoutBase class. It serves as a container for parameters that describe the memory organisation of the data encapsulated by a specific CImageFrame object. Image data is stored in planes. Each plane is characterised by the byte offset from the start of the image frame memory, and its maximum size, current length and scanlength.

Constructor & Destructor Documentation

TFrameLayout ( TInt )

IMPORT_CTFrameLayout(TIntaPlanes)[explicit]

Constructor for the TFrameLayout class.

See also: imageframeconst.h

Parameters
aPlanesThe number of planes into which the image data is organised. It should be a positive integer less than or equal to KMaxPlanesInFrame (defined in imageframeconst.h).
Panic Codes
EInvalidValueif the value of aPlanes is negative or greater than KMaxPlanesInFrame.

Member Function Documentation

CurrentLength ( TInt )

IMPORT_C TIntCurrentLength(TIntaIndex)const

Returns the current length in bytes of a specific plane.

Parameters
aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
Return Value
The current length of the plane in bytes.
Panic Codes
EInvalidIndexif the index is not in the allowed range.

DuplicateL ( )

IMPORT_C TFrameLayoutBase *DuplicateL()const [virtual]

Reimplemented from TFrameLayoutBase::DuplicateL()const

Creates an identical object to itself and places it on the heap.

Return Value
The pointer to the newly created object base class.
Leave Codes
KErrNoMemory.

Length ( TInt )

IMPORT_C TIntLength(TIntaIndex)const

Returns the maximum length in bytes of a specific plane.

Parameters
aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
Return Value
The maximum length of the plane in bytes.
Panic Codes
EInvalidIndexif the index is not in the allowed range.

Planes ( )

IMPORT_C TIntPlanes()const

Returns the number of planes in the current layout.

Return Value
The number of planes.

ScanLength ( TInt )

IMPORT_C TIntScanLength(TIntaIndex)const

Returns the scan length in bytes of a specific plane.

Parameters
aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
Return Value
The scan length of the plane in bytes.
Panic Codes
EInvalidIndexif the index is not in the allowed range.

SetCurrentLength ( TInt, TInt )

IMPORT_C voidSetCurrentLength(TIntaIndex,
TIntaCurrentLength
)

Sets the current length for a specific plane in the current layout.

Parameters
aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
aCurrentLengthThe new value for current length in bytes
Panic Codes
EInvalidIndexif the index is not in the allowed range.
EInvalidValueif the value of aCurrentLength is negative.

SetLength ( TInt, TInt )

IMPORT_C voidSetLength(TIntaIndex,
TIntaLength
)

Sets the maximum length of a specific plane in the current layout.

Parameters
aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
aLengthThe new length in bytes.
Panic Codes
EInvalidIndexif the index is not in the allowed range.
EInvalidValueif the value of aLength is negative.

SetScanLength ( TInt, TInt )

IMPORT_C voidSetScanLength(TIntaIndex,
TIntaScanLength
)

Set a new value for the scan length for a specific plane in the current layout.

Parameters
aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
aScanLengthThe new value for the scan length of the plane in bytes.
Panic Codes
EInvalidIndexif the index is not in the allowed range.
EInvalidValueif the value of aScanLength is negative.

SetStart ( TInt, TInt )

IMPORT_C voidSetStart(TIntaIndex,
TIntaStart
)

Sets the start offset for a specific plane in the current layout.

Parameters
aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
aStartThe new start offset position in bytes.
Panic Codes
EInvalidIndexif the index is not in the allowed range.
EInvalidValueif the value of aStart is negative.

Start ( TInt )

IMPORT_C TIntStart(TIntaIndex)const

Returns the start of a plane identified by its index. The value is the byte offset from the start of the CImageFrame object memory.

Parameters
aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
Return Value
The start position of the plane as a byte offset.
Panic Codes
EInvalidIndexif the index is not in the allowed range.