TFrameLayout Class Reference

class TFrameLayout : public TFrameLayoutBase

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.

Inherits from

Constructor & Destructor Documentation

TFrameLayout(TInt)

IMPORT_CTFrameLayout(TIntaPlanes)[explicit]

Constructor for the TFrameLayout class.

panic
EInvalidValue if the value of aPlanes is negative or greater than KMaxPlanesInFrame.
imageframeconst.h

Parameters

TInt 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).

Member Functions Documentation

CurrentLength(TInt)

IMPORT_C TIntCurrentLength(TIntaIndex)const

Returns the current length in bytes of a specific plane.

panic
EInvalidIndex if the index is not in the allowed range.

Parameters

TInt aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().

DuplicateL()

IMPORT_C TFrameLayoutBase *DuplicateL()const [virtual]

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

leave
KErrNoMemory.

Length(TInt)

IMPORT_C TIntLength(TIntaIndex)const

Returns the maximum length in bytes of a specific plane.

panic
EInvalidIndex if the index is not in the allowed range.

Parameters

TInt aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().

Planes()

IMPORT_C TIntPlanes()const

Returns the number of planes in the current layout.

ScanLength(TInt)

IMPORT_C TIntScanLength(TIntaIndex)const

Returns the scan length in bytes of a specific plane.

panic
EInvalidIndex if the index is not in the allowed range.

Parameters

TInt aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().

SetCurrentLength(TInt, TInt)

IMPORT_C voidSetCurrentLength(TIntaIndex,
TIntaCurrentLength
)

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

panic
EInvalidIndex if the index is not in the allowed range.
panic
EInvalidValue if the value of aCurrentLength is negative.

Parameters

TInt aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
TInt aCurrentLengthThe new value for current length in bytes

SetLength(TInt, TInt)

IMPORT_C voidSetLength(TIntaIndex,
TIntaLength
)

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

panic
EInvalidIndex if the index is not in the allowed range.
panic
EInvalidValue if the value of aLength is negative.

Parameters

TInt aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
TInt aLengthThe new length in bytes.

SetScanLength(TInt, TInt)

IMPORT_C voidSetScanLength(TIntaIndex,
TIntaScanLength
)

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

panic
EInvalidIndex if the index is not in the allowed range.
panic
EInvalidValue if the value of aScanLength is negative.

Parameters

TInt aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
TInt aScanLengthThe new value for the scan length of the plane in bytes.

SetStart(TInt, TInt)

IMPORT_C voidSetStart(TIntaIndex,
TIntaStart
)

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

panic
EInvalidIndex if the index is not in the allowed range.
panic
EInvalidValue if the value of aStart is negative.

Parameters

TInt aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().
TInt aStartThe new start offset position in bytes.

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.

panic
EInvalidIndex if the index is not in the allowed range.

Parameters

TInt aIndexThe index of the plane. The value is non negative and must be less than the value returned by TFrameLayout::Planes().

Member Data Documentation

TInt iCurrentLength

TInt iCurrentLength[private]

TInt iLength

TInt iLength[private]

TInt iPlanes

TInt iPlanes[private]

TInt iScanLength

TInt iScanLength[private]

TInt iStart

TInt iStart[private]